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!

0
 

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, like

and then open the corresponding URL in browser

0

In 2024 Strapi v4, the Strapi bin location has changed:

.\node_modules\@strapi\strapi\bin\strapi.js

0

请先登录再写评论。