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

Debugger always stops on caught exceptions #2926

Closed
TobiaszCudnik opened this issue Mar 13, 2012 · 2 comments
Closed

Debugger always stops on caught exceptions #2926

TobiaszCudnik opened this issue Mar 13, 2012 · 2 comments

Comments

@TobiaszCudnik
Copy link

Debugger always stops on caught exceptions, both node debug and node -debug-brk.

Particularly i can't debug because of hundredths of breakpoints raised from statSync while searching for node_modules files. After adding try-catch on a method body, nothing changes. Code speaks better for itself:

fs.statSync = function(path) {
  try {
    return binding.stat(pathModule._makeLong(path));
  } catch (e){}
};
indutny added a commit to indutny/node that referenced this issue Mar 19, 2012
Do not break automatically on exception, fixes nodejs#2926
@indutny
Copy link
Member

indutny commented Mar 23, 2012

Thanks, fixed!

@TobiaszCudnik
Copy link
Author

Thank you!

# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants