Jacques Crocker
unread,Mar 19, 2009, 8:17:06 PM3/19/09Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Firebug
Hi. I'd really like a way to fire off a breakpoint in my javascript
code itself. Is there a way to do this?
For example:
function someFunction(){
console.break();
// do something
}
So whenever firebug sees "console.break()", it can just fire off a
breakpoint immediately and launch the script debugger (provided
firebug is enabled).
In response to the inevitable "why would you want this?" question, it
turns out to be extremely useful in ruby land (using ruby-debug) to
just write "debugger" in your code whenever you need to fire off a
breakpoint. It also lets you easily write if checks on that breakpoint
using standard javascript, and not have to use the IDE to define crazy
rulesets for when/if breakpoints get executed.
All in all, its easier to add/remove breakpoint in textmate than it is
in firebug so it seems like it'd be really useful. Let me know if its
already possible, or if I should help implement this functionality in
the Firebug SVN
Thanks