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

feat(cli): Added inspect-brk flag #607

Merged
merged 4 commits into from
Mar 27, 2020
Merged

feat(cli): Added inspect-brk flag #607

merged 4 commits into from
Mar 27, 2020

Conversation

atjeff
Copy link
Contributor

@atjeff atjeff commented Mar 16, 2020

PR Checklist

Please check if your PR fulfills the following requirements:

PR Type

What kind of change does this PR introduce?

[ ] Bugfix
[X] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Build related changes
[ ] CI related changes
[ ] Other... Please describe:

What is the current behavior?

Issue Number: #592

What is the new behavior?

New flag debug-brk to pass inspect-brk with port or by itself

Does this PR introduce a breaking change?

[ ] Yes
[X] No

Other information

@kamilmysliwiec
Copy link
Member

Would you like to create a PR to the docs with this feature? https://github.com/nestjs/docs.nestjs.com

@atjeff
Copy link
Contributor Author

atjeff commented Mar 18, 2020

@kamilmysliwiec Yes, I just wanted to make sure you approved of the change before I do, so I wouldn't have to redo the documentation

@kamilmysliwiec kamilmysliwiec merged commit 83b26ac into nestjs:master Mar 27, 2020
@kamilmysliwiec
Copy link
Member

Just merged @atjeff! Feel free to create a PR to the docs if you have some time :)

@kamilmysliwiec
Copy link
Member

I had to revert this change https://github.com/nestjs/nest-cli/pull/643/files due to this issue #642

@atjeff
Copy link
Contributor Author

atjeff commented Mar 27, 2020

@kamilmysliwiec Sorry about that. I'll try to get a fix up.

@dannyhuly
Copy link

Hi, any updates about the fix ?

This is a workaround for the meantime (tested using 7.1.2). change start:debug script in package.json to the following:

nest start --exec 'node --inspect-brk' --watch

@luuktap
Copy link

luuktap commented Jun 10, 2022

This exact workaround didn't work for me, using windows (cmd).
Directly executing the following command did the trick:

nest start --exec "node --inspect-brk" --watch

Thanks @dannyhuly.

@ruialves92
Copy link

This exact workaround didn't work for me, using windows (cmd). Directly executing the following command did the trick:

nest start --exec "node --inspect-brk" --watch

Thanks @dannyhuly.

This worked for me 🙏

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

Successfully merging this pull request may close these issues.

None yet

5 participants