0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

LeoFSのErlangコンソールに入る

Posted at

ランタイムの中に入って関数を実行したり、束縛された値を見たり、ごにょごにょしたりできる。

$ bin/leo_gateway remote_console
Erlang/OTP 17 [erts-6.3] [source] [64-bit] [smp:4:4] [async-threads:10] [hipe] [kernel-poll:false]

Eshell V6.3  (abort with ^G)
(gateway_0@127.0.0.1)1>

Tabで名前の補完も利く。

(gateway_0@127.0.0.1)1> leo_gateway_s3_api:module_info().
[{exports,[{start,2},
           {stop,0},
           {init,3},
           {handle,2},
           {terminate,3},
           {onrequest,1},
           {onresponse,1},
           {get_bucket,3},
           {put_bucket,3},
           {delete_bucket,3},
           {head_bucket,3},
           {get_object,3},
           {get_object_with_cache,4},
           {put_object,3},
           {delete_object,3},
           {head_object,3},
           {range_object,3},
           {module_info,0},
           {module_info,1}]},
 {imports,[]},
 {attributes,[{vsn,[104854973627086735130649165131811794768]},
              {author,['Yosuke Hara']},
              {author,['Yoshiyuki Kanno']},
              {behaviour,[leo_gateway_http_behaviour]},
              {author,['Yosuke Hara']},
              {author,['Yosuke Hara']}]},
 {compile,[{options,[{outdir,"ebin"},
                     debug_info,
                     {d,'NOTEST'},
                     warn_obsolete_guard,warn_shadow_vars,warn_export_vars,
                     warn_export_all,
                     {i,"include"}]},
           {version,"5.0.3"},
           {time,{2015,3,23,4,33,33}},
           {source,"/home/makisyu/leofs/deps/leo_gateway/src/leo_gateway_s3_api.erl"}]}]

重質量砲に当たった奇居子よろしくデータを吹っ飛ばすこともできる。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?