chore(trace): add helper method trace

use it as trace('label') to dump the stack during debugging
This commit is contained in:
Igor Minar 2012-05-02 21:59:55 -07:00
parent 705f4bbf11
commit 9cba23a588

View file

@ -232,3 +232,7 @@ function provideLog($provide) {
function pending() {
dump('PENDING');
};
function trace(name) {
dump(new Error(name).stack);
}