Search code examples
node.jsdebuggingvisual-studio-codeloopbackjsnodemon

Loopback 4 Debugger nodemon Solution


How to debug loopback 4 / node application with nodemon in visual studio code?

Looking for a solution that rebuilds the app when the loopback typescript code is changed. With option for debugging.

Regards,

Kelvijn


Solution

  • Create your own nodemon.json in root project source and put this in file

    {
      "ignore": [
        "**/*.test.ts",
        "**/*.spec.ts",
        ".git",
        "node_modules"
      ],
      "watch": [
        "src"
      ],
      "exec": "npm start",
      "ext": "ts"
    }
    

    and run nodemon that's. Just make sure you installed nodemon in global scope.