Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Attach debugger to Strapi server

Tags:

strapi

How to start Strapi with --inspect=0.0.0.0:9229 parameter or any other way to attach the debugger to my server?

This is how I could manage that with alpha version but server.js has been removed since beta:

package.json -> scripts

 "debug": "cross-env NODE_ENV=development nodemon --inspect=0.0.0.0:9229 server.js"
like image 818
Oleg Khalidov Avatar asked Oct 20 '25 16:10

Oleg Khalidov


1 Answers

Never mind,

node --inspect=0.0.0.0:9229 ./node_modules/.bin/strapi dev

does the trick.

like image 117
Oleg Khalidov Avatar answered Oct 23 '25 13:10

Oleg Khalidov



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!