-
-
Notifications
You must be signed in to change notification settings - Fork 216
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
server side nodejs vite debugging problem (vite frozen) #1393
Comments
If I follow the reproduction steps I do get a response:
One odd thing is that the debug adapter sends output events with ansi color codes in addition to displaying the same information in the integrated terminal so there's garbage like Another odd thing is that the debug adapter reports completion support (
That also appears to be an issue with the debug adapter. |
The problem looks more complicated that I thought initialy : |
Any other input here or reproduction? So far I haven't seen anything that would indicate that there is a client issue here. |
Nothing really new here on my side , so I close it since it way be relative to my environment and I am not able to provide a simplified reproduction context |
Debug adapter definition and debug configuration
launch.json
Debug adapter version
No response
Steps to Reproduce
I am presently migrating my sveltekit app dev from vscode to neovim
I succesfully configured dap for python and go but I found following problem when configuring for node :
Since I am using sveltekit , I use Vite with vscode to setup the node server side debug process without any
problem with vscode using a launch.json configuration
The debug session using vscode goes well ...
I used exactly the same launch.json in neovim
with vscode standard jsdebugadapter installed
when starting the debug session I see a 'debugger attached' expected message and the standard vite startup messages on the console ... as expected
the pause,restart, terminate debugging icons are in place and works normally
but : no stack and no variables displayed (which may be normal since no breakpoints were hitted then)
doing on term to check Vite port status : sudo lsof -i -P | grep LISTEN | grep :4000
returns : node 86294 jymen 39u IPv6 0x6335a95253e6aa71 0t0 TCP localhost:4000 (LISTEN)
which is OK
but : curl --head http://localhost:4000
just freeze and never returns until the debug session is closed
The problem can be reproduce using standard html (no need to install SvelteKit ) as follow
create a directory and switch to it
npm install -D vite
launch vim and create index.html containing :
hello
create a .vscode subdirectory and launch.json with content previously described :
start the debugger and select Launch Server
You should then not beeing able to reach http port using curl
Expected Result
Vite should respond to sollicitors upon http connection
Actual Result
Vite looks frozen under debugger control
The text was updated successfully, but these errors were encountered: