Closed Bug 1031987 Opened 11 years ago Closed 10 years ago

Can't debug text/jsx react files

Categories

(DevTools :: Debugger, defect)

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: shaver, Unassigned)

Details

The debugger refuses to load a file with react's JSX markup in it, so you can't see syntax error locations or set breakpoints or such. Chrome's manages to, which is very welcome. (I think it doesn't parse the file other than to do syntax highlighting, which is indeed a bit off, but not that big a deal as a developer debugging stuff.)
cc'ing James because he's the resident react fanboy.
Is there any related error in the browser console (Cmd+Shift+J)?
Flags: needinfo?(shaver)
Strange, this is definitely something we need to fix. Thanks for CC'ing me on it!
Nick: I don't recall there being one, no, but I suspect that James can reproduce it thoroughly.
Flags: needinfo?(shaver)
Summary: can't debug text/jsx react files → Can't debug text/jsx react files
James, is this fixed? We have bug 1164853 specifically about syntax highlighting for jsx, and it seems to indicate that the situation generally has improved thanks probably to you and Eddy.
Flags: needinfo?(jlong)
Oops, I forgot about this bug. I guess it is fixed :) I can double-check tomorrow. I didn't fix anything about it specifically, but the way sources are loaded has changed a good bit (in particular with sourcemaps) so it probably got fixed along the way.
Flags: needinfo?(jlong)
Assuming this is fixed based on comments, reopen if not.
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → WORKSFORME
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.