# VSCode debugger breaks on unknown command

**URL:** https://discourse.julialang.org/t/vscode-debugger-breaks-on-unknown-command/128571
**Category:** General Usage
**Tags:** vscode, debugger
**Created:** [April 30, 2025, 12:42pm UTC](https://discourse.julialang.org/t/vscode-debugger-breaks-on-unknown-command/128571 "2025-04-30T12:42:37Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![bellon-tiobe](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/bellon-tiobe/32/216597_2.png) [@bellon-tiobe](https://discourse.julialang.org/u/bellon-tiobe)
#### Post date: [April 30, 2025, 12:42pm UTC](https://discourse.julialang.org/t/vscode-debugger-breaks-on-unknown-command/128571/1 "2025-04-30T12:42:37Z")

</div>

For reasons unknown to me, the _VSCode_ Julia debugger stopped working, and now it gives this error message every time I try to debug:

```julia
  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.

---

<div class="post-metadata">

### Author: ![bellon-tiobe](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/bellon-tiobe/32/216597_2.png) [@bellon-tiobe](https://discourse.julialang.org/u/bellon-tiobe)
#### Post date: [April 30, 2025, 12:51pm UTC](https://discourse.julialang.org/t/vscode-debugger-breaks-on-unknown-command/128571/2 "2025-04-30T12:51:59Z")

</div>

Solved: it was just that I forgot to update `.vscode/settings.json` after creating a `src/` subfolder and moving the “executable” file in there.

Of course, this is a very silly error, but it is worth noting that there is no clue about the nature of the problem in the output message. Nothing along the lines of “file MyScript.jl not found”.
