Strapi v4 debug breakpoints do not bind in VS Code

With Typescript and Strapi v4.4.3 I just needed to add the “sourceMap”:true to the tsconfig.json file and then I could use the usual (at least for me) launch.json configuration for debugging Strapi:

{
  "version": "0.2.0",
  "configurations": [
    {
      "command": "npm run develop",
      "name": "Run npm develop",
      "request": "launch",
      "type": "node-terminal",
      "env": {
        "DATABASE_SSL": "false",
        "NODE_ENV": "development",
      }
    }
  ]
}
2 Likes