My favorites | Sign in
Project Home Wiki Issues
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 397: Debugging Javascript 1.7 with Firebug
9 people starred this issue and may be notified of changes. Back to list
 
Reported by mchls...@gmail.com, Nov 28, 2007
What steps will reproduce the problem?
1. Create a HTML file.
2. Paste the following code in Body tag
<body>
 <script type="application/javascript;version=1.7"/>
    function fib() {
      var i = 0, j = 1;
      while (true) {
        yield i;
        var t = i;
        i = j;
        j += t;
      }
    }

    var g = fib();
    for (var i = 0; i < 10; i++) {
      document.write(g.next() + "<br>\n");
    }
    </script>
</body>
3. open this file in Firefox
4. Set the breakpoint in for-loop
5. Reload the page and debug the Javascript code line by line. 

What is the expected output? What do you see instead?
(Firebug (1.1.0b10), Firefox (2.0.0.10) and Windows XP. ) The browser got
hanged. 

(Firebug (1.1.0b10), Firefox 3 ( Minefield 3.0b2pre ) and Windows Vista
Home Premium Editon. ) "uncaught exception: [object StopIteration]" will be
shown in the Console window.

What version of the product are you using? On what operating system?
- Firebug (1.1.0b10), Firefox (2.0.0.10) and Windows XP. 
- (Firebug (1.1.0b10), Firefox 3 ( Minefield 3.0b2pre ) and Windows Vista
Home Premium Editon. ) 

Please provide any additional information below.



Mar 14, 2008
Project Member #1 johnjbar...@johnjbarton.com
(No comment was entered for this change.)
Owner: johnjbar...@johnjbarton.com
Labels: debugger testcase 1.1
Jul 6, 2008
Project Member #2 johnjbar...@johnjbarton.com
In Firebug 1.2 the browser does not hang on this test case. 

http://fbug.googlecode.com/svn/tests/issues/issue397.html
Status: Accepted
Jul 14, 2008
Project Member #3 johnjbar...@johnjbarton.com
Please try Firebug 1.2b6 from addons.mozilla.org and let us know if your
issue is fixed. Thanks!
Status: Fixed
Jun 30, 2011
#4 sebastia...@gmx.de
Just marking with new standard label.
Labels: -testcase Test-case-available
Sep 11, 2011
#5 jgdom...@gmail.com
This is still broken for me. Without enabling firebug, the output is as expected. Enabling firebug and the breakpoint hangs with firefox consuming 100% cpu.
Sep 12, 2011
Project Member #6 odva...@gmail.com
Yep I can reproduce that too.

Notice that Firebug 1.7.3 works on Firefox 3.6, but stops working with Firefox 4

There must be an infinite cycle somewhere in firebug debugger, but not sure how to find it.

Honza

Sep 12, 2011
Project Member #7 odva...@gmail.com
(No comment was entered for this change.)
Cc: odva...@gmail.com
Sep 12, 2011
Project Member #8 odva...@gmail.com
(No comment was entered for this change.)
Status: Triaged
Owner: ---
Cc: johnjbar...@johnjbarton.com
Sep 28, 2011
#9 sebastia...@gmx.de
My guess would be, that the "yield" is causing the problems.
Cc: sebastia...@gmx.de
Mar 23, 2013
Project Member #10 sebastia...@gmail.com
(No comment was entered for this change.)
Cc: sebastia...@gmail.com
Mar 23, 2013
Project Member #11 sebastia...@gmail.com
(No comment was entered for this change.)
Cc: -johnjbar...@johnjbarton.com -sebastia...@gmx.de
Mar 24, 2014
Project Member #12 sebastia...@gmail.com
I can still reproduce this bug using FF 28.0 + FB 1.12.7 on Win7 and get the following errors:

ReferenceError: reference to undefined property this.sourceFileByTag[tag] tabContext.js:183
ReferenceError: reference to undefined property this.context.stopped scriptPanel.js:905

Though it's fixed for me on the 'jsd2' branch in combination with FF 31.0a1.

Sebastian
Labels: jsd2
Blockedon: fbug:5421
Mar 27, 2014
Project Member #13 sebastia...@gmail.com
This issue has been fixed in Firebug 2.0 alpha 1
https://getfirebug.com/releases/firebug/2.0/firebug-2.0a1.xpi

Please let us know how it works for you.

Thanks for the help!

Sebastian
Status: Fixed
Labels: fixed-2.0-a1
Mar 28, 2014
Project Member #14 sebastia...@gmail.com
(No comment was entered for this change.)
Owner: sebastia...@gmail.com
Sign in to add a comment

Powered by Google Project Hosting