We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 79dc17b commit bad1c46Copy full SHA for bad1c46
src/repl.jl
@@ -1,6 +1,19 @@
1
2
promptname(level, name) = "$level|$name> "
3
-function RunDebugger(frame, repl = Base.active_repl, terminal = Base.active_repl.t; initial_continue=false)
+function RunDebugger(frame, repl = nothing, terminal = nothing; initial_continue=false)
4
+ if repl === nothing
5
+ if !isdefined(Base, :active_repl)
6
+ error("Debugger.jl needs to be run in a Julia REPL")
7
+ end
8
+ repl = Base.active_repl
9
10
+ if !isa(repl, REPL.LineEditREPL)
11
+ error("Debugger.jl requires a LineEditREPL type of REPL")
12
13
+
14
+ if terminal === nothing
15
+ terminal = Base.active_repl.t
16
17
state = DebuggerState(; frame=frame, repl=repl, terminal=terminal)
18
19
# Setup debug panel
0 commit comments