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
The debugger appears to step into an if statement if no other statements follow it. Below the debugger goes from line 2 then proceeds to line 4 within the if statement before returning.
julia>using Debugger
julia>struct Circle end
julia>functiontest_circle(circle::Circle)
iftypeof(circle) =="Circle"println("Thou shall not pass!")
println("Hello world!")
endend
test_circle (generic function with 1 method)
julia>@entertest_circle(Circle())
In test_circle(circle) at REPL[10]:11functiontest_circle(circle::Circle)
>2iftypeof(circle) =="Circle"3println("Thou shall not pass!")
4println("Hello world!")
5end6end
About to run: (typeof)(Circle())
1|debug> n
In test_circle(circle) at REPL[10]:11functiontest_circle(circle::Circle)
2iftypeof(circle) =="Circle"3println("Thou shall not pass!")
>4println("Hello world!")
5end6end
About to run:return1|debug> n
If I add a return statement, then the stepping appears correct. It advances from line 2 to line 6.
julia>functiontest_circle(circle::Circle)
iftypeof(circle) =="Circle"println("Thou shall not pass!")
println("Hello world!")
endreturnnothingend
test_circle (generic function with 1 method)
julia>@entertest_circle(Circle())
In test_circle(circle) at REPL[12]:11functiontest_circle(circle::Circle)
>2iftypeof(circle) =="Circle"3println("Thou shall not pass!")
4println("Hello world!")
5end6returnnothing7end
About to run: (typeof)(Circle())
1|debug> n
In test_circle(circle) at REPL[12]:12iftypeof(circle) =="Circle"3println("Thou shall not pass!")
4println("Hello world!")
5end>6returnnothing7end
About to run:return1|debug> n
The text was updated successfully, but these errors were encountered:
The debugger appears to step into an
if
statement if no other statements follow it. Below the debugger goes from line 2 then proceeds to line 4 within theif
statement before returning.If I add a return statement, then the stepping appears correct. It advances from line 2 to line 6.
The text was updated successfully, but these errors were encountered: