microsoft / vscode-js-debug

A DAP-compatible JavaScript debugger. Used in VS Code, VS, + more
MIT License
1.67k stars 282 forks source link

added "sourceMap": true, to tsconfig still get issue #1994

Closed 0xvNFT closed 7 months ago

0xvNFT commented 7 months ago
          i did what you said and tested it i still get:

_Unbound breakpoint

Some of your breakpoints could not be set. If you're having an issue, you can..._

tsconfig:

 {
  "compilerOptions": {
    "target": "es5",
    "lib": ["dom", "dom.iterable", "esnext"],
    "allowJs": true,
    "skipLibCheck": true,
    "strict": true,
    "sourceMap": true,
    "noEmit": true,
    "esModuleInterop": true,
    "module": "esnext",
    "moduleResolution": "bundler",
    "resolveJsonModule": true,
    "isolatedModules": true,
    "jsx": "preserve",
    "incremental": true,
    "plugins": [
      {
        "name": "next"
      }
    ],
    "paths": {
      "@/*": ["./src/*"]
    }
  },
  "include": ["next-env.d.ts", "**/*.ts", "**.*.js", "**/*.tsx", ".next/types/**/*.ts", "../referenceCodebase/login/forgotPassword.ts", "src/lib/constants/index.js"],
  "exclude": ["node_modules"]
}

In your tsconfig.json, you need to specify sourceMaps: true in order for the compiler to generate sourcemaps.

Originally posted by @0xvNFT in https://github.com/microsoft/vscode-js-debug/issues/1993#issuecomment-2057521733

connor4312 commented 7 months ago

Duplicates https://github.com/microsoft/vscode-js-debug/issues/1994