Ah, got it. Pretty finnicky though. If I try it 3 or 4 times, it'll
work maybe once. I'll try to see whats up with that, probably some
caching issues.

Thanks for the heads up




On Mar 19, 5:41 pm, Jacques Crocker <[email protected]> wrote:
> Thanks for the quick response
>
> I tried adding "debugger;" to the place I need the breakpoint. It
> doesn't catch in the debugger.
>
> Does it work for you?
>
> On Mar 19, 5:38 pm, johnjbarton <[email protected]> wrote:
>
> > just write "debugger;" in your code. ;-)
> > jjb
>
> > On Mar 19, 5:17 pm, Jacques Crocker <[email protected]> wrote:
>
> > > 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
>
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Firebug" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/firebug?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to