Skip to content

Step out/Shift F11/Out debug command does not stop when exception is thrown inside a function #9175

Closed
@bikashmishra100

Description

@bikashmishra100

Version: v6.8.1
Platform: Windows 10 64 bit

function exception_function() {
    try {
        throw 'error';
    } catch (err) {
        console.log(err);
    }
}
console.log('Starting script.');
exception_function();
console.log('Stopping script.');

When i am inside the exception_function in the debugger and execute the out function, it does not stop any more. If i do single step or step over all the way then it works fine.

< Debugger listening on [::]:5858
connecting to 127.0.0.1:5858 ... ok
break in C:\Users\xxxx\Desktop\exception.js:10
  8 }
  9
>10 console.log('Starting script.');
 11 exception_function();
 12 console.log('Stopping script.');
debug> next
< Starting script.
break in C:\Users\xxxx\Desktop\exception.js:11
  9
 10 console.log('Starting script.');
>11 exception_function();
 12 console.log('Stopping script.');
 13
debug> step
break in C:\Users\xxxx\Desktop\exception.js:4
  2 function exception_function() {
  3     try {
> 4         throw 'error';
  5     } catch (err) {
  6         console.log(err);
debug> out
< error
< Stopping script.
debug> quit

Metadata

Metadata

Assignees

No one assigned

    Labels

    confirmed-bugIssues with confirmed bugs.v8 engineIssues and PRs related to the V8 dependency.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions