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

"Pause on uncaught exceptions" not pausing on "undefined is not a function" #7439

@tgirardi

Description

@tgirardi

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:

  1. Start node-inspector
  2. Create a code that will cause a "TypeError: undefined is not a function" exception.
  3. Start debugging the code
  4. Activate the "Pause on uncaught exceptions" option
  5. 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:

var undef;
undef();

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions