Closed Bug 973857 Opened 11 years ago Closed 11 years ago

Debugger : Setting breakpoint in a wrong line number for CoffeeScript file

Categories

(DevTools :: Debugger, defect)

x86
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 927158

People

(Reporter: rsk, Unassigned)

Details

User Agent: Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:30.0) Gecko/20100101 Firefox/30.0 (Beta/Release) Build ID: 20140209065931 Steps to reproduce: * Open up the debugger panel * Open a .coffee (CoffeeScript) file * Try to set a breakpoint by clicking on the line number Eg. Line number 10 Actual results: the breakpoint actually sets at the last line in that file. Eg. Line number 32 Expected results: The Breakpoint should set on the same line which I tried to set. Eg. Line number 10
Do you have a URL for test? I can not reproduce on latest Beta and Nightly for Windows.
Component: Untriaged → Developer Tools: Debugger
Flags: needinfo?(rsk)
Please reopen when you can provide a (preferrably minimal) test case demonstrating the problem.
Status: UNCONFIRMED → RESOLVED
Closed: 11 years ago
Resolution: --- → INCOMPLETE
(In reply to Nick Fitzgerald [:fitzgen] from comment #2) > Please reopen when you can provide a (preferrably minimal) test case > demonstrating the problem. Here is the screen cast which shows this issue. GIF: https://lh4.googleusercontent.com/mz-rRLT3muffWqNzgJ6eCjeMuvj84NStdTUQm7MF7qLwm0FFZ2CSLc_H7P-_QRUsDXk4GVhRleZFFq-UWgUv6iU=w1253-h531 Video: https://www.youtube.com/watch?v=dgib3teYvE0&feature=youtu.be This screencast is took from Firefox 28.0 stable version. In the screencast you can see that I am clicking on line number 69, 71, 73 and 76 but the breakpoint is setting on last line(79). Hope this is helpful, if you need more info or testcase, please lemme know what you are expecting. This is my first bug report on Firefox.
Flags: needinfo?(rsk)
(In reply to Revath S Kumar from comment #3) Maybe since bug 737803, maybe because no line terminator in your code.
(In reply to YF (Yang) from comment #4) > (In reply to Revath S Kumar from comment #3) > Maybe since bug 737803, maybe because no line terminator in your code. Not the bug 737803, because I tried to set the breakpoint on the line which ahs code. My code has line termination (\n).
(In reply to Revath S Kumar from comment #5) > (In reply to YF (Yang) from comment #4) > > (In reply to Revath S Kumar from comment #3) > > Maybe since bug 737803, maybe because no line terminator in your code. > > Not the bug 737803, because I tried to set the breakpoint on the line which > ahs code. > My code has line termination (\n). no, I mean is ';' at end of lines, and may some judgment errors in debugger. because I can reproduce similar behavior in js for some no ';' lines. just my thoughts, because I do not understand coffeescript.
(In reply to YF (Yang) from comment #6) > (In reply to Revath S Kumar from comment #5) > > (In reply to YF (Yang) from comment #4) > > > (In reply to Revath S Kumar from comment #3) > > > Maybe since bug 737803, maybe because no line terminator in your code. > > > > Not the bug 737803, because I tried to set the breakpoint on the line which > > ahs code. > > My code has line termination (\n). > > no, I mean is ';' at end of lines, and may some judgment errors in debugger. > because I can reproduce similar behavior in js for some no ';' lines. > just my thoughts, because I do not understand coffeescript. No. In CoffeeScript line termination is (\n) not (;) May be debugger is looking for (;) even in .coffee files, which causes this issue.
This is bug 927158 (see also bug 984696 which that one depends on). It would be helpful if you attached your test case as a zip file to bug 927158 and noted the exact STR to use with the test case so we can test and verify whether potential fixes actually solve the problem.
Resolution: INCOMPLETE → DUPLICATE
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.