Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Firebug stops at wrong line for breakpoints set inside an anonymous function #7740

Open
fbugissues opened this issue May 19, 2015 · 1 comment

Comments

@fbugissues
Copy link

Originally reported on Google Code with ID 7630

See test case test-firebug-bug.html

1. Set a breakpoint on line number 8 (ie, inside the hello() function).
2. Reload the page

Expected: control stops when line 8 is executed
Actual: control stops at line 15, which is at the end of the anonymous function where
hello() is defined and not where it is invoked.

3. Hit "Play", and control now stops at line 18
4. Hit "Play" again, and control finally stops at line 8

See screenshot for what I see.

Firebug version (number): 2.0.3
Browser version: Firefox 32 beta 5
Operating system: Mac OS X 10.9.4

Reported by philip@lognormal.com on 2014-08-14 14:00:05


- _Attachment: [test-firebug-bug.html](https://storage.googleapis.com/google-code-attachments/fbug/issue-7630/comment-0/test-firebug-bug.html)_ - _Attachment: Screen Shot 2014-08-14 at 9.53.03 AM.png
![Screen Shot 2014-08-14 at 9.53.03 AM.png](https://storage.googleapis.com/google-code-attachments/fbug/issue-7630/comment-0/Screen Shot 2014-08-14 at 9.53.03 AM.png)_
@SebastianZ
Copy link
Member

The screenshot doesn't show Firebug but the Firefox DevTools and I can't reproduce the provided test case. I.e. the script execution stops at line 8 as expected.

Though it looks like https://groups.google.com/d/topic/firebug/ShvtaFAHt1Y/discussion describes a similar issue and has a reproducible test case. I've attached it here:

test.html

(Please save it as test.html)

Sebastian

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants