cldwalker / debugger

port of ruby-debug that works on 1.9.2 and 1.9.3
BSD 2-Clause "Simplified" License
845 stars 80 forks source link

Add option parameters or block to the debugger method #98

Closed mark-ellul closed 11 years ago

mark-ellul commented 11 years ago

Hi,

I would be awesome if we could pass in a block to the debugger command that when evaluated to true stop execution and go into the debugger, otherwise it would be continue.

cldwalker commented 11 years ago

Thanks for reporting your issue! This is one of my 10 active issues. Use that link to check how soon your issue will be answered. Don't forget to check your issue against this project's CONTRIBUTING.md. Cheers.

mark-ellul commented 11 years ago

thanks!

deivid-rodriguez commented 11 years ago

debugger is just a method call, so you can just do

debugger if your_condition

Is that what you want?

mark-ellul commented 11 years ago

Yes thats exactly what I want! Sometimes I tend to over complicate things!

deivid-rodriguez commented 11 years ago

Sweet! :)