jnordberg / wintersmith

A flexible static site generator
http://wintersmith.io/
MIT License
3.5k stars 332 forks source link

Any way to use chrome devtools for debugging purposes? #346

Closed alberto-f closed 4 years ago

alberto-f commented 4 years ago

Hello,

Im trying to make a plugin and get somewhat familiar with the environment. Obviously, it would be much easier if I could inspect the running environment and use ´debugger´ statements.

Is there any option like ´wintersmith build --inspect-brk´, so that I could use chrome devtools for debugging?

Thanks.

alberto-f commented 4 years ago

Never mind.

For the record, I managed to debug the build by:

npm uninstall -g wintersmith
npm install wintersmith 
node --inspect-brk  node_modules/.bin/wintersmith build -C example/basic

Thanks for creating wintersmith.