You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
Repository navigation
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
Debugger (Node --inspect) metadata access outside of VSCode (ie from Chrome DevTools) #236
This is being opened per being recommended by roblourens in #235
roblourens Thank you very much for your insightful feedback. Before beginning any work on writing this, I just want to be clear that there is currently no other known way to access Node.exe metadata (ie --inspect) that comes baked into VSCode?
Further in order to achieve such functionality, it has been suggested to use the DebugAdapterTracker API to write a VSCode extension that adds this feature?
I assume that in using that API, it would then be possible to publish said data openly such that no other requirements are needed to access it on the receiving end (ie, a simple http access). Basically, what I've already done will need to be adapted to a VSCode extension vs being built in.
Yes, correct. Pasting my response here just to make it easier to find later:
I think that being able to open chrome devtools on the process you are attached to in vscode would be really useful. It would be nice to have an extension that can provide that feature. I don't really think that starting a webserver from the debug adapter is the right way to do it.
What you can do is use the DebugAdapterTracker API to watch for console messages from a node debug session of the pattern "Debugger listening on ws://127.0.0.1:9876/a92b13de-b2ba-4318-9c3e-3221bbbb218f". Then your extension will know how to open chrome devtools. Please open an issue to discuss if you need anything more from the debug adapter.
This is being opened per being recommended by roblourens in #235
roblourens Thank you very much for your insightful feedback. Before beginning any work on writing this, I just want to be clear that there is currently no other known way to access Node.exe metadata (ie --inspect) that comes baked into VSCode?
Further in order to achieve such functionality, it has been suggested to use the DebugAdapterTracker API to write a VSCode extension that adds this feature?
I assume that in using that API, it would then be possible to publish said data openly such that no other requirements are needed to access it on the receiving end (ie, a simple http access). Basically, what I've already done will need to be adapted to a VSCode extension vs being built in.