Skip to content

Commit 20915e3

Browse files
authored
fix some printing
1 parent eb3ff15 commit 20915e3

File tree

1 file changed

+7
-15
lines changed

1 file changed

+7
-15
lines changed

README.md

Lines changed: 7 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -58,24 +58,20 @@ Advanced commands:
5858

5959
### Breakpoints
6060

61-
There are currently no designated commands in the debug mode for adding and removing breakpoints, instead they are manipulated using the API from the package JuliaInterpreter (which need to be installed). The different ways of manipulating breakpoints are documented [here](https://juliadebug.github.io/JuliaInterpreter.jl/latest/dev_reference/#Breakpoints-1).
61+
There are currently no designated commands in the debug mode for adding and removing breakpoints, instead they are manipulated using the API from the package JuliaInterpreter (which is reexported from Debugger). The different ways of manipulating breakpoints are documented [here](https://juliadebug.github.io/JuliaInterpreter.jl/latest/dev_reference/#Breakpoints-1).
6262

6363
It is common to want to run a function until a breakpoint is hit. Therefore, the "shortcut macro" `@run` is provided which is equivalent
6464
of starting the debug mode with `@enter` and then executing the continue command (`c`):
6565

6666
```jl
67-
julia> using Debugger, JuliaInterpreter
67+
julia> using Debugger
6868

6969
julia> breakpoint(abs);
7070

7171
julia> @run sin(2.0)
7272
Hit breakpoint:
73-
In abs(x) at float.jl
73+
In abs(x) at float.jl:522
7474
>522 abs(x::Float64) = abs_float(x)
75-
523
76-
524 """
77-
525 isnan(f) -> Bool
78-
526
7975

8076
About to run: (abs_float)(2.0)
8177
1|debug> bt
@@ -100,29 +96,25 @@ julia> f() = "αβ"[2];
10096
julia> @run f()
10197
Breaking for error:
10298
ERROR: StringIndexError("αβ", 2)
103-
In string_index_err(s, i) at strings/string.jl
99+
In string_index_err(s, i) at strings/string.jl:12
104100
>12 @noinline string_index_err(s::AbstractString, i::Integer) =
105-
13 throw(StringIndexError(s, Int(i)))
106-
14
107-
15 const ByteArray = Union{Vector{UInt8},Vector{Int8}}
108-
16
109101

110102
About to run: (throw)(StringIndexError("αβ", 2))
111103
1|debug> bt
112104
[1] string_index_err(s, i) at strings/string.jl:12
113105
| s::String = "αβ"
114106
| i::Int64 = 2
115-
[2] getindex_continued(s, i, u) at strings/string.jl:215
107+
[2] getindex_continued(s, i, u) at strings/string.jl:218
116108
| s::String = "αβ"
117109
| i::Int64 = 2
118110
| u::UInt32 = 0xb1000000
119111
| val::Bool = false
120-
[3] getindex(s, i) at strings/string.jl:208
112+
[3] getindex(s, i) at strings/string.jl:211
121113
| s::String = "αβ"
122114
| i::Int64 = 2
123115
| b::UInt8 = 0xb1
124116
| u::UInt32 = 0xb1000000
125-
[4] f() at REPL[17]:1
117+
[4] f() at REPL[5]:1
126118

127119
julia> JuliaInterpreter.break_off(:error)
128120

0 commit comments

Comments
 (0)