mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-05-24 13:53:43 +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() {
|
function pending() {
|
||||||
dump('PENDING');
|
dump('PENDING');
|
||||||
};
|
};
|
||||||
|
|
||||||
|
function trace(name) {
|
||||||
|
dump(new Error(name).stack);
|
||||||
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue