Debug: Line Numbers do not show in the browser

Created on 10 Oct 2017  路  6Comments  路  Source: visionmedia/debug

With Debug v3.1.0, line numbers always point to the debug file browser.js (loading from node_modules/debug/src/browser.js)
screen shot 2017-10-10 at 12 18 45 am

I see some closed issues on this topic: https://github.com/visionmedia/debug/issues/105
Seeing the correct line numbers would be a very nice feature.

Also, thanks for the great work.

Most helpful comment

@richdyang @krismeister fyi this can be solved in Chrome with https://developer.chrome.com/devtools/docs/blackboxing.

I added two paths, and now my file/line no is correct for console logs.
/debug/src/browser.js
/debug/src/debug.js

All 6 comments

+1

The original issue was closed because there is no actionable fix, so unfortunately I'm going to have to do the same for this one. Maybe browsers will someday support a feature to skip over that line of the stack trace but at this time it is impossible.

@richdyang @krismeister fyi this can be solved in Chrome with https://developer.chrome.com/devtools/docs/blackboxing.

I added two paths, and now my file/line no is correct for console logs.
/debug/src/browser.js
/debug/src/debug.js

@j-walker23 Thanks. So smart solution. Even nobody think of this workaround.!

Thanks @j-walker23

@petahbred @chaoyangnz You're welcome!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

anishkny picture anishkny  路  6Comments

fforres picture fforres  路  7Comments

BertCatsburg picture BertCatsburg  路  5Comments

dave-ops picture dave-ops  路  6Comments

kopax picture kopax  路  4Comments