File tree Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -203,10 +203,15 @@ end
203
203
Set a breakpoint at the specified file and line number.
204
204
"""
205
205
function breakpoint (filename:: AbstractString , line:: Integer , args... )
206
- sigs = signatures_at (filename, line)
206
+ local sigs
207
+ try
208
+ sigs = signatures_at (filename, line)
209
+ catch
210
+ sigs = nothing
211
+ end
207
212
if sigs === nothing
208
213
# TODO : build a Revise-free fallback. Note this won't work well for methods with keywords.
209
- error (" no signatures found at $filename , $line . Restarting and `using Revise` may fix this problem." )
214
+ error (" no signatures found at $filename , $line .\n Restarting and `using Revise` and the relevant package may fix this problem." )
210
215
end
211
216
for sig in sigs
212
217
method = JuliaInterpreter. whichtt (sig)
Original file line number Diff line number Diff line change 110
110
var = JuliaInterpreter. locals (leaf (frame))
111
111
@test ! any (v-> v. name == :b , var)
112
112
@test filter (v-> v. name == :a , var)[1 ]. value == 2
113
+ else
114
+ try
115
+ breakpoint (pathof (JuliaInterpreter. CodeTracking), 5 )
116
+ catch err
117
+ @test isa (err, ErrorException)
118
+ @test occursin (" Revise" , err. msg)
119
+ end
113
120
end
114
121
115
122
# Direct return
You can’t perform that action at this time.
0 commit comments