JuliaDebug / JuliaDebug/Debugger.jl
Debugger fails to activate
Open
Nobody has claimed this yet.
- Dominant language
- Julia
- Stars
- 514
- Forks
- 50
- Avg merge
- 9d 9h
- Merged PRs (30d)
- 1
Description
I find that @bp often doesn't do anything. Simple example below, where @bp in f works as expected but g does not.
julia> using Debugger
julia> function f(x)
if x < 0
@bp
else
println("all good")
end
end
f (generic function with 1 method)
julia> @run(f(2))
all good
julia> @run(f(-2))
Hit breakpoint:
In f(x) at REPL[11]:2
1 function f(x)
2 if x < 0
>3 @bp
4 else
5 println("all good")
6 end
7 end
About to run: return
1|debug> c
julia> function g(x)
x = 4
@bp
3+x
end
g (generic function with 1 method)
julia> @run g(3)
7
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No source file or test is named. Reproduce the behavior in the Julia REPL using Debugger's @run with the contrasting f and g examples, then trace how @bp is activated; done means the breakpoint in g is hit as expected.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- julia
- Domain
- devtools
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100