JuliaDebug / Gallium.jl

The Julia debugger
Other
174 stars 23 forks source link

Improve README.md #157

Open deltakam opened 8 years ago

deltakam commented 8 years ago

You may use Gallium.list_breakpoints() to list all set breakpoints, and enable(bp), disable(bp), remove(bp) to enable/disable or remove breakpoints.

I found there is no description on 'bp' therein. It seems to be like Gallium.Breakpoint instance, but I found no way to obtain that object in README.md.

bjarthur commented 7 years ago

Gallium.breakpoints is an array of all breakpoints. so you can for example Gallium.remove(Gallium.breakpoints[3]) to remove one of them, or foreach(Gallium.remove, Gallium.breakpoints) to remove all of them. also, breakpoint returns a Gallium.Breakpoint. so if you bp = breakpoint(...) then you can later Gallium.remove(bp).

i completely agree that this should be documented better! i replied to this in large part so that i can refer to my own post instead of having to figure it out again.