# \#debugger

**URL:** https://discourse.julialang.org/tag/debugger/961.md

[Latest](https://discourse.julialang.org/latest.md) · [Categories](https://discourse.julialang.org/categories.md) · [Tags](https://discourse.julialang.org/tags.md)

---

## [Error in the keymap: bug in Debugger](https://discourse.julialang.org/t/error-in-the-keymap-bug-in-debugger/139131)

<div class="topic-metadata">

**Author:** [@phma](https://discourse.julialang.org/u/phma)\
**Replies:** 5\
**Last updated:** [September 2, 2026, 8:40am UTC](https://discourse.julialang.org/t/error-in-the-keymap-bug-in-debugger/139131 "2026-09-02T08:40:20Z")

</div>

I just updated Julia on puma to 1.12.7, after updating kodkod to 1.12.7 with no problem. I then did instantiate, update, and resolve until it appeared to load a script without problem. I then ran cvtdeg("foo") (one of th…

---

## [TestItems: debugger crashes in vscode](https://discourse.julialang.org/t/testitems-debugger-crashes-in-vscode/139126)

<div class="topic-metadata">

**Author:** [@stustd](https://discourse.julialang.org/u/stustd)\
**Replies:** 3\
**Last updated:** [September 1, 2026, 8:28pm UTC](https://discourse.julialang.org/t/testitems-debugger-crashes-in-vscode/139126 "2026-09-01T20:28:43Z")

</div>

I start the debugger on a @testitem that runs perfectly fine without debugger. Putting in a breakpoint (at some line in the @testset) and then trying to debug causes the debugger to crash: \[ Info: Julia test item proces…

---

## [Debugger stopped working in VSCode?](https://discourse.julialang.org/t/debugger-stopped-working-in-vscode/137727)

<div class="topic-metadata">

**Author:** [@juliohm](https://discourse.julialang.org/u/juliohm)\
**Replies:** 2\
**Last updated:** [June 22, 2026, 5:23pm UTC](https://discourse.julialang.org/t/debugger-stopped-working-in-vscode/137727 "2026-06-22T17:23:23Z")

</div>

The debugger in VSCode stopped working for me recently. I am not sure if the problem was introduced in Julia v1.11 or Julia v1.12. Whenever I call @enter fun(arg...) in the REPL the debugger is launched, but I can’t step…

---

## [Attach debugger to running process](https://discourse.julialang.org/t/attach-debugger-to-running-process/136890)

<div class="topic-metadata">

**Author:** [@zuckerruebe](https://discourse.julialang.org/u/zuckerruebe)\
**Replies:** 10\
**Last updated:** [May 20, 2026, 3:50pm UTC](https://discourse.julialang.org/t/attach-debugger-to-running-process/136890 "2026-05-20T15:50:46Z")

</div>

Hi all Glancing at DebugAdapter.jl it seemed to me that you could debug a program “after the fact”, i.e. attach a debugger to it once it has started. Is that correct? Can DebugAdapter.jl do this? If so, can this functio…

---

## [Debugger no longer hits breakpoints in VSC?](https://discourse.julialang.org/t/debugger-no-longer-hits-breakpoints-in-vsc/136161)

<div class="topic-metadata">

**Author:** [@joa-quim](https://discourse.julialang.org/u/joa-quim)\
**Replies:** 22\
**Last updated:** [May 15, 2026, 2:28pm UTC](https://discourse.julialang.org/t/debugger-no-longer-hits-breakpoints-in-vsc/136161 "2026-05-15T14:28:57Z")

</div>

When now do @run ... no breakpoints are hit. That means no debugger at all- Only me?

---

## [ERROR: Debugger.jl requires a LineEditREPL type of REPL](https://discourse.julialang.org/t/error-debugger-jl-requires-a-lineeditrepl-type-of-repl/128760)

<div class="topic-metadata">

**Author:** [@WalterMadelim](https://discourse.julialang.org/u/WalterMadelim)\
**Replies:** 18\
**Last updated:** [March 27, 2026, 8:38pm UTC](https://discourse.julialang.org/t/error-debugger-jl-requires-a-lineeditrepl-type-of-repl/128760 "2026-03-27T20:38:59Z")

</div>

PS K:\\uc24\> julia \_ \_ \_ \_(\_)\_ | Documentation: https://docs.julialang.org (\_) | (\_) (\_) | \_ \_ \_| |\_ \_\_ \_ | Type "?" for help, "\]?" for Pkg help. | | | | | | |/ \_\` | | |…

---

## [VSCode debugger behaves strangely](https://discourse.julialang.org/t/vscode-debugger-behaves-strangely/135452)

<div class="topic-metadata">

**Author:** [@Daeltam](https://discourse.julialang.org/u/Daeltam)\
**Replies:** 4\
**Last updated:** [February 5, 2026, 11:14am UTC](https://discourse.julialang.org/t/vscode-debugger-behaves-strangely/135452 "2026-02-05T11:14:06Z")

</div>

Instead of showing the error as usual, it opens a new tab with infos i can’t seem to comprehend Plus the restart button doesn’t work, it terminates but not fully. Terminate button doesn’t fully close the console, it’s …

---

## [\[ANN\] Inline Debugging for Code Cells in VS Code (Call for Testing)](https://discourse.julialang.org/t/ann-inline-debugging-for-code-cells-in-vs-code-call-for-testing/135420)

<div class="topic-metadata">

**Author:** [@mkh](https://discourse.julialang.org/u/mkh)\
**Replies:** 0\
**Last updated:** [February 3, 2026, 9:37am UTC](https://discourse.julialang.org/t/ann-inline-debugging-for-code-cells-in-vs-code-call-for-testing/135420 "2026-02-03T09:37:09Z")

</div>

Hi everyone, This post announces an upcoming feature for the Julia VS Code extension: Inline Cell Debugging. I’m sharing this Pull Request as an announcement because the core functionality is now complete, and a prebui…

---

## [Troubles using the Julia Debugger in VSCode](https://discourse.julialang.org/t/troubles-using-the-julia-debugger-in-vscode/132945)

<div class="topic-metadata">

**Author:** [@armin\_golesch](https://discourse.julialang.org/u/armin_golesch)\
**Replies:** 4\
**Last updated:** [October 7, 2025, 5:51pm UTC](https://discourse.julialang.org/t/troubles-using-the-julia-debugger-in-vscode/132945 "2025-10-07T17:51:26Z")

</div>

Hello all, I am new to the community and using Julia in general. I am facing some trouble using the debugger in VSCode. I am already running Julia in my custom environment and have a working script. However, I just cou…

---

## [VSCode debugger breaks on unknown command](https://discourse.julialang.org/t/vscode-debugger-breaks-on-unknown-command/128571)

<div class="topic-metadata">

**Author:** [@bellon-tiobe](https://discourse.julialang.org/u/bellon-tiobe)\
**Replies:** 1\
**Last updated:** [April 30, 2025, 12:51pm UTC](https://discourse.julialang.org/t/vscode-debugger-breaks-on-unknown-command/128571 "2025-04-30T12:51:59Z")

</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: Activating project at \`~/Julia/JuliaCheck\` ┌ Error: Some Julia code in the VS Code e…

---

## [How to debug the compiler with Debugger.jl](https://discourse.julialang.org/t/how-to-debug-the-compiler-with-debugger-jl/124229)

<div class="topic-metadata">

**Author:** [@nsajko](https://discourse.julialang.org/u/nsajko)\
**Replies:** 1\
**Last updated:** [December 28, 2024, 1:19pm UTC](https://discourse.julialang.org/t/how-to-debug-the-compiler-with-debugger-jl/124229 "2024-12-28T13:19:15Z")

</div>

For Debugger.jl, I assume compiled mode is enabled by default for @run? How do I disable it? I want to disable it to be able to step through the type inference code in the compiler. Can’t use VS Code’s debugger because i…

---

## [Debugger - Treat specific functions as compiled in package](https://discourse.julialang.org/t/debugger-treat-specific-functions-as-compiled-in-package/124802)

<div class="topic-metadata">

**Author:** [@p\_f](https://discourse.julialang.org/u/p_f)\
**Replies:** 0\
**Last updated:** [January 15, 2025, 5:48pm UTC](https://discourse.julialang.org/t/debugger-treat-specific-functions-as-compiled-in-package/124802 "2025-01-15T17:48:02Z")

</div>

Motivated by Extremely slow debugging in VS Code, I have become invested in understanding the VSCode debugger. Is it possible to effectively treat particular functions in my package as compiled? For example, consider …

---

## [Vscode crash on debug with "unknown command" on 1.11.2](https://discourse.julialang.org/t/vscode-crash-on-debug-with-unknown-command-on-1-11-2/124514)

<div class="topic-metadata">

**Author:** [@dimsinel](https://discourse.julialang.org/u/dimsinel)\
**Replies:** 4\
**Last updated:** [January 8, 2025, 1:46pm UTC](https://discourse.julialang.org/t/vscode-crash-on-debug-with-unknown-command-on-1-11-2/124514 "2025-01-08T13:46:05Z")

</div>

Hello. I am on vscode 1.96.2 w/ julia ext 1.127.2 – but the exact same thing happens prerelease 1.136.1. The simplest code simply crashes the debugger – and I don’t even need to create breakpoints for this to happen. …

---

## [VS Code debugger crashes for "Hello World"](https://discourse.julialang.org/t/vs-code-debugger-crashes-for-hello-world/124078)

<div class="topic-metadata">

**Author:** [@mcaetano](https://discourse.julialang.org/u/mcaetano)\
**Replies:** 2\
**Last updated:** [December 22, 2024, 12:57am UTC](https://discourse.julialang.org/t/vs-code-debugger-crashes-for-hello-world/124078 "2024-12-22T00:57:35Z")

</div>

Hello, I understand that the Julia debugging experience in VS Code is still under development, but I was never able to get the debugger to work even for the “Hello World” script set as the example on VS Code’s page. Whe…

---

## [What is the standard way to debug Julia?](https://discourse.julialang.org/t/what-is-the-standard-way-to-debug-julia/90436)

<div class="topic-metadata">

**Author:** [@bertulli](https://discourse.julialang.org/u/bertulli)\
**Replies:** 19\
**Last updated:** [December 6, 2024, 10:53am UTC](https://discourse.julialang.org/t/what-is-the-standard-way-to-debug-julia/90436 "2024-12-06T10:53:03Z")

</div>

Hi all! Sorry for the noobish question (borderline between Tooling and General usage). I needed to debug a piece of Julia code yesterday, so I checked online what was the official debugger. I was surprised to find there…

---

## [Is there any IDE alternative to VSC+debugger?](https://discourse.julialang.org/t/is-there-any-ide-alternative-to-vsc-debugger/121754)

<div class="topic-metadata">

**Author:** [@joa-quim](https://discourse.julialang.org/u/joa-quim)\
**Replies:** 22\
**Last updated:** [October 27, 2024, 2:10am UTC](https://discourse.julialang.org/t/is-there-any-ide-alternative-to-vsc-debugger/121754 "2024-10-27T02:10:28Z")

</div>

With current state of the debugger in VSC only allowing to run it once, the utility for me of VSC itself dropped to very low. Only the code navigation facilities still makes me using it. Are there any alternatives (Subl…

---

## [VSCode Debugger bugs (are these known issues?)](https://discourse.julialang.org/t/vscode-debugger-bugs-are-these-known-issues/119790)

<div class="topic-metadata">

**Author:** [@Arlo](https://discourse.julialang.org/u/Arlo)\
**Replies:** 8\
**Last updated:** [October 18, 2024, 7:54am UTC](https://discourse.julialang.org/t/vscode-debugger-bugs-are-these-known-issues/119790 "2024-10-18T07:54:55Z")

</div>

I’ve been trying out the Julia debugger in VSCode and found a few issues with it. Windows 11, VSCode 1.93.1, julia-vscode v1.123.2 Are these all known issues? If not, where should I report them, the VScode plugin proje…

---

## [Julia code crash in VSCode extension](https://discourse.julialang.org/t/julia-code-crash-in-vscode-extension/119863)

<div class="topic-metadata">

**Author:** [@s\_amap](https://discourse.julialang.org/u/s_amap)\
**Replies:** 0\
**Last updated:** [September 25, 2024, 12:53pm UTC](https://discourse.julialang.org/t/julia-code-crash-in-vscode-extension/119863 "2024-09-25T12:53:03Z")

</div>

Greetings, I am quite new to Julia and VSCode (I come from a mostly C/C++ background), so apologies if the issue isn’t perfectly described. Using Julia 1.10.5 and the latest version of the VSCode extension, I encounter…

---

## [Unit tests, debugger, VsCode](https://discourse.julialang.org/t/unit-tests-debugger-vscode/113419)

<div class="topic-metadata">

**Author:** [@feribg](https://discourse.julialang.org/u/feribg)\
**Replies:** 4\
**Last updated:** [July 12, 2024, 1:06am UTC](https://discourse.julialang.org/t/unit-tests-debugger-vscode/113419 "2024-07-12T01:06:02Z")

</div>

What is the recommended workflow for using tests + vscode official Julia extension + debugger. It seems like they just can’t be made to work together. If I run the file runtests.jl using TestItemRunner @run\_package\_tes…

---

## [The VS Code debugger always gets stuck at the quadratic constraint definition of a JuMP model](https://discourse.julialang.org/t/the-vs-code-debugger-always-gets-stuck-at-the-quadratic-constraint-definition-of-a-jump-model/114285)

<div class="topic-metadata">

**Author:** [@WuSiren](https://discourse.julialang.org/u/WuSiren)\
**Replies:** 2\
**Last updated:** [May 15, 2024, 9:29am UTC](https://discourse.julialang.org/t/the-vs-code-debugger-always-gets-stuck-at-the-quadratic-constraint-definition-of-a-jump-model/114285 "2024-05-15T09:29:51Z")

</div>

The VS Code debugger always gets stuck at the quadratic constraint definition of a JuMP model. Please launch the debugger to run the following code in the VS Code in an environment where JuMP.jl is installed: using Pkg …

---

## [Any way to save variables to WorkSpace from the Debug Console in VSCode?](https://discourse.julialang.org/t/any-way-to-save-variables-to-workspace-from-the-debug-console-in-vscode/84933)

<div class="topic-metadata">

**Author:** [@Nathan\_Boyer](https://discourse.julialang.org/u/Nathan_Boyer)\
**Replies:** 1\
**Last updated:** [March 15, 2024, 3:07pm UTC](https://discourse.julialang.org/t/any-way-to-save-variables-to-workspace-from-the-debug-console-in-vscode/84933 "2024-03-15T15:07:20Z")

</div>

I seem to be able to edit existing workspace variable values from the debug console, but I am not able to define new variables. I want to be able to test and play with the next line after my breakpoint before actual…

---

## [Julia VS code debugger gets stuck](https://discourse.julialang.org/t/julia-vs-code-debugger-gets-stuck/95449)

<div class="topic-metadata">

**Author:** [@HoldenCaulfield](https://discourse.julialang.org/u/HoldenCaulfield)\
**Replies:** 11\
**Last updated:** [April 24, 2023, 4:46pm UTC](https://discourse.julialang.org/t/julia-vs-code-debugger-gets-stuck/95449 "2023-04-24T16:46:26Z")

</div>

I’m trying to debug my code in VSCode, but the debugger gets stuck and never reaches the breakpoint. My code uses several Julia packages (such as Distributions, Distances, JLD, BoltzmannMachines) and runs in a matter of …

---

## [How to debug exception triggered by unit test in VSCode](https://discourse.julialang.org/t/how-to-debug-exception-triggered-by-unit-test-in-vscode/90438)

<div class="topic-metadata">

**Author:** [@nrontsis](https://discourse.julialang.org/u/nrontsis)\
**Replies:** 1\
**Last updated:** [November 20, 2022, 6:12pm UTC](https://discourse.julialang.org/t/how-to-debug-exception-triggered-by-unit-test-in-vscode/90438 "2022-11-20T18:12:26Z")

</div>

Suppose the following minimal example, that triggers an exception in its execution, due to the return x + 1 line: using Test function f(x) return x + 1 end @test f(\[0\]) == \[1\] I want to launch a debugging session…

---

## [After using VS Code debugger (compiled mode), error message of Optimization.jl appeared for a previously working code](https://discourse.julialang.org/t/after-using-vs-code-debugger-compiled-mode-error-message-of-optimization-jl-appeared-for-a-previously-working-code/89374)

<div class="topic-metadata">

**Author:** [@tlyim](https://discourse.julialang.org/u/tlyim)\
**Replies:** 0\
**Last updated:** [October 27, 2022, 2:12pm UTC](https://discourse.julialang.org/t/after-using-vs-code-debugger-compiled-mode-error-message-of-optimization-jl-appeared-for-a-previously-working-code/89374 "2022-10-27T14:12:56Z")

</div>

I have a working Julia code, which was converted from a working Matlab code. There were some minor differences in the results. I wanted to confirm whether they were due to an imperfect conversion of Matlab’s fmincon func…

---

## [Plotting from Debugger.jl?](https://discourse.julialang.org/t/plotting-from-debugger-jl/82006)

<div class="topic-metadata">

**Author:** [@johnomotani](https://discourse.julialang.org/u/johnomotani)\
**Replies:** 2\
**Last updated:** [May 31, 2022, 7:49pm UTC](https://discourse.julialang.org/t/plotting-from-debugger-jl/82006 "2022-05-31T19:49:42Z")

</div>

Inside a debugging session with Debugger.jl, is it possible to display plots (I’m currently using Plots.jl, but willing to use any package) from the julia prompt? I can save the plots to disk, but it would be nice to jus…

---

## [How to change the PATH variable on VSCode Debugger](https://discourse.julialang.org/t/how-to-change-the-path-variable-on-vscode-debugger/80959)

<div class="topic-metadata">

**Author:** [@guilhermebodin](https://discourse.julialang.org/u/guilhermebodin)\
**Replies:** 0\
**Last updated:** [May 12, 2022, 2:23pm UTC](https://discourse.julialang.org/t/how-to-change-the-path-variable-on-vscode-debugger/80959 "2022-05-12T14:23:01Z")

</div>

Hi, I have a kind of complicated bat script that runs a julia executable inside, in order to use the debugger I would have to make an edition in the PATH environment variable, is this currently possible in the Debugger o…

---

## [Debugger for command line script (works without REPL)?](https://discourse.julialang.org/t/debugger-for-command-line-script-works-without-repl/60286)

<div class="topic-metadata">

**Author:** [@mkarikom](https://discourse.julialang.org/u/mkarikom)\
**Replies:** 0\
**Last updated:** [April 30, 2021, 2:29am UTC](https://discourse.julialang.org/t/debugger-for-command-line-script-works-without-repl/60286 "2021-04-30T02:29:49Z")

</div>

Is there a debugger that will allow me to do something like this: JULIA\_PROJECT=/tmp/testenv julia /tmp/testenv/testdebugger.jl hithere # testdebugger.jl (does not work) println(string("julia environment is:\\n ",ENV\["J…

---

## [Repl debugger how to set default editor?](https://discourse.julialang.org/t/repl-debugger-how-to-set-default-editor/79851)

<div class="topic-metadata">

**Author:** [@anon69491625](https://discourse.julialang.org/u/anon69491625)\
**Replies:** 2\
**Last updated:** [April 22, 2022, 5:02pm UTC](https://discourse.julialang.org/t/repl-debugger-how-to-set-default-editor/79851 "2022-04-22T17:02:55Z")

</div>

hi there just starting with the julia repl debugger but when I want to open the current line in an editor I get About to run: (tuple)(2, 2) 1|debug\> fr \[1\] foo(n) at REPL\[1\]:1 | n::Int64 = 20 | x::Int64 = 21 1|debu…

---

## [Debugger usage: step over evaluations in function arguments, straight into the function](https://discourse.julialang.org/t/debugger-usage-step-over-evaluations-in-function-arguments-straight-into-the-function/77018)

<div class="topic-metadata">

**Author:** [@johnomotani](https://discourse.julialang.org/u/johnomotani)\
**Replies:** 8\
**Last updated:** [February 25, 2022, 11:11am UTC](https://discourse.julialang.org/t/debugger-usage-step-over-evaluations-in-function-arguments-straight-into-the-function/77018 "2022-02-25T11:11:15Z")

</div>

When using Debugger.jl from the REPL, I often find I have a function call like @views foo!(a\[:,j,i\], b\[j\], c.bar) To actually step into the body of foo!(), I find myself first stepping into getindex()/getproperty()/etc…
