Repository navigation
Debugging instructions simplified - #24
Conversation
|
Is there any chance to change the debug port if necessary? I saw it is hard coded in the sources now. |
|
To have debugging on by default when running
Either of the proposed solutions should be IMHO better than the necessity to modify the extension's sources to start debugging on a non-default port. |
Done in e2b450b |
|
|
Will fix the JDK17 test to use 21 after the release. It is caused by the fact that I've changes |
OK, so it may not be problem of this PR at the end. Good. I locally tried: and that succeeds OK. I guess I can them merge, right @MartinBalin? |
67abe46 to
aa81c83
Compare
| if (isJavaSupportEnabled()) { | ||
| extras.push('--direct-disable', 'org.netbeans.modules.nbcode.integration.java'); | ||
| let ownArgs = process.env.netbeans_args; | ||
| if (!ownArgs) { |
There was a problem hiding this comment.
Extra arguments prevent the language server from starting.
The documented command npm run nbcode -- -J-Dnetbeans.extra.dirs=/path/to/extension sets netbeans_args, which skips both --start-java-language-server and --start-java-debug-adapter-server. VS Code waits for a connection that NetBeans never initiates. Extra JVM arguments should be appended while retaining the server startup arguments.
There was a problem hiding this comment.
Extra JVM arguments should be appended while retaining the server startup arguments.
- appending since acaba7e
- now the documented workflow works for Enso VSCode Extension:
$ cd /tmp/enso
/tmp/enso$ unzip enso4vscode-1.50.78.vsix
$ cd /netbeans-vscode/vscode
netbeans-vscode/vscode$ npm run nbcode -- -J-Dnetbeans.extra.dirs=/tmp/enso/extension/nbcode/enso4igv/
the /tmp/enso/extension/nbcode/enso4igv/ contains NetBeans cluster with one module. That module gets loaded by the VSCode extension:
org.enso.tools.enso4igv [1.51 1.51-20260325 202603251503]
|
After I've seen you added some changes I rerun the review. Some comments left... thank you for working on this Jardo. |
15f37cd to
b23a331
Compare
The pleasure is all mine. It is an interesting intellectual challenge with such a deep reviews you provide! |
|
Rerun of review on update PR branch revealed 2 things. |
74b3144 to
3790f16
Compare
TL;DR
Motivation
codecodeis started with fresh data and extension directoriesenso.vsixinto the startedcodeinstance and then debug both