pokusio / yo-augmented-hugo

Yeoman generator for pokus-augmented hugo projects
0 stars 0 forks source link

gulp debug #32

Open Jean-Baptiste-Lasselle opened 2 years ago

Jean-Baptiste-Lasselle commented 2 years ago

make a documentation dedicated to gulp, and an entire chapter on how to debug gulp (and more generally nodejs apps) :

# this will launch a server : that server is a 
# debugging server, to which a "NodeJS Inspector Client" can connect to
node --inspect --inspect-brk $(which gulp) build:debug
Jean-Baptiste-Lasselle commented 2 years ago

https://nodejs.org/en/docs/guides/debugging-getting-started/

Jean-Baptiste-Lasselle commented 2 years ago

https://github.com/node-inspector/node-inspector

Jean-Baptiste-Lasselle commented 2 years ago

to debug, the client must have access to source code text files, in order to manage debug stop points.

Jean-Baptiste-Lasselle commented 2 years ago

You can debug using gitpod :

Jean-Baptiste-Lasselle commented 2 years ago

https://www.digitalocean.com/community/tutorials/how-to-debug-node-js-with-the-built-in-debugger-and-chrome-devtools

Jean-Baptiste-Lasselle commented 2 years ago

atom ide package for node js debuggin g absolutely does not work. It is time to change IDE for one of : gitpod vscode, or another alternative