(fn)
| 290 | Wrappers around V8's printing functions and other utils for live-debugging |
| 291 | =============================================================================*/ |
| 292 | function make_call(fn) { |
| 293 | if (!supports_call_command()) { |
| 294 | print("ERROR: This command is supported in live sessions only!"); |
| 295 | return; |
| 296 | } |
| 297 | |
| 298 | // .call resets current frame to the top one, so have to manually remember |
| 299 | // and restore it after making the call. |
| 300 | let curframe = host.namespace.Debugger.State.DebuggerVariables.curframe; |
| 301 | let ctl = host.namespace.Debugger.Utility.Control; |
| 302 | let output = ctl.ExecuteCommand(`.call ${fn};g`); |
| 303 | curframe.SwitchTo(); |
| 304 | return output; |
| 305 | } |
| 306 | |
| 307 | function print_object(address) { |
| 308 | let output = make_call(`_v8_internal_Print_Object(${decomp(address)})`); |
no test coverage detected