When ever I try these cases they always work for me. So there is something else going on.
Two guesses: 1) You have something other than newlines in your code. Firebug replaces all \r, \r\n, by \n so maybe it gets the line numbers wrong. I just discovered this possibility a couple of days ago. My editor always cleans up code so maybe if yours does not the difference could be around this issue. 2) Some extension in your environment is confusing firebug. You can test this by loading firebug into a new firefox profile, http://groups.google.com/group/firebug/web/faq-about-firebug, then trying your example. jjb On Apr 28, 10:24 am, fattchris <[email protected]> wrote: > There are large portions of my javascript which firebug does not > recognize as executable, so it is "grey", and will not stop at a > breakpoint set there. I assure you the code is executable, and should > be green. Here is a sample: > > function start_page(){ > activateRollovers(); > change_location(global_location); > function kH(e) { > var pK = e ? e.which : window.event.keyCode; > if (pK == '13'){ > save_screen(); > return false; > } > else{ > return pK; > } > } > document.onkeypress = kH; > if (document.layers) > document.captureEvents(Event.KEYPRESS); > > } > > NONE of the above is "breakpointable". I am using: > > Firefox v 3.0.9 > firebug 1.3.3 > > Other plugins: > > AVG Safe search 8.0 > firefox throttle 1.03 > Java Quick Starter 1.0 > live HTTP headers 0.14 > LogMeIn, Inc. Rescue Technician console 6.0.0.569 > Personas for Firefox 1.0 > > Thanks! > Chris --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
