This is a pretty tricky question, which may just be impossible with what is currently available, but if there was an easy way to do this, it would be huge.
I am debugging some JavaScript in Chrome, and since it is very event-driven, I prefer to receive reports about code tracing (what caused, etc.) instead of breakpoints. Therefore, wherever I leave a breakpoint, I would like to see the name and arguments of the local function.
The closest I can get is to reset a conditional breakpoint, for example:

With this approach, there are two big problems:
- Inserting this at each breakpoint is too cumbersome. People will be much more likely to use it if it can be chosen as the default action for each breakpoint.
- In Google Chrome, log calls are fired twice.
Any ideas on how to overcome any of these problems? I think this is possible in IE with VS , but the interface there seems equally cumbersome.
source
share