This repository was archived by the owner on Apr 22, 2023. It is now read-only.

Description
Note: this issue was reproduced using node-inspector. I also posted it on node-inspector's issue tracker (node-inspector/node-inspector#344) and they suggested me to post it here also as it is not clear if this is a node issue or a node-inspector issue.
While using node-inspector and having "Pause on uncaught exception" option activated, the debugger won't stop at an exception of type "TypeError: undefined is not a function".
How to reproduce:
- Start node-inspector
- Create a code that will cause a "TypeError: undefined is not a function" exception.
- Start debugging the code
- Activate the "Pause on uncaught exceptions" option
- Run the whole code
Expected result:
The debugger pauses at the line where the exception is going to occur.
Actual result:
The debugger doesn't pause at the line where the exception occurs. The terminal shows that the exception occurred.
Tested under:
- node v0.11.12 (also tested under v0.11.3, which is the version in which @bajtos' fix for uncaught exception was included)
- node-inspector v0.7.3
- mac os x v10.8.5
- chrome v33.0.1750.152
Code used for my tests:
Notes:
I tested with another type of uncaught exception and the debugger did pause. It was a "TypeError: Cannot read property 'prop' of undefined" exception caused by code: var undef; undef.prop;
@bajtos took a look at the issue and could also reproduce it, but he is short on time at the moment in order to investigate it further.