VSCode Debugging


Can some send me a link or a hint how to debug a complete adonisjs app inside vscode using. I installed the Chrome-Debugger Extension and try to configure the launch.json.


Hey @rbartholomay! :wave:

You need to use the flag --debug when your run your server (adonis serve --debug --dev).

Then add the statement debugger anywhere in your application.
When you will reach it, your application will hang and wait you to open the devtools.

Open your browser, and check in your devtool, you should see a Node.js logo there, click on it and you are good to go.

1 Like

adonis serve --dev --inspect

error: unknown option `–inspect’

i think it must be --debug. :grinning:

It runs now! Nice! Thank you so much!