Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Importing @pm2/io breaks vscode debugging #284

Open
jesobreira opened this issue Oct 9, 2021 · 0 comments
Open

Importing @pm2/io breaks vscode debugging #284

jesobreira opened this issue Oct 9, 2021 · 0 comments

Comments

@jesobreira
Copy link

Hello,

Am working on a codebase that uses @pm2/io for creating processes actions and meters in production.

But seems that simply importing @pm2/io causes this code to route all uncaughtException and unhandledRejection to be routed to pm2, even when the process isn't running on pm2 daemon.

The effect of this, when using VSCode debugging, we lose all the stack trace as it shows as if any error thrown on the codebase was threw by pm2 error handler.

I have commented out the this.catchAll() line on the transpiled/built module and my issues with VSCode debugging were gone.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant