I have a common error function which is called from many places. I want to know from which function this was called. Is there any way to do it?
Asked
Active
Viewed 2,095 times
1
-
There used to be something called `arguments.callee` - which you can maybe try.. No guarantees but. – techfoobar Dec 06 '13 at 12:55
-
No, there isn't, not reliably. You can inspect the callstack by putting a `debugger` statement in your error handling method though. – user229044 Dec 06 '13 at 12:56
-
you can debug with break-point in the function using firebug and then looking stack – akbar ali Dec 06 '13 at 13:03
2 Answers
0
if You want to execute JS in chrome you have to do like this
go to console and type your JS and enter!

Illaya
- 666
- 6
- 14