-
-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
debug whole file #269
debug whole file #269
Conversation
Codecov Report
@@ Coverage Diff @@
## master #269 +/- ##
==========================================
+ Coverage 50.83% 53.95% +3.12%
==========================================
Files 41 42 +1
Lines 2093 2311 +218
==========================================
+ Hits 1064 1247 +183
- Misses 1029 1064 +35
Continue to review full report at Codecov.
|
Will give a review later. |
Why is there a problem in REPL mode switching ? I still can't see why only toplevel debugging has he issue ... |
Because it's not started from the REPL, and asynchronously switching REPL modes doesn't work well. |
prettier current code rendering for frames in unsaved editor
for (i, (mod, ex)) in enumerate(exprs) | ||
lc == :stop && break | ||
|
||
temp_bps = add_breakpoint.(Atom.rpc("getFileBreakpoints")) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we still need this ? Aren't breakpoints added in startdebugging
anyway for now ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We do, yeah. Not entirely sure why though :P
Isn't possible to "pretend" that it's started from REPL when we call |
@pfitzseb d4d36ac and JunoLab/atom-julia-client@a14acef works nicely as far as I've tested, great work ! Code certainly looks really hacky though. |
I occasionally get the following error (when e.g. after use some debugging command): RROR: syntax: invisible character \u200b near column 1
Stacktrace:
[1] top-level scope at none:0
[2] eval at .\boot.jl:331 [inlined]
[3] eval_code(::JuliaInterpreter.Frame, ::Expr) at ~\julia\packages\JuliaInterpreter\src\utils.jl:481
[4] eval_code(::JuliaInterpreter.Frame, ::String) at ~\julia\packages\JuliaInterpreter\src\utils.jl:462
[5] interpret at ~\julia\packages\Atom\src\debugger\repl.jl:94 [inlined]
[6] interpret at ~\julia\packages\Atom\src\debugger\repl.jl:93 [inlined]
[7] (::Atom.JunoDebugger.var"#65#66")(::REPL.LineEdit.MIState, ::Base.GenericIOBuffer{Array{UInt8,1}}, ::Bool) at ~\julia\packages\Atom\src\debugger\repl.jl:40
[8] #invokelatest#1 at .\essentials.jl:710 [inlined]
[9] invokelatest at .\essentials.jl:709 [inlined]
[10] run_interface(::REPL.Terminals.TextTerminal, ::REPL.LineEdit.ModalInterface, ::REPL.LineEdit.MIState) at ~\julia\julia\usr\share\julia\stdlib\v1.5\REPL\src\LineEdit.jl:2354
[11] run_interface(::REPL.Terminals.TextTerminal, ::REPL.LineEdit.ModalInterface) at ~\julia\julia\usr\share\julia\stdlib\v1.5\REPL\src\LineEdit.jl:2348
[12] debugprompt() at ~\julia\packages\Atom\src\debugger\repl.jl:56
[13] (::Atom.JunoDebugger.var"#53#55")() at .\task.jl:358 Do you think you can fix this within the current approach ? |
That happens when |
Ah I see. Not sure why |
Okay, so I found I only see the error when I start debugging within tree-view (which I added in JunoLab/atom-julia-client#684) |
Yay. 🚀 |
Outstanding issues:
Related issues:
@debug
alias for@enter
Juno.jl#451Also finally fixes JunoLab/Juno.jl#118.