mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-03-17 07:40:22 +00:00
chore(trace): add helper method trace
use it as trace('label') to dump the stack during debugging
This commit is contained in:
parent
705f4bbf11
commit
9cba23a588
1 changed files with 4 additions and 0 deletions
|
|
@ -232,3 +232,7 @@ function provideLog($provide) {
|
|||
function pending() {
|
||||
dump('PENDING');
|
||||
};
|
||||
|
||||
function trace(name) {
|
||||
dump(new Error(name).stack);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue