# \#debug

**URL:** https://discourse.julialang.org/tag/debug/64.md?match_all_tags=true&page=2&tags%5B%5D=debug

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

**Page:** 3

---

## [VS Code debugging video tutorial](https://discourse.julialang.org/t/vs-code-debugging-video-tutorial/70422)

<div class="topic-metadata">

**Author:** [@Oto\_Brzobohaty](https://discourse.julialang.org/u/Oto_Brzobohaty)\
**Replies:** 6\
**Last updated:** [October 27, 2021, 12:58pm UTC](https://discourse.julialang.org/t/vs-code-debugging-video-tutorial/70422 "2021-10-27T12:58:46Z")

</div>

Hello, is there any tutorial video showing debugging using VS Code?

---

## [Tracing of optimization algorithm with @debug](https://discourse.julialang.org/t/tracing-of-optimization-algorithm-with-debug/69184)

<div class="topic-metadata">

**Author:** [@stepanzh](https://discourse.julialang.org/u/stepanzh)\
**Replies:** 0\
**Last updated:** [October 4, 2021, 11:32am UTC](https://discourse.julialang.org/t/tracing-of-optimization-algorithm-with-debug/69184 "2021-10-04T11:32:26Z")

</div>

I’m debugging a constatined-optimization algorithm of CubicEoS.jl package. The code is heavily logged with @debug macro. Each of @debug-entry has a unique message like newton or backtracking… I want to post-process log…

---

## [Logpoints in VS Code](https://discourse.julialang.org/t/logpoints-in-vs-code/65928)

<div class="topic-metadata">

**Author:** [@ettersi](https://discourse.julialang.org/u/ettersi)\
**Replies:** 1\
**Last updated:** [August 6, 2021, 6:29am UTC](https://discourse.julialang.org/t/logpoints-in-vs-code/65928 "2021-08-06T06:29:32Z")

</div>

Does the Julia extension for VS Code support the “logpoints” debugging feature? As far as I can tell, logpoints are currently treated just like breakpoints. Here’s what I tried: Copy this function into a file foo.jl:f…

---

## [Is it possible to dump segfault stack trace from REPL-only crash?](https://discourse.julialang.org/t/is-it-possible-to-dump-segfault-stack-trace-from-repl-only-crash/65172)

<div class="topic-metadata">

**Author:** [@ianfiske](https://discourse.julialang.org/u/ianfiske)\
**Replies:** 3\
**Last updated:** [July 23, 2021, 4:41pm UTC](https://discourse.julialang.org/t/is-it-possible-to-dump-segfault-stack-trace-from-repl-only-crash/65172 "2021-07-23T16:41:11Z")

</div>

I ran into this issue https://github.com/julia-vscode/julia-vscode/issues/2299 that can only be reproduced in the REPL (one that’s connected to VS Code). I am trying to obtain a useful dump from the segfault following R…

---

## [REPL debug with variable change breakpoint](https://discourse.julialang.org/t/repl-debug-with-variable-change-breakpoint/64520)

<div class="topic-metadata">

**Author:** [@filchristou](https://discourse.julialang.org/u/filchristou)\
**Replies:** 0\
**Last updated:** [July 12, 2021, 5:17pm UTC](https://discourse.julialang.org/t/repl-debug-with-variable-change-breakpoint/64520 "2021-07-12T17:17:40Z")

</div>

Some Java IDEs (e.g. Eclipse) give the possibility to have breakpoints when a watched variable changes value. I was wondering if this is also possible for Julia. Currently I am mostly using REPL and the Debugger.jl but m…

---

## [Error when calculating RHS of reaction ode "no method matching Float64(::Num)"](https://discourse.julialang.org/t/error-when-calculating-rhs-of-reaction-ode-no-method-matching-float64-num/64420)

<div class="topic-metadata">

**Author:** [@SA8416](https://discourse.julialang.org/u/SA8416)\
**Replies:** 4\
**Last updated:** [July 10, 2021, 8:59pm UTC](https://discourse.julialang.org/t/error-when-calculating-rhs-of-reaction-ode-no-method-matching-float64-num/64420 "2021-07-10T20:59:44Z")

</div>

I have some code that uses a function to calculate some changes in concentration, but I get an error of: ERROR: LoadError: MethodError: no method matching Float64(::Num) Closest candidates are: (::Type{T})(::Real, ::R…

---

## [One-line debugging](https://discourse.julialang.org/t/one-line-debugging/62612)

<div class="topic-metadata">

**Author:** [@sapo](https://discourse.julialang.org/u/sapo)\
**Replies:** 19\
**Last updated:** [June 9, 2021, 12:58pm UTC](https://discourse.julialang.org/t/one-line-debugging/62612 "2021-06-09T12:58:34Z")

</div>

Hello, I’d just like to have a way to easily debug code for terminal-centric people. For instance, right now I have the following situation (which is rather common, though): a test/example script which is added by cal…

---

## [Debugging in VS Code suddenly stopped working](https://discourse.julialang.org/t/debugging-in-vs-code-suddenly-stopped-working/56625)

<div class="topic-metadata">

**Author:** [@lpratafe](https://discourse.julialang.org/u/lpratafe)\
**Replies:** 5\
**Last updated:** [June 2, 2021, 1:36am UTC](https://discourse.julialang.org/t/debugging-in-vs-code-suddenly-stopped-working/56625 "2021-06-02T01:36:56Z")

</div>

Hi everyone, I’m having some trouble debugging my julia code in VS Code and it’s getting me out of my mind. It possibly is because I don’t understand quite exactly how debugging works (I’ve searched for it but didn’t get…

---

## [Debugging with DifferentialEquations.jl](https://discourse.julialang.org/t/debugging-with-differentialequations-jl/60563)

<div class="topic-metadata">

**Author:** [@Fathya.Salih](https://discourse.julialang.org/u/Fathya.Salih)\
**Replies:** 1\
**Last updated:** [May 6, 2021, 11:35pm UTC](https://discourse.julialang.org/t/debugging-with-differentialequations-jl/60563 "2021-05-06T23:35:14Z")

</div>

I have been trying to debug an ODE solver code that looks something like this: u0 = zeros(100) function f(u, p, t) a, b, c, d = p println("t = ", t) # Applying BC and finding ODE RHS apply\_bc(u, a, b, c, d) en…

---

## [VSCode debugging while maintaining workspace](https://discourse.julialang.org/t/vscode-debugging-while-maintaining-workspace/60119)

<div class="topic-metadata">

**Author:** [@davide-f](https://discourse.julialang.org/u/davide-f)\
**Replies:** 0\
**Last updated:** [April 27, 2021, 5:50pm UTC](https://discourse.julialang.org/t/vscode-debugging-while-maintaining-workspace/60119 "2021-04-27T17:50:37Z")

</div>

Dear Community, I recently switched from Juno to VSCode and I was wondering how I can use the debugging in Juno-like style so that when I run a file, the existing workspace is read. Currently, when I run a configuratio…

---

## [Very slow debugging reading files](https://discourse.julialang.org/t/very-slow-debugging-reading-files/54947)

<div class="topic-metadata">

**Author:** [@nandoconde](https://discourse.julialang.org/u/nandoconde)\
**Replies:** 3\
**Last updated:** [February 9, 2021, 6:35pm UTC](https://discourse.julialang.org/t/very-slow-debugging-reading-files/54947 "2021-02-09T18:35:34Z")

</div>

Hello! I am trying to go through my code step by step in VSCode and find it unbearably slow when it reaches a section in which it reads from files. As a matter of fact, I cannot debug at all because I had to wait for th…

---

## [@enter include("file.jl")](https://discourse.julialang.org/t/enter-include-file-jl/53335)

<div class="topic-metadata">

**Author:** [@Allan\_Baker](https://discourse.julialang.org/u/Allan_Baker)\
**Replies:** 0\
**Last updated:** [January 14, 2021, 1:14pm UTC](https://discourse.julialang.org/t/enter-include-file-jl/53335 "2021-01-14T13:14:06Z")

</div>

Can’t figure out how to get the VSCODE debugger to like: @enter include(“file.jl”) from the REPL When I step into the include, it goes into a ccall and doesn’t let me go into the file to hit a breakpoint. If I try to…

---

## [Debugging in Juno constantly stops in low-level functions](https://discourse.julialang.org/t/debugging-in-juno-constantly-stops-in-low-level-functions/52915)

<div class="topic-metadata">

**Author:** [@boranzhao](https://discourse.julialang.org/u/boranzhao)\
**Replies:** 0\
**Last updated:** [January 6, 2021, 2:35am UTC](https://discourse.julialang.org/t/debugging-in-juno-constantly-stops-in-low-level-functions/52915 "2021-01-06T02:35:47Z")

</div>

Hello, I am a new user of Julia and Juno. I created a nonlinear optimization problem using JuMP, which uses nonlinear expressions and constraints. I tried to debug my code using the Debugger in Juno. However, when I c…

---

## [VSCode Debugger: Pause on failed test](https://discourse.julialang.org/t/vscode-debugger-pause-on-failed-test/51297)

<div class="topic-metadata">

**Author:** [@ettersi](https://discourse.julialang.org/u/ettersi)\
**Replies:** 2\
**Last updated:** [December 6, 2020, 3:48pm UTC](https://discourse.julialang.org/t/vscode-debugger-pause-on-failed-test/51297 "2020-12-06T15:48:01Z")

</div>

What’s the most convenient way to have the debugger pause upon hitting a failed @test? I assume I could set a breakpoint on some function in the Test package, but figuring out (and remembering) which is the appropriate …

---

## [Debugging of julia modules lead to errors while evaluating not](https://discourse.julialang.org/t/debugging-of-julia-modules-lead-to-errors-while-evaluating-not/50036)

<div class="topic-metadata">

**Author:** [@Volker](https://discourse.julialang.org/u/Volker)\
**Replies:** 7\
**Last updated:** [November 25, 2020, 8:10am UTC](https://discourse.julialang.org/t/debugging-of-julia-modules-lead-to-errors-while-evaluating-not/50036 "2020-11-25T08:10:19Z")

</div>

Hi, I often would like to debug the code of some julia modules i.e. DiffEqFlux or Flux to better understand what is going on, but some how I get error messages during debugging, which I don´t get when I just evaluate th…

---

## [ANN: Automatic test-case reduction](https://discourse.julialang.org/t/ann-automatic-test-case-reduction/17700)

<div class="topic-metadata">

**Author:** [@maleadt](https://discourse.julialang.org/u/maleadt)\
**Replies:** 1\
**Last updated:** [October 24, 2020, 9:20pm UTC](https://discourse.julialang.org/t/ann-automatic-test-case-reduction/17700 "2020-10-24T21:20:54Z")

</div>

Hi all, C-Reduce is a tool that takes a large C, C++, or OpenCL file that has a property of interest (such as triggering a compiler bug) and automatically produces a much smaller C/C++ file that has the same property. …

---

## [JunoDebugger or JuliaInterpreter error](https://discourse.julialang.org/t/junodebugger-or-juliainterpreter-error/44342)

<div class="topic-metadata">

**Author:** [@jxl](https://discourse.julialang.org/u/jxl)\
**Replies:** 2\
**Last updated:** [August 5, 2020, 9:02pm UTC](https://discourse.julialang.org/t/junodebugger-or-juliainterpreter-error/44342 "2020-08-05T21:02:19Z")

</div>

Hi! I added a package. I could run the code bug-free, but when I tried to debug it, the following error message occurs. The Stacktrace does not contain any of the files in the package. Does anyone know what the problem …

---

## [Unable to debug code](https://discourse.julialang.org/t/unable-to-debug-code/44208)

<div class="topic-metadata">

**Author:** [@Roy\_Toren](https://discourse.julialang.org/u/Roy_Toren)\
**Replies:** 0\
**Last updated:** [August 3, 2020, 5:10pm UTC](https://discourse.julialang.org/t/unable-to-debug-code/44208 "2020-08-03T17:10:22Z")

</div>

Hi everyone, I am new to the community. I started a sample project, working on 3D objects and it has worked terrific so far. I wanted to debug the code to start dealing with manipulation of the loaded 3D object but it …

---

## [How to print function name and source file/line number](https://discourse.julialang.org/t/how-to-print-function-name-and-source-file-line-number/43486)

<div class="topic-metadata">

**Author:** [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Replies:** 3\
**Last updated:** [July 22, 2020, 1:21pm UTC](https://discourse.julialang.org/t/how-to-print-function-name-and-source-file-line-number/43486 "2020-07-22T13:21:21Z")

</div>

Hello, is it possible to print the current function name and the REPL/Juno/VSCode clickable file name/function name, e.g. function foo() @codeLocation ... end Resulting in: Running function foo on /path/to/myf…

---

## [Is there a way to trace/debug all message passing in languageserver.jl? (trying to get lsp to work in emacs)](https://discourse.julialang.org/t/is-there-a-way-to-trace-debug-all-message-passing-in-languageserver-jl-trying-to-get-lsp-to-work-in-emacs/42788)

<div class="topic-metadata">

**Author:** [@spence](https://discourse.julialang.org/u/spence)\
**Replies:** 5\
**Last updated:** [July 10, 2020, 4:59pm UTC](https://discourse.julialang.org/t/is-there-a-way-to-trace-debug-all-message-passing-in-languageserver-jl-trying-to-get-lsp-to-work-in-emacs/42788 "2020-07-10T16:59:21Z")

</div>

I’m trying to get lsp-julia to work in Emacs with its lsp-mode. I’ve hacked around on lsp-julia and it appears I’ve been able to get it to interact with lsp-mode and start the language server properly with 1.4.2 (it had…

---

## [Flux.jl: Error thrown during gradient calculation in conv VAE](https://discourse.julialang.org/t/flux-jl-error-thrown-during-gradient-calculation-in-conv-vae/42397)

<div class="topic-metadata">

**Author:** [@alecokas](https://discourse.julialang.org/u/alecokas)\
**Replies:** 4\
**Last updated:** [July 4, 2020, 12:18pm UTC](https://discourse.julialang.org/t/flux-jl-error-thrown-during-gradient-calculation-in-conv-vae/42397 "2020-07-04T12:18:01Z")

</div>

Hi, I’m just getting into Flux (and Julia more generally), but I’m finding it impossible to get rid of a very particular error in my convolutional VAE model. The code runs fine until the back(1f0) line where it throws E…

---

## [Help Debugging GPU Performance Issue](https://discourse.julialang.org/t/help-debugging-gpu-performance-issue/42274)

<div class="topic-metadata">

**Author:** [@bmit](https://discourse.julialang.org/u/bmit)\
**Replies:** 5\
**Last updated:** [July 1, 2020, 10:07am UTC](https://discourse.julialang.org/t/help-debugging-gpu-performance-issue/42274 "2020-07-01T10:07:43Z")

</div>

I’m having trouble debugging the following issue with CuArrays. I see very different performance using the findmax function when I call it from the REPL vs when I use it in my application. From the REPL I get the desired…

---

## [Debugging constructors](https://discourse.julialang.org/t/debugging-constructors/40221)

<div class="topic-metadata">

**Author:** [@bryce](https://discourse.julialang.org/u/bryce)\
**Replies:** 1\
**Last updated:** [May 27, 2020, 11:18am UTC](https://discourse.julialang.org/t/debugging-constructors/40221 "2020-05-27T11:18:00Z")

</div>

I’m trying to use the debugger in Juno, and it fails with an UndefRefError if I set a breakpoint inside a constructor. Does anyone have any idea why this is happening or what I can do about it? Here’s a minimal example: …

---

## [Juno debugger stops at \`@unpack\` from Parameters](https://discourse.julialang.org/t/juno-debugger-stops-at-unpack-from-parameters/39904)

<div class="topic-metadata">

**Author:** [@human\_bomb](https://discourse.julialang.org/u/human_bomb)\
**Replies:** 7\
**Last updated:** [May 22, 2020, 12:20pm UTC](https://discourse.julialang.org/t/juno-debugger-stops-at-unpack-from-parameters/39904 "2020-05-22T12:20:57Z")

</div>

I am using the Parameters package v0.12.0 by @mauro3 in my numerical simulations. While using the Juno debugger in JuliaPro, I noticed that the debugger stops when reaching a call to Parameters’ @unpack. Below is a MWE: …

---

## [How to debug \`Pkg.build("....")\`?](https://discourse.julialang.org/t/how-to-debug-pkg-build/39601)

<div class="topic-metadata">

**Author:** [@Xing\_Shi\_Cai](https://discourse.julialang.org/u/Xing_Shi_Cai)\
**Replies:** 0\
**Last updated:** [May 16, 2020, 9:47pm UTC](https://discourse.julialang.org/t/how-to-debug-pkg-build/39601 "2020-05-16T21:47:32Z")

</div>

I have some trouble building a package ArbNumberics.jl. (See here.) So I tried to use Debugger.jl to debug it by Using Debugger, Pkg @enter Pkg.build("ArbNumercis") 1|debug\> bp on error 1|debug\> c But this seems to ta…

---

## [Debugging macros at module loading](https://discourse.julialang.org/t/debugging-macros-at-module-loading/39286)

<div class="topic-metadata">

**Author:** [@bcgv](https://discourse.julialang.org/u/bcgv)\
**Replies:** 0\
**Last updated:** [May 11, 2020, 1:24pm UTC](https://discourse.julialang.org/t/debugging-macros-at-module-loading/39286 "2020-05-11T13:24:43Z")

</div>

Hello, I am using several macros in a module I am creating. How can I step through the macro for debugging? I am looking for something like (which obviously does not work, not a function call): @enter using mymodule …

---

## [Debugger ignores breakpoints when using @everywhere](https://discourse.julialang.org/t/debugger-ignores-breakpoints-when-using-everywhere/36774)

<div class="topic-metadata">

**Author:** [@Aguila\_Cudicio](https://discourse.julialang.org/u/Aguila_Cudicio)\
**Replies:** 0\
**Last updated:** [March 31, 2020, 2:27am UTC](https://discourse.julialang.org/t/debugger-ignores-breakpoints-when-using-everywhere/36774 "2020-03-31T02:27:58Z")

</div>

I’m trying to debug a piece of code I didn’t write and I’m having some problems. I’m new to Julia. In some cases Juno Debugger seems to be ignoring the breakpoints. This is my toy code: using Debugger function test\_b(…

---

## [Best practices for combinging Juno debug and Test](https://discourse.julialang.org/t/best-practices-for-combinging-juno-debug-and-test/34371)

<div class="topic-metadata">

**Author:** [@marty0801](https://discourse.julialang.org/u/marty0801)\
**Replies:** 3\
**Last updated:** [February 29, 2020, 5:52pm UTC](https://discourse.julialang.org/t/best-practices-for-combinging-juno-debug-and-test/34371 "2020-02-29T17:52:59Z")

</div>

I’m developing a package called MyPkg in Juno with the following directory structure: MyPkg/ - MyPkg.jl - test/ -- runtests.jl How do I… do test-driven development (using MyPkg/test/runtests.jl) AND use the Juno de…

---

## [How to generate a minidump and backtrace for a hanging Julia program on Appveyor/Windows?](https://discourse.julialang.org/t/how-to-generate-a-minidump-and-backtrace-for-a-hanging-julia-program-on-appveyor-windows/33451)

<div class="topic-metadata">

**Author:** [@vlandau](https://discourse.julialang.org/u/vlandau)\
**Replies:** 12\
**Last updated:** [February 14, 2020, 4:56pm UTC](https://discourse.julialang.org/t/how-to-generate-a-minidump-and-backtrace-for-a-hanging-julia-program-on-appveyor-windows/33451 "2020-02-14T16:56:34Z")

</div>

Hello all, I have what appears to be a deadlock(?) bug in my Julia package that is exposed only on Appveyor, and only when I test through the CI – if I enter the Appveyor VM through RDP and manually run tests, they pass…

---

## [When i click on the Debugger pane in Juno menu nothing happens](https://discourse.julialang.org/t/when-i-click-on-the-debugger-pane-in-juno-menu-nothing-happens/32613)

<div class="topic-metadata">

**Author:** [@Richard\_M](https://discourse.julialang.org/u/Richard_M)\
**Replies:** 1\
**Last updated:** [December 23, 2019, 5:50pm UTC](https://discourse.julialang.org/t/when-i-click-on-the-debugger-pane-in-juno-menu-nothing-happens/32613 "2019-12-23T17:50:35Z")

</div>

When i click on the Debugger pane in Juno menu nothing happens, no pane opens.

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

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