On Saturday, June 23, 2012 9:32:02 PM UTC-7, Jim Michaels wrote:
>
> the debugger is now useless.  it used to be useful and I could debug my 
> code with it.  not anymore. when I "step into", it now jumps to random 
> places in the code. in one particular piece of code, I have no events or 
> anything interrupting, purely procedural.  the code is
> <hr>
> <h2 style="border-style:dashed; border-width:thin; border-color:#0f0;" 
> placeholder="Results title goes here">Results: <span 
> id="js-collect-h"> </span></h2>
> <p id="js-collect-out" style="border-style:dashed; border-width:thin; 
> border-color:#0f0;" placeholder="Results go here"> </p>
> <script type="text/javascript">
> function collect(idBase, title) {
>     var i,s="";
>     for (i = 1; document.getElementById(idBase + i); i++) {
>         s += document.getElementById(idBase + i).innerHTML;
>     }
>     document.getElementById('js-collect-h').innerHTML = title;
>     document.getElementById('js-collect-out').innerHTML = s;
> }
> </script>
> and this goes throughout the document collecting content from id+numbered 
> elements, concatenates it together, and stuffs it into a results box - sort 
> of like search results.
>
>
more detail: 1.9.2 in ff 13 or 14 seems to (currently) want to skip over 
the last 2 lines of the function. these:
    document.getElementById('js-collect-h').innerHTML = title;
    document.getElementById('js-collect-out').innerHTML = s;

where the function modifies the HTML dynamically above it.
right after the last step-in with 
s += document.getElementById(idBase + i).innerHTML;
I see I am right back to the function prototype, rather than at any of the 
lines mentioned above (where I *should* be).
it appears that if the document structure has been modified, it causes 
firebug to go nuts.


-- 
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
https://groups.google.com/forum/#!forum/firebug

Reply via email to