# Debugger crashed

**URL:** <https://discourse.julialang.org/t/debugger-crashed/123994>\
**Category:** General Usage\
**Created:** [December 19, 2024, 2:38pm UTC](https://discourse.julialang.org/t/debugger-crashed/123994 "2024-12-19T14:38:22Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![stefkuypers](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/stefkuypers/32/19185_2.png) [@stefkuypers](https://discourse.julialang.org/u/stefkuypers)\
**Post date:** [December 19, 2024, 2:38pm UTC](https://discourse.julialang.org/t/debugger-crashed/123994/1 "2024-12-19T14:38:22Z")

</div>

I’m running into a problem where I don’t even know where to start looking for the problem. Well, it seems that there is an undefined variable in the error\_handler.jl file so I’m guessing it might be a bug in the VSCodeDebugger extension?

My debugger crashed on me with the following error message:

┌ Error: Some Julia code in the VS Code extension crashed  
└ @ VSCodeDebugger ~/.vscode/extensions/julialang.language-julia-1.127.2/scripts/error\_handler.jl:15  
ERROR: UndefVarError: `uuid4` not defined in `VSCodeDebugger.DebugAdapter`┌ Error: Some Julia code in the VS Code extension crashed  
└ @ VSCodeDebugger ~/.vscode/extensions/julialang.language-julia-1.127.2/scripts/error\_handler.jl:15

Suggestion: check for spelling errors or missing imports.ERROR:  
Hint: UndefVarError: `uuid4` not defineda global variable of this name may be made accessible by importing UUIDs in the current active module Main in `VSCodeDebugger.DebugAdapter`  
Stacktrace:  
Suggestion: check for spelling errors or missing imports.

Hint: a global variable of this name may be made accessible by importing UUIDs in the current active module Main[1]  
Stacktrace:stack\_trace\_request(debug\_session::VSCodeDebugger.DebugAdapter.DebugSession, params::VSCodeDebugger.DebugAdapter.StackTraceArguments)

```
@[1] VSCodeDebugger.DebugAdapterstack_trace_request(debug_session::VSCodeDebugger.DebugAdapter.DebugSession, params::VSCodeDebugger.DebugAdapter.StackTraceArguments) 

```

~/.vscode/extensions/julialang.language-julia-1.127.2/scripts/packages/DebugAdapter/src/ @debugger\_requests.jl:400 VSCodeDebugger.DebugAdapter  
~/.vscode/extensions/julialang.language-julia-1.127.2/scripts/packages/DebugAdapter/src/[2]debugger\_requests.jl:400 (::VSCodeDebugger.DebugAdapter.var"#110#139"{VSCodeDebugger.DebugAdapter.DebugSession})(params::VSCodeDebugger.DebugAdapter.StackTraceArguments)

```
@[2] VSCodeDebugger.DebugAdapter(::VSCodeDebugger.DebugAdapter.var"#110#139"{VSCodeDebugger.DebugAdapter.DebugSession})(params::VSCodeDebugger.DebugAdapter.StackTraceArguments) 

```

~/.vscode/extensions/julialang.language-julia-1.127.2/scripts/packages/DebugAdapter/src/ @packagedef.jl:73 VSCodeDebugger.DebugAdapter  
~/.vscode/extensions/julialang.language-julia-1.127.2/scripts/packages/DebugAdapter/src/[3]packagedef.jl:73 dispatch\_msg(x::VSCodeDebugger.DebugAdapter.DAPRPC.DAPEndpoint{Base.PipeEndpoint, Base.PipeEndpoint}, dispatcher::VSCodeDebugger.DebugAdapter.DAPRPC.MsgDispatcher, msg::Dict{String, Any})

```
@[3] VSCodeDebugger.DebugAdapter.DAPRPCdispatch_msg(x::VSCodeDebugger.DebugAdapter.DAPRPC.DAPEndpoint{Base.PipeEndpoint, Base.PipeEndpoint}, dispatcher::VSCodeDebugger.DebugAdapter.DAPRPC.MsgDispatcher, msg::Dict{String, Any}) 

```

~/.vscode/extensions/julialang.language-julia-1.127.2/scripts/packages/DebugAdapter/src/DAPRPC/ @typed.jl:89 VSCodeDebugger.DebugAdapter.DAPRPC  
~/.vscode/extensions/julialang.language-julia-1.127.2/scripts/packages/DebugAdapter/src/DAPRPC/[4]typed.jl:89 (::VSCodeDebugger.DebugAdapter.var"#132#161"{Dict{String, Any}, VSCodeDebugger.var"#3#4"{String}, VSCodeDebugger.DebugAdapter.DAPRPC.MsgDispatcher, VSCodeDebugger.DebugAdapter.DAPRPC.DAPEndpoint{Base.PipeEndpoint, Base.PipeEndpoint}})()

```
@[4] VSCodeDebugger.DebugAdapter(::VSCodeDebugger.DebugAdapter.var"#132#161"{Dict{String, Any}, VSCodeDebugger.var"#3#4"{String}, VSCodeDebugger.DebugAdapter.DAPRPC.MsgDispatcher, VSCodeDebugger.DebugAdapter.DAPRPC.DAPEndpoint{Base.PipeEndpoint, Base.PipeEndpoint}})() 

```

~/.vscode/extensions/julialang.language-julia-1.127.2/scripts/packages/DebugAdapter/src/ @packagedef.jl:98 VSCodeDebugger.DebugAdapter  
~/.vscode/extensions/julialang.language-julia-1.127.2/scripts/packages/DebugAdapter/src/packagedef.jl:98

- The terminal process “/Library/Julia/Julia-1.11.app/Contents/Resources/julia/bin/julia ‘–color=yes’, ‘–startup-file=no’, ‘–history-file=no’, ‘/Users/stef/.vscode/extensions/julialang.language-julia-1.127.2/scripts/debugger/run\_debugger.jl’, ‘/var/folders/0c/wnd8vcz91xb0gvcpgtb1w4180000gn/T/vsc-jl-dbg-33546d63-89cf-4244-8777-31e3816208b6’, ‘/var/folders/0c/wnd8vcz91xb0gvcpgtb1w4180000gn/T/vsc-jl-dbg-4795bb61-494e-4fcb-98ae-bf18304115a9’, ‘/var/folders/0c/wnd8vcz91xb0gvcpgtb1w4180000gn/T/vsc-jl-cr-bcf90bf8-42cc-40ca-976f-018aefcf8d83’” terminated with exit code: 1.

---

<div class="post-metadata">

**Author:** ![davidanthoff](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/davidanthoff/32/223493_2.png) [@davidanthoff](https://discourse.julialang.org/u/davidanthoff)\
**Post date:** [December 19, 2024, 11:41pm UTC](https://discourse.julialang.org/t/debugger-crashed/123994/2 "2024-12-19T23:41:11Z")

</div>

I just published a new prerelease version (1.129), can you try again with that? I think this should be fixed there.

---

<div class="post-metadata">

**Author:** ![stefkuypers](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/stefkuypers/32/19185_2.png) [@stefkuypers](https://discourse.julialang.org/u/stefkuypers)\
**Post date:** [December 20, 2024, 7:53am UTC](https://discourse.julialang.org/t/debugger-crashed/123994/3 "2024-12-20T07:53:28Z")

</div>

It seems to be working now. Thanks!

One other question: there is an issue with the breakpoints. I can not remove them while the code is running. I tried, but even though the breakpoint is no longer listed and there is no red dot indicating the presence of a breakpoint, the code still stops on the same spot.

---

<div class="post-metadata">

**Author:** ![davidanthoff](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/davidanthoff/32/223493_2.png) [@davidanthoff](https://discourse.julialang.org/u/davidanthoff)\
**Post date:** [December 20, 2024, 5:14pm UTC](https://discourse.julialang.org/t/debugger-crashed/123994/4 "2024-12-20T17:14:54Z")

</div>

Ah, could you open an issue? Over at DebugAdapter.jl ideally.

---

<div class="post-metadata">

**Author:** ![mcaetano](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mcaetano/32/214330_2.png) [@mcaetano](https://discourse.julialang.org/u/mcaetano)\
**Post date:** [December 21, 2024, 5:07pm UTC](https://discourse.julialang.org/t/debugger-crashed/123994/5 "2024-12-21T17:07:20Z")

</div>

Hi David, I have a similar issue with debugging but 1.129 does not fix the problem. Should I make a new post?

---

<div class="post-metadata">

**Author:** ![davidanthoff](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/davidanthoff/32/223493_2.png) [@davidanthoff](https://discourse.julialang.org/u/davidanthoff)\
**Post date:** [December 21, 2024, 7:30pm UTC](https://discourse.julialang.org/t/debugger-crashed/123994/6 "2024-12-21T19:30:34Z")

</div>

Issues are best!

---

<div class="post-metadata">

**Author:** ![mcaetano](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mcaetano/32/214330_2.png) [@mcaetano](https://discourse.julialang.org/u/mcaetano)\
**Post date:** [December 21, 2024, 8:30pm UTC](https://discourse.julialang.org/t/debugger-crashed/123994/7 "2024-12-21T20:30:31Z")

</div>

Thanks for the reply. Do you mean issues on GitHub? If so, I created one 2 years ago about this issue but it was never answered. I was hoping to get help here for this reason.
