socket icon indicating copy to clipboard operation
socket copied to clipboard

attaching a remote inspector / debugger

Open chrisfarms opened this issue 1 year ago • 0 comments

feature request

I would like to be able to attach to a running (--debug) instance of a desktop socket app using a remote debugging port.

The builtin inspector is very useful, preferred even in some cases, but it is a pain to constantly open it, and it's nicer to have breakpoints work in my editor than using the inspector tools.

something like running with ssc run --remote-debugging-port=9225 to expose the V8 inspector protocol endpoint for the app to remote control the web inspector.

This would allow external tools to attach easily.

related

  • https://code.visualstudio.com/docs/nodejs/browser-debugging#_attaching-to-browsers
  • https://www.electronjs.org/docs/latest/tutorial/debugging-main-process

chrisfarms avatar Mar 03 '24 12:03 chrisfarms