Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 1b8eb23

Browse files
davesidiousNarretz
authored andcommitted
docs($log): add note about blackboxing
Add browser-agnostic hint about blackboxing and the benefits it brings developers when using $log. Closes #15592
1 parent 06baf18 commit 1b8eb23

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/ng/log.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,14 @@
1111
*
1212
* The main purpose of this service is to simplify debugging and troubleshooting.
1313
*
14+
* To reveal the location of the calls to `$log` in the JavaScript console,
15+
* you can "blackbox" the AngularJS source in your browser:
16+
*
17+
* [Mozilla description of blackboxing](https://developer.mozilla.org/en-US/docs/Tools/Debugger/How_to/Black_box_a_source).
18+
* [Chrome description of blackboxing](https://developer.chrome.com/devtools/docs/blackboxing).
19+
*
20+
* Note: Not all browsers support blackboxing.
21+
*
1422
* The default is to log `debug` messages. You can use
1523
* {@link ng.$logProvider ng.$logProvider#debugEnabled} to change this.
1624
*

0 commit comments

Comments
 (0)