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

Document debugging #49

Closed
lukemelia opened this issue Oct 17, 2018 · 3 comments · Fixed by #73
Closed

Document debugging #49

lukemelia opened this issue Oct 17, 2018 · 3 comments · Fixed by #73

Comments

@lukemelia
Copy link

Currently trying to figure out how to get a breakpoint in a codemod and wishing it were documented. 😄

@rwjblue
Copy link
Owner

rwjblue commented Oct 17, 2018

I think the easiest thing to do would be to use ndb, which ensures any sub processes that are launched are also connected to the outer debugging session. It’s somewhat of a game changer...

@rajasegar
Copy link
Contributor

@lukemelia @rwjblue Will this help
https://github.com/rajasegar/ember-angle-brackets-codemod#debugging-workflow
If yes, I can raise a PR to update the README

Copy link
Owner

rwjblue commented Jul 29, 2019

Yes, that looks like a great start! FWIW, I think you need to use --runInBand flag for the debugger statements to be hit when focusing the test with jest (I usually use something like node --inspect-brk ./node_modules/.bin/jest --testNamePattern "ember-concurrency transforms correctly" --runInBand).

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

Successfully merging a pull request may close this issue.

3 participants