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

How to debug nollup? #135

Closed
Filyus opened this issue Aug 19, 2020 · 2 comments
Closed

How to debug nollup? #135

Filyus opened this issue Aug 19, 2020 · 2 comments

Comments

@Filyus
Copy link

Filyus commented Aug 19, 2020

How to debug nollup with VS Code? I have never debugged scripts inside of node_modules path. Is there a ready-made launch.json for it?

@PepsRyuu
Copy link
Owner

I'm not familiar with debugging in VSCode, but I usually just use the following from the terminal:

node --inspect-brk node_modules/nollup/lib/cli.js -c --environment NODE_ENV:development

And then use the Chrome NodeJS debugger to walk through the code.

Otherwise I just modify the files directly in node_modules and start sticking in console logs and debugger statements.

@Filyus
Copy link
Author

Filyus commented Aug 19, 2020

Thanks! It helped.

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

2 participants