Debugging Strapi custom controllers: breakpoints not hit
Basically what the title says. I'm trying to get breakpoints to hit in a Strapi custom controller but the breakpoints never change color from red, nor are they hit.
My config is (it runs the npm script 'develop' before starting, which in turns runs 'strapi develop', which boots everything)
My breakpoints are
Thanks for any help!
请先登录再写评论。
If you like to debug your controllers, etc., you have to start the server in debug mode, using
node --inspect-brk ./node_modules/strapi/bin/strapi.js dev
, likeand then open the corresponding URL in browser
In 2024 Strapi v4, the Strapi bin location has changed:
.\node_modules\@strapi\strapi\bin\strapi.js