# \#debugging

**URL:** https://discourse.julialang.org/tag/debugging/125.md

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

---

## [\[ANN\] MathChecker.jl: Find problems in floating-point calculations](https://discourse.julialang.org/t/ann-mathchecker-jl-find-problems-in-floating-point-calculations/139261)

<div class="topic-metadata">

**Author:** [@moble](https://discourse.julialang.org/u/moble)\
**Replies:** 6\
**Last updated:** [September 10, 2026, 4:01pm UTC](https://discourse.julialang.org/t/ann-mathchecker-jl-find-problems-in-floating-point-calculations/139261 "2026-09-10T16:01:50Z")

</div>

I’m always surprised this isn’t a bigger topic of conversation among Julia users: how to find where problems are coming from in numerics. The gap between our pretty equations and algorithms on one hand, and practical …

---

## [Debugger not working](https://discourse.julialang.org/t/debugger-not-working/138981)

<div class="topic-metadata">

**Author:** [@MathMan](https://discourse.julialang.org/u/MathMan)\
**Replies:** 7\
**Last updated:** [August 22, 2026, 5:28pm UTC](https://discourse.julialang.org/t/debugger-not-working/138981 "2026-08-22T17:28:55Z")

</div>

I tried Julia again after some time using MATLAB. However, I cannot get debugging to work in VS Code. When I set a debug point, Julia pauses correctly, but when I remove the breakpoint, Julia will still pause at this bre…

---

## [MWE package?](https://discourse.julialang.org/t/mwe-package/126792)

<div class="topic-metadata">

**Author:** [@Ken\_Williams](https://discourse.julialang.org/u/Ken_Williams)\
**Replies:** 10\
**Last updated:** [July 5, 2026, 12:48pm UTC](https://discourse.julialang.org/t/mwe-package/126792 "2026-07-05T12:48:12Z")

</div>

I see this previous thread on Discourse: Suggestion for a new package: MinimalWorkingExamples.jl; but it looks like maybe this never got off the ground? Coming from an R background, it’s extremely helpful (both as an as…

---

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

---

## [\`@infiltry\` usage](https://discourse.julialang.org/t/infiltry-usage/135198)

<div class="topic-metadata">

**Author:** [@Alec\_Loudenback](https://discourse.julialang.org/u/Alec_Loudenback)\
**Replies:** 2\
**Last updated:** [January 22, 2026, 8:21am UTC](https://discourse.julialang.org/t/infiltry-usage/135198 "2026-01-22T08:21:35Z")

</div>

I’m exploring Infiltrator.jl and I am not clear on the use case or purpose of @infiltry. I thought that it would help me debug by catching the state of the code when the exception occurred, but this does not seem to be t…

---

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

---

## [Enable debug logging for one file or one function in a module](https://discourse.julialang.org/t/enable-debug-logging-for-one-file-or-one-function-in-a-module/132423)

<div class="topic-metadata">

**Author:** [@Ken\_Williams](https://discourse.julialang.org/u/Ken_Williams)\
**Replies:** 6\
**Last updated:** [September 22, 2025, 3:33pm UTC](https://discourse.julialang.org/t/enable-debug-logging-for-one-file-or-one-function-in-a-module/132423 "2025-09-22T15:33:09Z")

</div>

Is it possible to enable @debug messages selectively, for a specific file or function within a module? I see in the docs that Message filtering can be influenced through the JULIA\_DEBUG environment variable, and serve…

---

## [Break out of Infiltrator](https://discourse.julialang.org/t/break-out-of-infiltrator/124134)

<div class="topic-metadata">

**Author:** [@Ken\_Williams](https://discourse.julialang.org/u/Ken_Williams)\
**Replies:** 5\
**Last updated:** [August 12, 2025, 3:41pm UTC](https://discourse.julialang.org/t/break-out-of-infiltrator/124134 "2025-08-12T15:41:51Z")

</div>

Is there some way to break completely out of Infiltrator’s @infiltrate mode and return to the REPL, not executing any further code? Just like a “stop” button would in most IDEs’ debugging modes. I see the @exit macro, …

---

## [\[10757\] signal 11 (1): Segmentation fault](https://discourse.julialang.org/t/10757-signal-11-1-segmentation-fault/131139)

<div class="topic-metadata">

**Author:** [@redti](https://discourse.julialang.org/u/redti)\
**Replies:** 37\
**Last updated:** [July 30, 2025, 4:42pm UTC](https://discourse.julialang.org/t/10757-signal-11-1-segmentation-fault/131139 "2025-07-30T16:42:04Z")

</div>

Hi, I’m completely new to Julia, I’d like to begging by expressing my appreciation for the FreeBSD installation package to the Dev responsible for it. I’m under FreeBSD 14.3 patch 1. I’m using KDE, Plasma 6.4.3. The w…

---

## [Start debugger after an error occurs](https://discourse.julialang.org/t/start-debugger-after-an-error-occurs/108663)

<div class="topic-metadata">

**Author:** [@Oto\_Brzobohaty](https://discourse.julialang.org/u/Oto_Brzobohaty)\
**Replies:** 2\
**Last updated:** [July 10, 2025, 5:33pm UTC](https://discourse.julialang.org/t/start-debugger-after-an-error-occurs/108663 "2025-07-10T17:33:37Z")

</div>

I am running for cycle where I load text data files and post process them. One of the files is corrupted and I got an error. Is there possibility to run the julia program in vscode and start debbuging after the error. S…

---

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

---

## [Using Debugger.jl with almost all modules in compiled mode](https://discourse.julialang.org/t/using-debugger-jl-with-almost-all-modules-in-compiled-mode/127942)

<div class="topic-metadata">

**Author:** [@bernardofpc](https://discourse.julialang.org/u/bernardofpc)\
**Replies:** 0\
**Last updated:** [April 10, 2025, 5:03pm UTC](https://discourse.julialang.org/t/using-debugger-jl-with-almost-all-modules-in-compiled-mode/127942 "2025-04-10T17:03:26Z")

</div>

I read Debugging extremely slow - #54 by mariusd and it mentions JuliaInterpreter, which is not listed in the Debugger.jl documentation (I have only found the README.md on github). It would be helpful to have this usage…

---

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

---

## [Extremely slow debugging in VS Code](https://discourse.julialang.org/t/extremely-slow-debugging-in-vs-code/124762)

<div class="topic-metadata">

**Author:** [@MathMan](https://discourse.julialang.org/u/MathMan)\
**Replies:** 53\
**Last updated:** [January 20, 2025, 4:30pm UTC](https://discourse.julialang.org/t/extremely-slow-debugging-in-vs-code/124762 "2025-01-20T16:30:12Z")

</div>

I am new to Julia. I installed the application and the VS Code extension. When I run very simple scripts, e.g. just plotting a sin() function, stepping through the program via breakpoints is nearly impossible. Stepping f…

---

## [Environment variables, debugging, globals, etcetera](https://discourse.julialang.org/t/environment-variables-debugging-globals-etcetera/124928)

<div class="topic-metadata">

**Author:** [@Joris\_Pinkse](https://discourse.julialang.org/u/Joris_Pinkse)\
**Replies:** 2\
**Last updated:** [January 19, 2025, 11:49pm UTC](https://discourse.julialang.org/t/environment-variables-debugging-globals-etcetera/124928 "2025-01-19T23:49:12Z")

</div>

Suppose that I want to use a global switch to turn certain activity on or off. An example activity would be to save a large amount of state information to disk after an iteration (or not). There are several ways of ach…

---

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

---

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

---

## [Debug logging for package extensions](https://discourse.julialang.org/t/debug-logging-for-package-extensions/123883)

<div class="topic-metadata">

**Author:** [@pat-alt](https://discourse.julialang.org/u/pat-alt)\
**Replies:** 2\
**Last updated:** [December 17, 2024, 11:03am UTC](https://discourse.julialang.org/t/debug-logging-for-package-extensions/123883 "2024-12-17T11:03:11Z")

</div>

Is it possible to enable debug logging for package extensions? I’m trying to simply do JULIA\_DEBUG=TaijaParallel,TaijaParallel.MPIExt mpiexec -n 4 julia --project=$EXPERIMENT\_DIR $EXPERIMENT\_DIR/run\_evaluation\_grid.jl --…

---

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

---

## [Troubleshooting allocations in SymbolicUtils code](https://discourse.julialang.org/t/troubleshooting-allocations-in-symbolicutils-code/122027)

<div class="topic-metadata">

**Author:** [@ctessum](https://discourse.julialang.org/u/ctessum)\
**Replies:** 2\
**Last updated:** [November 1, 2024, 8:57am UTC](https://discourse.julialang.org/t/troubleshooting-allocations-in-symbolicutils-code/122027 "2024-11-01T08:57:34Z")

</div>

Hello! I have some a model here that is having some performance issues. I’ve included below a screenshot of a performance profile: As you can see, the majority of the time is being taken up by a macro expansion in S…

---

## [Treating NaN as error: Helping debugging](https://discourse.julialang.org/t/treating-nan-as-error-helping-debugging/36933)

<div class="topic-metadata">

**Author:** [@JosephPollacco](https://discourse.julialang.org/u/JosephPollacco)\
**Replies:** 19\
**Last updated:** [October 29, 2024, 3:08pm UTC](https://discourse.julialang.org/t/treating-nan-as-error-helping-debugging/36933 "2024-10-29T15:08:49Z")

</div>

I am writing a large hydrological model, and for some sets of parameters I get a NaN value, but I do not know which first function is giving me NaN. Therefore, I would like to stop my program at the first NaN. A dirty …

---

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

---

## [Setting environment variable in VS Code debugger](https://discourse.julialang.org/t/setting-environment-variable-in-vs-code-debugger/97864)

<div class="topic-metadata">

**Author:** [@Yue-Zhengyuan](https://discourse.julialang.org/u/Yue-Zhengyuan)\
**Replies:** 12\
**Last updated:** [August 21, 2024, 6:14pm UTC](https://discourse.julialang.org/t/setting-environment-variable-in-vs-code-debugger/97864 "2024-08-21T18:14:01Z")

</div>

How to set environment variables in VS Code debugger in launch.json for Julia? For Python, the env var can be set by the “env” property: { "version": "0.2.0", "configurations": \[ { "name": "P…

---

## [Export works but not when \`\] add\` package](https://discourse.julialang.org/t/export-works-but-not-when-add-package/117030)

<div class="topic-metadata">

**Author:** [@K5Julien](https://discourse.julialang.org/u/K5Julien)\
**Replies:** 10\
**Last updated:** [July 17, 2024, 1:16am UTC](https://discourse.julialang.org/t/export-works-but-not-when-add-package/117030 "2024-07-17T01:16:46Z")

</div>

I am on this one for too long and can’t fix it yet :smiling\_face\_with\_tear: :laughing: A MWE is not productible unfortunately file RingStarProblems.jl contains: module RingStarProblems if "JULIA\_REGISTRYCI\_AUTOMER…

---

## [My vscode debugging experience is abysmal](https://discourse.julialang.org/t/my-vscode-debugging-experience-is-abysmal/105275)

<div class="topic-metadata">

**Author:** [@maxfreu](https://discourse.julialang.org/u/maxfreu)\
**Replies:** 8\
**Last updated:** [October 22, 2023, 5:31pm UTC](https://discourse.julialang.org/t/my-vscode-debugging-experience-is-abysmal/105275 "2023-10-22T17:31:26Z")

</div>

Hi! Sorry for the flaming title… but I’m really frustrated. For me, the vscode debugger just never works; I always end up putting print and show statements somewhere and relying on revise. That also works, but sometimes …

---

## [Port icecream from python?](https://discourse.julialang.org/t/port-icecream-from-python/105015)

<div class="topic-metadata">

**Author:** [@user664303](https://discourse.julialang.org/u/user664303)\
**Replies:** 3\
**Last updated:** [October 16, 2023, 2:48pm UTC](https://discourse.julialang.org/t/port-icecream-from-python/105015 "2023-10-16T14:48:05Z")

</div>

I recently came across a Python package called icecream. It allows for quick and easy printing of useful debug info. See the github page for some examples. You’ll also see (at the bottom) that it has been ported to a lar…

---

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

---

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

---

## [How to debug julia code in Genie framework](https://discourse.julialang.org/t/how-to-debug-julia-code-in-genie-framework/102903)

<div class="topic-metadata">

**Author:** [@Jayesh\_Patil](https://discourse.julialang.org/u/Jayesh_Patil)\
**Replies:** 1\
**Last updated:** [August 21, 2023, 9:54am UTC](https://discourse.julialang.org/t/how-to-debug-julia-code-in-genie-framework/102903 "2023-08-21T09:54:35Z")

</div>

I Learn how to debug normal julia code with Debugger.jl package and @enter macros now i want to debug julia code inside the genie framework. please help me

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