Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace node debug adapters with vscode-js-debug adapter #555

Closed
mickaelistria opened this issue Nov 5, 2020 · 11 comments · Fixed by #1174
Closed

Replace node debug adapters with vscode-js-debug adapter #555

mickaelistria opened this issue Nov 5, 2020 · 11 comments · Fixed by #1174

Comments

@mickaelistria
Copy link
Contributor

the former vscode-node-debug adapter is now replaced by vscode-js-debug. Wild Web Developer should try to adopt this newer debugger for node/js debugging.

@mickaelistria
Copy link
Contributor Author

@vrubezhny maybe something to investigate as you're doing the version bump. If you're lucky, it may actually fix a few conflicts and resolve some issues; otherwise, it can make things worse;)

@mickaelistria
Copy link
Contributor Author

I do not see this package on npm.js, so we'd need to "fetch" it from VSCode like we do for some other packages. I see https:/microsoft/vscode-js-debug/blob/master/src/debugServerMain.ts as entry point in the source but don't see where it is in "binary".

@akurtakov
Copy link
Contributor

wouldn't https:/microsoft/vscode-js-debug/archive/v1.54.1.tar.gz be better than fetching from vscode?

@mickaelistria
Copy link
Contributor Author

This is a source tarball (.ts file), not a binary (.js) distribution, it would require to run the build steps.

@mickaelistria
Copy link
Contributor Author

I opened microsoft/vscode-js-debug#926 to ask how this debug adapter can be consumed out of VSCode.

@mickaelistria
Copy link
Contributor Author

I'm experimenting.
This requires a local build (npm install && npm run compile) of vscode-js-debug as the only binary distribution doesn't have standalone entry points. I'm currently using vscode-js-debug/out/src/flatSessionLauncher.js as entry-point. The launch params need to be augmented on client/IDE side with param.put("type", "pwa-node"); or `param.put("type", "pwa-chrome") and so on.
I currently see good data going in both directions. However, the application under debugging doesn't seem to be running: nothing is printed in console, no thread is shown.

@mickaelistria
Copy link
Contributor Author

Follow up at microsoft/vscode-js-debug#969

@mickaelistria
Copy link
Contributor Author

This is now a requirement in order to adopt newer versions of VSCode Language Servers, as the legacy node-debug as vanished.

@mickaelistria
Copy link
Contributor Author

Note that recently @vrubezhny managed to reduce the important of this issue by fetching the node-debug2 adapter from https://marketplace.visualstudio.com/items?itemName=ms-vscode.node-debug2 instead of taking it from older VSCode. This has allowed to move to newer VSCode version and at the same time to keep integrating node-debug2.

@mickaelistria
Copy link
Contributor Author

There was some progress on DAP spec that would now allow that.
Wild Web Developer now requires that eclipse-lsp4j/lsp4j#662 and microsoft/vscode-js-debug#1388 are resolved and released before being about to adopt this.

@mickaelistria
Copy link
Contributor Author

And some more: microsoft/vscode-js-debug#926 (comment)

mickaelistria added a commit to mickaelistria/wildwebdeveloper that referenced this issue Oct 2, 2023
mickaelistria added a commit to mickaelistria/wildwebdeveloper that referenced this issue Oct 2, 2023
mickaelistria added a commit to mickaelistria/wildwebdeveloper that referenced this issue Oct 4, 2023
mickaelistria added a commit to mickaelistria/wildwebdeveloper that referenced this issue Oct 4, 2023
But attaching to node process is still not functioning

Fixes eclipse-wildwebdeveloper#555
mickaelistria added a commit to mickaelistria/wildwebdeveloper that referenced this issue Oct 5, 2023
But attaching to node process is still not functioning

Fixes eclipse-wildwebdeveloper#555
mickaelistria added a commit to mickaelistria/wildwebdeveloper that referenced this issue Oct 5, 2023
This also restore ability to debug running Node processes (eg start with
--inspect).

Fixes eclipse-wildwebdeveloper#555
mickaelistria added a commit to mickaelistria/wildwebdeveloper that referenced this issue Oct 6, 2023
This also restore ability to debug running Node processes (eg start with
--inspect).

Requires usage of latest LSP4E support for DAP.

Fixes eclipse-wildwebdeveloper#555
mickaelistria added a commit to mickaelistria/wildwebdeveloper that referenced this issue Oct 6, 2023
This also restore ability to debug running Node processes (eg start with
--inspect).

Requires usage of latest LSP4E support for DAP.

Fixes eclipse-wildwebdeveloper#555
mickaelistria added a commit to mickaelistria/wildwebdeveloper that referenced this issue Oct 6, 2023
This also restore ability to debug running Node processes (eg start with
--inspect).

Requires usage of latest LSP4E support for DAP.

Fixes eclipse-wildwebdeveloper#555
mickaelistria added a commit to mickaelistria/wildwebdeveloper that referenced this issue Oct 8, 2023
This also restore ability to debug running Node processes (eg start with
--inspect).

Requires usage of latest LSP4E support for DAP.

Fixes eclipse-wildwebdeveloper#555
mickaelistria added a commit to mickaelistria/wildwebdeveloper that referenced this issue Oct 8, 2023
This also restore ability to debug running Node processes (eg start with
--inspect).

Requires usage of latest LSP4E support for DAP.

Fixes eclipse-wildwebdeveloper#555
mickaelistria added a commit that referenced this issue Oct 8, 2023
This also restore ability to debug running Node processes (eg start with
--inspect).

Requires usage of latest LSP4E support for DAP.

Fixes #555
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants