codemod icon indicating copy to clipboard operation
codemod copied to clipboard

Debug mode?

Open pelhage opened this issue 4 years ago • 1 comments

Does anyone have a good debugger workflow for working with babel-codemod?

ASTExplorer is great, but somewhat tedious- i wish I can work more in my IDE and iterate plugin development without ASTExplorer

Ability to step through the plugin or log output would be helpful

pelhage avatar Oct 03 '21 05:10 pelhage

When I need to do more debugging I use the built-in debugging in VS Code, which just hooks into the default node --inspect-brk support. I'm not sure whether it makes sense to have anything beyond that in codemod, though more verbose logging could be a good step in that direction.

eventualbuddha avatar Oct 17 '21 14:10 eventualbuddha