You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Unfortunately, break points don't appear to function correctly when using Threads.@threads. In particular, break points are never hit, even when explicitly placed in the code. bp on error seems to appropriately break if there is an error, but the stack trace just shows a call to ccall(:jl_threading_run, Cvoid, (Any,), threadsfor_fun), not the stack for the actual thread. I am happy to break this into two separate issues if they should be tracked separately.
Here is a MWE:
module ModuleFoo
import Debugger
functionfoo()
println("Running with $(Threads.nthreads()) threads.")
Threads.@threadsfor i =1:Threads.nthreads()
foo_with_bp()
endendfunctionfoo_with_bp()
Debugger.@bperror("I should never get here")
endendusing Debugger
@run ModuleFoo.foo()
Note: This fails to break on @bp even when you aren't explicitly using more than on thread (i.e., does not break on @bp even when JULIA_NUM_THREADS=1).
Version Info:
julia version 1.4.2
[31a5f54b] Debugger v0.6.6
The text was updated successfully, but these errors were encountered:
First of all, thanks for this great tool!
Unfortunately, break points don't appear to function correctly when using
Threads.@threads
. In particular, break points are never hit, even when explicitly placed in the code.bp on error
seems to appropriately break if there is an error, but the stack trace just shows a call toccall(:jl_threading_run, Cvoid, (Any,), threadsfor_fun)
, not the stack for the actual thread. I am happy to break this into two separate issues if they should be tracked separately.Here is a MWE:
Note: This fails to break on
@bp
even when you aren't explicitly using more than on thread (i.e., does not break on@bp
even whenJULIA_NUM_THREADS=1
).Version Info:
julia version 1.4.2
[31a5f54b] Debugger v0.6.6
The text was updated successfully, but these errors were encountered: