question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to consume Debug Adapter / debugServerMain.ts outside of VSCode?

See original GitHub issue

I’m willing to replace the usage of node-debug & node-debug2 modules in Eclipse Wild Web Developer by the newer js-debug module. However, I didn’t find out how to actually start the debug adapter. For node-debug, I could “extract” the module from VSCode, import it in Wild Web Developer and then run node node-debug2/out/src/nodeDebug.js to start the debug adapter and talk DAP with it; but with js-debug, I don’t know what would be a similar entry point. I tried node ms-vscode.js-debug/src/extension.js but this requires VSCode running apparently. I found the very interesting debugServerMain.ts class but don’t find it in the final distribution in VSCode. Is there another command I should try? Or is the debugServerMain just removed in the distribution (so I should build vscode-js-debug myself) ?

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:11 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
connor4312commented, Feb 19, 2021

js-debug is pretty standalone and ships (in an extension) as a set of standalone webpacked js files

2reactions
connor4312commented, Feb 18, 2021

That’s right. What would your ideal ‘ready to go’ distribution look like? An npm package?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Debugger Extension - Visual Studio Code
Learn how to provide debugger extensions (plug-ins) for Visual Studio Code through a Debug Adapter.
Read more >
Debugging in Visual Studio Code
One of the great things in Visual Studio Code is debugging support. Set breakpoints, step-in, inspect variables and more.
Read more >
TypeScript debugging with Visual Studio Code
Press F5 to start the debug session, which launches the browser and hits your breakpoint in helloweb.ts . client-side debug breakpoint. Common questions....
Read more >
Debug Node.js Apps using Visual Studio Code
Use auto attach to debug processes you run in VS Code's integrated terminal. ... When you set a breakpoint in app.ts , the...
Read more >
Introducing Logpoints and auto-attach - Visual Studio Code
Logpoints in the VS Code. If you are interested in adding Logpoint support in your Debug Adapter for VS Code, please take a...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found