For reasons unknown to me, the VSCode Julia debugger stopped working, and now it gives this error message every time I try to debug:
Activating project at `~/Julia/JuliaCheck`
┌ Error: Some Julia code in the VS Code extension crashed
└ @ VSCodeDebugger ~/.vscode-server/extensions/julialang.language-julia-1.127.2/scripts/error_handler.jl:15
ERROR: Unknown command: stop
Stacktrace:
[1] error(s::String)
@ Base ./error.jl:35
[2] run(debug_session::VSCodeDebugger.DebugAdapter.DebugSession, error_handler::VSCodeDebugger.var"#3#4"{String})
@ VSCodeDebugger.DebugAdapter ~/.vscode-server/extensions/julialang.language-julia-1.127.2/scripts/packages/DebugAdapter/src/packagedef.jl:168
[3] startdebugger()
@ VSCodeDebugger ~/.vscode-server/extensions/julialang.language-julia-1.127.2/scripts/packages/VSCodeDebugger/src/VSCodeDebugger.jl:45
[4] top-level scope
@ ~/.vscode-server/extensions/julialang.language-julia-1.127.2/scripts/debugger/run_debugger.jl:12
[5] include(mod::Module, _path::String)
@ Base ./Base.jl:557
[6] exec_options(opts::Base.JLOptions)
@ Base ./client.jl:323
[7] _start()
@ Base ./client.jl:531
* The terminal process "/home/juanma/.julia/juliaup/julia-1.11.5+0.x64.linux.gnu/bin/julia '--color=yes', '--startup-file=no', '--history-file=no', '/home/juanma/.vscode-server/extensions/julialang.language-julia-1.127.2/scripts/debugger/run_debugger.jl', '/tmp/vsc-jl-dbg-f2e76d96-e4c7-4b4f-96db-1074a54b58d0', '/tmp/vsc-jl-dbg-f7ded65c-e58f-476b-bf9b-a38237057906', '/tmp/vsc-jl-cr-d9498cc1-da3f-410d-973c-8e58743f1c7d'" terminated with exit code: 1.
I tried removing and re-creating .vscode/settings.json
, as mentioned in another thread, but it did not help.
The line ERROR: Unknown command: stop
used to say simply ERROR: Unknown command
, but I edited the relevant file just to print which command is the “offending” one.
I am using these versions:
- VSCode: 1.99.3
- Julia: 1.11.5
- It seems to me that the version of the VSCode extension is 1.127.2, if I’m reading it right in the error message.
I use VSCode for Windows and connect to WSL, where I run the project. However, I tried running it directly on Windows with the same result.