Skip to content
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

Wishlist: conditional breakpoints #24

Closed
timholy opened this issue Dec 13, 2012 · 2 comments
Closed

Wishlist: conditional breakpoints #24

timholy opened this issue Dec 13, 2012 · 2 comments

Comments

@timholy
Copy link
Contributor

timholy commented Dec 13, 2012

Suppose you have a loop,

for (k,v) in mydict
    # do some serious processing
end

Suppose an error happens for key "troublesome", and it so happens that this is the 247th key to be processed. It would be lovely to be able to set a conditional breakpoint, e.g.

for (k,v) in mydict
    @cbp k=="troublesome"
    # do some serious processing
end
@toivoh
Copy link
Owner

toivoh commented Dec 13, 2012

For now, you can use

if k=="troublesome"; @bp; end

But it's a good idea. I'll add the shorthand @bp k=="troublesome for the above.

@toivoh
Copy link
Owner

toivoh commented Dec 13, 2012

Updated METADATA.jl; fixes for #23 and #24 should be published now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants