-
-
Save thermistor/c1781c46366e4b5a91c4 to your computer and use it in GitHub Desktop.
Revisions
-
paulirish revised this gist
Feb 27, 2015 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -4,9 +4,9 @@ I've heard this before: > What I really get frustrated by is that I cannot wrap `console.*` and preserve line numbers We enabled this in Chrome DevTools via [blackboxing](https://developer.chrome.com/devtools/docs/blackboxing) a [bit ago](https://code.google.com/p/chromium/issues/detail?id=267592#c36). If you blackbox the script file the contains the console log wrapper, the script location shown in the console will be corrected to the original source file and line number. Click, and the full source is looking longingly into your eyes. You can try it out here: http://plnkr.co/edit/3wg4u9HUGXfFH0U7MR7j -
paulirish revised this gist
Feb 27, 2015 . 1 changed file with 3 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -2,7 +2,7 @@ I've heard this before: > What I really get frustrated by is that I cannot wrap `console.*` and preserve line numbers We enabled this via [blackboxing](https://developer.chrome.com/devtools/docs/blackboxing) a [bit ago](https://code.google.com/p/chromium/issues/detail?id=267592#c36). @@ -13,7 +13,8 @@ You can try it out here: http://plnkr.co/edit/3wg4u9HUGXfFH0U7MR7j ### Blackbox the source file:  You can right-click the file in the editor, as well. Or blackbox via regex in Settings. ### Logs will be resolved back to their call frame.  -
paulirish revised this gist
Feb 27, 2015 . 1 changed file with 19 additions and 7 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,19 +1,31 @@ ## console.log wrap resolving for your wrapped console logs I've heard this before: > What I really get frustrated by is that I cannot wrap console.* and preserve line numbers We enabled this via [blackboxing](https://developer.chrome.com/devtools/docs/blackboxing) a [bit ago](https://code.google.com/p/chromium/issues/detail?id=267592#c36). If you blackbox the script file the contains the console log wrapper, the script location shown in the console will be corrected to the original source file and line number. And then the source is a click away You can try it out here: http://plnkr.co/edit/3wg4u9HUGXfFH0U7MR7j ### Blackbox the source file:  You can right-click the file in the editor, as well. ### Logs will be resolved back to their call frame.  FWIW, Blackboxing does a lot. Blackboxing a file means: * Exceptions thrown from library code will not pause (if Pause on exceptions is enabled), * Stepping into/out/over bypasses the library code, * Event listener breakpoints don't break in library code, * The debugger will not pause on any breakpoints set in library code. Read more about it over at https://developer.chrome.com/devtools/docs/blackboxing Cheers and thanks [crbug/249575](https://code.google.com/p/chromium/issues/detail?id=249575#c16) -
paulirish revised this gist
Feb 27, 2015 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -10,7 +10,7 @@ If you blackbox the script file the contains the console log wrapper, the stack You can try it out here: http://plnkr.co/edit/3wg4u9HUGXfFH0U7MR7j ### Screenshots:   -
paulirish revised this gist
Feb 27, 2015 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -8,7 +8,7 @@ We enabled this via [blackboxing](https://developer.chrome.com/devtools/docs/bla If you blackbox the script file the contains the console log wrapper, the stack will be corrected in what is outputted to the console. You can try it out here: http://plnkr.co/edit/3wg4u9HUGXfFH0U7MR7j Screenshots:  -
paulirish created this gist
Feb 27, 2015 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,19 @@ ## console.log wrap resolving for the console I've heard this before: > What I really get frustrated by is that I cannot wrap console.* and preserve line numbers cross-browser. We enabled this via [blackboxing](https://developer.chrome.com/devtools/docs/blackboxing) a [bit ago](https://code.google.com/p/chromium/issues/detail?id=267592#c36). If you blackbox the script file the contains the console log wrapper, the stack will be corrected in what is outputted to the console. You can try it out hereL: http://plnkr.co/edit/3wg4u9HUGXfFH0U7MR7j Screenshots:   Thanks [crbug/249575](https://code.google.com/p/chromium/issues/detail?id=249575#c16)