Slide 19
Slide 19 text
debug.gem をデバッグする
- $ bundle open debug
- lib/debug/server_cdp.rb#L962 あたりにprint文を仕込む
- https://github.com/ruby/debug/blob/v1.9.2/lib/debug/server_cdp.rb#L962
DEBUGGER: [:evaluate, {"id"=>21, "method"=>"Debugger.evaluateOnCallFrame",
"params"=>{"callFrameId"=>"e8547272d5f75dfe567b420e26b2a42e", "expression"=>"",
"objectGroup"=>"console", "includeCommandLineAPI"=>true, "silent"=>false, "returnByValue"=>false,
"generatePreview"=>true}}, 0, "", "console"]