ixartz / Serverless-Boilerplate-Express-TypeScript

🚀🎉📚 Boilerplate and Starter for Serverless framework, ExpressJS, TypeScript, Prisma and MongoDB ⚡️ Made with developer experience first: Serverless framework + Live reload + Offline support + ExpressJS + TypeScript + ESLint + Prettier + Husky + Commitlint + Lint-Staged + Jest + Dotenv + esbuild + VSCode

Home Page:https://creativedesignsguru.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Vscode Debugger is not working

somaniketan74 opened this issue · comments

Hello,

I cloned your repo and followed the installation steps. Trying to debug via vscode debugger but it's not stopping at the breakpoint. Can you please help me here?

Node version - 14.15.3

launch.json file

{
  // Use IntelliSense to learn about possible attributes.
  // Hover to view descriptions of existing attributes.
  // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
  "version": "0.2.0",
  "configurations": [
    {
      "type": "node",
      "request": "launch",
      "name": "Severless debug",
      "runtimeVersion": "14.15.3",
      "program": "${workspaceFolder}/node_modules/.bin/sls",
      "args": ["offline", "start", "--stage", "offline"],
      "env": { "NODE_ENV": "development" },
      "autoAttachChildProcesses": true,
      "sourceMaps": true,
      "skipFiles": ["<node_internals>/**"],
      "console": "integratedTerminal"
    }
  ]
}

Hi @somaniketan74, thank you for your message! Indeed, I confirm I have the same issue on my local computer. The debugger doesn't seems to work anymore.

For the time being, you can use the debugger; https://developer.mozilla.org/fr/docs/Web/JavaScript/Reference/Statements/debugger#syntaxe

I have just tried it and it is working.

I'll investigate and let you know.

Hi @somaniketan74, I just find a fix. It should now be solved. Let me know if it works for you.

@ixartz Thanks, It worked :)