How do you "clear" existing classes/objects so that your breakpoints will trigger again. When I first put the below HTML in a file and opened it my breakpoints would work, but after hitting refresh the javascript runs, but the breakpoints are not triggering in firebug?
------------my html file--------------------- <html> <head> <script language="javascript" type="text/javascript"> <!-- function cat(name) { this.name = name; this.talk = function() { alert( this.name + " say meeow!" ) } } cat1 = new cat("felix") cat1.talk() //alerts "felix says meeow!" cat2 = new cat("ginger") cat2.talk() //alerts "ginger says meeow!" //--> </script> </head> <body> Testing 123 </body> </html> ------------my html file--------------------- On Apr 15, 11:07 am, "Justin Perkins" <[EMAIL PROTECTED]> wrote: > On Mon, Apr 14, 2008 at 7:59 PM, greghauptmann <[EMAIL PROTECTED]> wrote: > > > oh really - I knew you could step through existing js code. So you're > > saying I could open any html page and then in FireBug write some > > javascript and then run/step through it? > > Yes. Drop the keyword debugger anywhere in your Javascript and load it > up in Firefox with Firebug enabled, rock on :) > > http://getfirebug.com/docs.html > > I don't recommend running with Firefox 3 at the moment, still a few > things to work out. > > -justin --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---