# \#debug

**URL:** https://discourse.julialang.org/tag/debug/64.md

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

---

## [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…

---

## [\[ANN\] ReferenceRevision](https://discourse.julialang.org/t/ann-referencerevision/136691)

<div class="topic-metadata">

**Author:** [@GunnarFarneback](https://discourse.julialang.org/u/GunnarFarneback)\
**Replies:** 2\
**Last updated:** [April 12, 2026, 9:40pm UTC](https://discourse.julialang.org/t/ann-referencerevision/136691 "2026-04-12T21:40:23Z")

</div>

Summary ReferenceRevision is a Julia package which can automatically check out a copy of your code at a different revision and run it in a subprocess with seamless sharing of variables. Rationale Assume you are developi…

---

## [Julia debugging is extremely slow](https://discourse.julialang.org/t/julia-debugging-is-extremely-slow/135839)

<div class="topic-metadata">

**Author:** [@tue](https://discourse.julialang.org/u/tue)\
**Replies:** 102\
**Last updated:** [March 24, 2026, 9:07am UTC](https://discourse.julialang.org/t/julia-debugging-is-extremely-slow/135839 "2026-03-24T09:07:16Z")

</div>

I was programming quite a bit in julia about 5-6 years ago but ended up quitting since the debugger was just too unuseable. Now I’m testing it out again for a small side project and I once again find myself with the same…

---

## [World age warning on debugger](https://discourse.julialang.org/t/world-age-warning-on-debugger/135579)

<div class="topic-metadata">

**Author:** [@ryofurue](https://discourse.julialang.org/u/ryofurue)\
**Replies:** 5\
**Last updated:** [February 13, 2026, 10:19am UTC](https://discourse.julialang.org/t/world-age-warning-on-debugger/135579 "2026-02-13T10:19:09Z")

</div>

I’m quite new to VS Code. I just started to use it several days ago. I’m already comfortable in editing Julia code on it. I use the official Julia extension. When I run the debugger on a module, however, it warns about …

---

## [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 …

---

## [Should vscode debugger work in REPL for included functions?](https://discourse.julialang.org/t/should-vscode-debugger-work-in-repl-for-included-functions/134379)

<div class="topic-metadata">

**Author:** [@carpetguy](https://discourse.julialang.org/u/carpetguy)\
**Replies:** 4\
**Last updated:** [December 8, 2025, 10:24pm UTC](https://discourse.julialang.org/t/should-vscode-debugger-work-in-repl-for-included-functions/134379 "2025-12-08T22:24:34Z")

</div>

I’m running the vscode REPL and including scripts (via includet or include) which have functions defined. However, if I set breakpoints in the script files (say in myFunc) and do @run myFunc(), the breakpoint is skipped.…

---

## [Weird bug that shouldn't happen; Cannot declare anonymous.#XX#XX constant; it already has a value](https://discourse.julialang.org/t/weird-bug-that-shouldnt-happen-cannot-declare-anonymous-xx-xx-constant-it-already-has-a-value/133989)

<div class="topic-metadata">

**Author:** [@Qfl3x](https://discourse.julialang.org/u/Qfl3x)\
**Replies:** 2\
**Last updated:** [November 19, 2025, 2:58pm UTC](https://discourse.julialang.org/t/weird-bug-that-shouldnt-happen-cannot-declare-anonymous-xx-xx-constant-it-already-has-a-value/133989 "2025-11-19T14:58:28Z")

</div>

I was just playing around in Infiltrator and stumbled on this: Shouldn’t this be impossible? I have 2 other anonymous functions used in the script. Probably dozens if not hundreds in the packages I’m using. Couldn’…

---

## [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…

---

## [\[ANN\] Infiltrator.jl v1.0](https://discourse.julialang.org/t/ann-infiltrator-jl-v1-0/62500)

<div class="topic-metadata">

**Author:** [@pfitzseb](https://discourse.julialang.org/u/pfitzseb)\
**Replies:** 10\
**Last updated:** [June 18, 2025, 10:29am UTC](https://discourse.julialang.org/t/ann-infiltrator-jl-v1-0/62500 "2025-06-18T10:29:02Z")

</div>

Hey everyone, Infiltrator.jl 1.0 is out now! There were a few substantial changes and a bunch of QOL improvements: Added an @exfiltrate macro to export all local variables into a global storage space (or safehouse). T…

---

## [Emacs Debugging (Request for Testing)](https://discourse.julialang.org/t/emacs-debugging-request-for-testing/122111)

<div class="topic-metadata">

**Author:** [@shmiggles](https://discourse.julialang.org/u/shmiggles)\
**Replies:** 2\
**Last updated:** [March 17, 2025, 9:51pm UTC](https://discourse.julialang.org/t/emacs-debugging-request-for-testing/122111 "2025-03-17T21:51:45Z")

</div>

Debugging Julia programs in Emacs is now possible. Open PR for dap-mode integration with DebugAdapter: Support Julia by kovariance · Pull Request #813 · emacs-lsp/dap-mode · GitHub (it includes a screenshot). I would ap…

---

## [\[DICE: GAMS -\> JuMP\] How to debug JuMP model errors (find the culpit)?](https://discourse.julialang.org/t/dice-gams-jump-how-to-debug-jump-model-errors-find-the-culpit/125578)

<div class="topic-metadata">

**Author:** [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Replies:** 6\
**Last updated:** [February 15, 2025, 4:15pm UTC](https://discourse.julialang.org/t/dice-gams-jump-how-to-debug-jump-model-errors-find-the-culpit/125578 "2025-02-15T16:15:00Z")

</div>

Hello, this post il dual :slight\_smile: It’s at the same time a request for help for a specific case, but also a much more general question. I am trying to port the Nordhaus’s DICE climate change model v2023 to Julia, …

---

## [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…

---

## [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…

---

## [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…

---

## [IDE: step-through debugging for macro-generated function?](https://discourse.julialang.org/t/ide-step-through-debugging-for-macro-generated-function/63899)

<div class="topic-metadata">

**Author:** [@greatpet](https://discourse.julialang.org/u/greatpet)\
**Replies:** 0\
**Last updated:** [July 1, 2021, 2:59pm UTC](https://discourse.julialang.org/t/ide-step-through-debugging-for-macro-generated-function/63899 "2021-07-01T14:59:52Z")

</div>

I recently tried using VSCode debugger to “step into” a function from an external package, but VSCode pointed me to a strange code location. Eventually I figured out that the function was not written out, but was generat…

---

## [Is there a way to debug in VS Code using the remote SSH extension?](https://discourse.julialang.org/t/is-there-a-way-to-debug-in-vs-code-using-the-remote-ssh-extension/105845)

<div class="topic-metadata">

**Author:** [@JakeWren](https://discourse.julialang.org/u/JakeWren)\
**Replies:** 1\
**Last updated:** [October 4, 2024, 12:32pm UTC](https://discourse.julialang.org/t/is-there-a-way-to-debug-in-vs-code-using-the-remote-ssh-extension/105845 "2024-10-04T12:32:25Z")

</div>

I am on a Linux cluster and the details of the SSH plugin can be found here. After configuring my launch.json file, and then “Run” → “Start Debugging”, it loads for a bit (looping blue bar), but then stops and nothing h…

---

## [How can I find out why julia crashed?](https://discourse.julialang.org/t/how-can-i-find-out-why-julia-crashed/118467)

<div class="topic-metadata">

**Author:** [@maxfreu](https://discourse.julialang.org/u/maxfreu)\
**Replies:** 14\
**Last updated:** [August 29, 2024, 7:47pm UTC](https://discourse.julialang.org/t/how-can-i-find-out-why-julia-crashed/118467 "2024-08-29T19:47:37Z")

</div>

Hi! I’m working with julia in vscode. A couple of times a day it crashes. By crashing I mean the julia repl closes and I’m dropped into the terminal. Sometimes I get a short glimpse of some error printout from the linux …

---

## [Debugging Julia code in a Jupyter Notebook in VS Code](https://discourse.julialang.org/t/debugging-julia-code-in-a-jupyter-notebook-in-vs-code/117005)

<div class="topic-metadata">

**Author:** [@daler6](https://discourse.julialang.org/u/daler6)\
**Replies:** 5\
**Last updated:** [July 14, 2024, 4:06pm UTC](https://discourse.julialang.org/t/debugging-julia-code-in-a-jupyter-notebook-in-vs-code/117005 "2024-07-14T16:06:53Z")

</div>

Hi, I am working with the debugger that comes with Julia for VS Code. This works fine for script files, but I can’t seem to figure out how to get it to work with Jupyter notebooks running Julia code. Any assistance would…

---

## [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 …

---

## [De-bugging method](https://discourse.julialang.org/t/de-bugging-method/109852)

<div class="topic-metadata">

**Author:** [@Lincoln\_Hannah](https://discourse.julialang.org/u/Lincoln_Hannah)\
**Replies:** 1\
**Last updated:** [February 7, 2024, 5:30am UTC](https://discourse.julialang.org/t/de-bugging-method/109852 "2024-02-07T05:30:31Z")

</div>

I like to execute code line by line with CTRL/SHIFT +Enter (rather than F5 Debug) I often begin a function with two lines of the form global X = (; function\_inputs ) (; function\_inputs) = X So if an error occurs I…

---

## [Build julia-debug on a Raspberry Pi](https://discourse.julialang.org/t/build-julia-debug-on-a-raspberry-pi/109556)

<div class="topic-metadata">

**Author:** [@yakir12](https://discourse.julialang.org/u/yakir12)\
**Replies:** 4\
**Last updated:** [February 1, 2024, 12:00pm UTC](https://discourse.julialang.org/t/build-julia-debug-on-a-raspberry-pi/109556 "2024-02-01T12:00:15Z")

</div>

I’m running into sporadic segfaults when using GitHub - JuliaRobotics/AprilTags.jl: Using Apriltags in Julia, and after some (extensive) tinkering with @johanter he wisely suggested I try to run my segfault-causing scrip…

---

## [Debugger not stopping inside open do blocks](https://discourse.julialang.org/t/debugger-not-stopping-inside-open-do-blocks/107190)

<div class="topic-metadata">

**Author:** [@feribg](https://discourse.julialang.org/u/feribg)\
**Replies:** 8\
**Last updated:** [December 6, 2023, 10:20pm UTC](https://discourse.julialang.org/t/debugger-not-stopping-inside-open-do-blocks/107190 "2023-12-06T22:20:49Z")

</div>

Using VSCode with latest Julia ext and Julia 1.9.4 Consider the following example: current\_files = 0 n\_markets = 0 open("report.log", "w") do fpReport println(fpReport, "CHOOSER log with IS\_n=$(is\_…

---

## [Breakpoint/infiltrate inside a gradient calculation (Zygote or ReverseDiff)?](https://discourse.julialang.org/t/breakpoint-infiltrate-inside-a-gradient-calculation-zygote-or-reversediff/104568)

<div class="topic-metadata">

**Author:** [@Qfl3x](https://discourse.julialang.org/u/Qfl3x)\
**Replies:** 4\
**Last updated:** [October 4, 2023, 12:20pm UTC](https://discourse.julialang.org/t/breakpoint-infiltrate-inside-a-gradient-calculation-zygote-or-reversediff/104568 "2023-10-04T12:20:23Z")

</div>

I’m trying to debug why Zygote and ReverseDiff don’t work with MethodOfLines, however, I’m struggling to break inside the gradient calculation. Zygote and ReverseDiff are changing the types of some inputs. Breakpoints in…

---

## [Starting Julia debugger in a given directory](https://discourse.julialang.org/t/starting-julia-debugger-in-a-given-directory/104282)

<div class="topic-metadata">

**Author:** [@wujinq](https://discourse.julialang.org/u/wujinq)\
**Replies:** 1\
**Last updated:** [September 26, 2023, 10:20pm UTC](https://discourse.julialang.org/t/starting-julia-debugger-in-a-given-directory/104282 "2023-09-26T22:20:30Z")

</div>

I’m writing a script that read files in the same folder that contains the script itself. So the script starts with something like let wfn\_file\_name = "WFN\_co.h5", eqp\_file\_name = "eqp\_co.dat", itrs\_max = 1 …

---

## [Interpret Main.foreach but keep Base.foreach as compiled](https://discourse.julialang.org/t/interpret-main-foreach-but-keep-base-foreach-as-compiled/104000)

<div class="topic-metadata">

**Author:** [@mariusd](https://discourse.julialang.org/u/mariusd)\
**Replies:** 2\
**Last updated:** [September 19, 2023, 11:11pm UTC](https://discourse.julialang.org/t/interpret-main-foreach-but-keep-base-foreach-as-compiled/104000 "2023-09-19T23:11:37Z")

</div>

I’m currently debugging the Tracker.jl package, and see this line https://github.com/FluxML/Tracker.jl/blob/master/src/back.jl#L38C6-L38C6. foreach calls the back method and because foreach is compiled, I cannot debug th…

---

## [Infiltrator based debugger](https://discourse.julialang.org/t/infiltrator-based-debugger/103817)

<div class="topic-metadata">

**Author:** [@mariusd](https://discourse.julialang.org/u/mariusd)\
**Replies:** 2\
**Last updated:** [September 15, 2023, 9:21am UTC](https://discourse.julialang.org/t/infiltrator-based-debugger/103817 "2023-09-15T09:21:12Z")

</div>

See the following code, I have added @infiltrate after every statement in the function such that I can debug everything. But then I was thinking this might be an excellent UI debugger alternative: having @infiltrate happ…

---

## [Add Infiltrator.jl to Base?](https://discourse.julialang.org/t/add-infiltrator-jl-to-base/77995)

<div class="topic-metadata">

**Author:** [@CameronBieganek](https://discourse.julialang.org/u/CameronBieganek)\
**Replies:** 15\
**Last updated:** [September 12, 2023, 5:53am UTC](https://discourse.julialang.org/t/add-infiltrator-jl-to-base/77995 "2023-09-12T05:53:14Z")

</div>

I know that folks often ask to add things to Base here on Discourse, and that usually the correct answer is “no”, but I think there’s a very good reason to add Infiltrator.jl to Base Julia. Let me explain. Infiltrator.j…

---

## [Debugger does not step over quoted macro code in VS Code](https://discourse.julialang.org/t/debugger-does-not-step-over-quoted-macro-code-in-vs-code/103657)

<div class="topic-metadata">

**Author:** [@quert](https://discourse.julialang.org/u/quert)\
**Replies:** 3\
**Last updated:** [September 11, 2023, 9:02am UTC](https://discourse.julialang.org/t/debugger-does-not-step-over-quoted-macro-code-in-vs-code/103657 "2023-09-11T09:02:36Z")

</div>

I would like to know how other people use the debugger with code that uses the logging macros. For me it is almost unusable, since the debugger steps into every logging call, e.g. @debug, @info, .... Every time I have to…

---

## [Attaching a debugger to a running Julia program and printing local variables](https://discourse.julialang.org/t/attaching-a-debugger-to-a-running-julia-program-and-printing-local-variables/99961)

<div class="topic-metadata">

**Author:** [@nsajko](https://discourse.julialang.org/u/nsajko)\
**Replies:** 1\
**Last updated:** [June 6, 2023, 7:57pm UTC](https://discourse.julialang.org/t/attaching-a-debugger-to-a-running-julia-program-and-printing-local-variables/99961 "2023-06-06T19:57:27Z")

</div>

I have a long-running Julia (nightly) script that seems to enter an infinite loop sometimes after running for several hours. Julia is started with ENABLE\_GDBLISTENER=1 and with -g2. Attaching with GDB (gdb -p PID) works…

[Next page](https://discourse.julialang.org/tag/debug/64.md?match_all_tags=true&page=1&tags%5B%5D=debug)
