Open
Bug 1544203
Opened 5 years ago
Updated 1 year ago
devtools report wrong file:line
Categories
(DevTools :: Debugger, defect, P3)
Tracking
(Not tracked)
UNCONFIRMED
People
(Reporter: kes-kes, Unassigned)
References
(Blocks 1 open bug)
Details
Attachments
(6 files)
User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:66.0) Gecko/20100101 Firefox/66.0
Steps to reproduce:
I dynamically load javascript:
$.ajax({
url : oop.LibDir +moduleName+ '.js',
async : false,
dataType : 'text',
success : function( data ) {
window.eval( data + "\n//# sourceURL=" + moduleName + ".js");
},
});
Actual results:
when the target source has syntax error FF does not report correct file when error happened. the line though is correct
When the exception occur at such dynamically loaded code then 'eval' is used for file name at the error message
but the name of the view for this source code is correct also (see attached files)
Expected results:
sourceUrl should be used instead of 'eval'
Reporter | ||
Comment 1•5 years ago
|
||
Reporter | ||
Comment 2•5 years ago
|
||
Comment 3•5 years ago
|
||
Thank you Eugen for the report. Could you please attach a reduced test case to help reproducing the issue?
Component: Untriaged → Debugger
Product: Firefox → DevTools
Updated•5 years ago
|
Flags: needinfo?(kes-kes)
Reporter | ||
Comment 5•5 years ago
|
||
you also can make syntax error at hello.js file and see the file:line of error
Reporter | ||
Comment 6•5 years ago
|
||
modified example
Reporter | ||
Comment 7•5 years ago
|
||
Updated•5 years ago
|
Blocks: dbg-sources
Priority: -- → P3
Comment hidden (spam) |
Updated•2 years ago
|
Severity: normal → S3
Comment hidden (spam) |
You need to log in
before you can comment on or make changes to this bug.
Description
•