Skip to content

Breakpoints become disabled after start up #1080

Closed
@dfdumaresq

Description

Describe the bug
Breakpoints on .tsx or .cs files are shown as enabled before running project. After starting the project, the breakpoints on .tsx files are greyed out and display 'No symbols have been loaded for this document', the breakpoints on the C# files remain enabled.
It is possible to start the debugger in a .tsx file by adding "debugger;" to the source code.

To Reproduce
Steps to reproduce the behavior:

  1. Set breakpoints on Welcome.tsx and .VouchersController.cs files and notice both are red
  2. Start Project
  3. Notice breakpoint on Welcome.tsx file is now grey

VSCode Developer Tools

  1. After starting project, notice error in console:
    DevTools failed to load source map: Could not load content for https://ticino.blob.core.windows.net/sourcemaps/379476f0e13988d90fab105c5c19e7abc8b1dea8/core/vs/workbench/workbench.desktop.main.js.map: Load canceled due to load timeout

Log File
vscode-debugadapter-ebc69a8f.json.gz

VS Code Version:
Version: 1.59.0 (Universal)
Commit: 379476f0e13988d90fab105c5c19e7abc8b1dea8
Date: 2021-08-04T23:14:40.191Z
Electron: 13.1.7
Chrome: 91.0.4472.124
Node.js: 14.16.0
V8: 9.1.269.36-electron.0
OS: Darwin x64 20.6.0

Node Version

  • node: v14.17.3

Additional context

  • Problem started after the deprecation notice was added to the Chrome Javascript Debugger extension. (About 2 weeks ago). So I have switched over to the built-in JS debugger (tried Nightly but made no difference).
  • It is possible to start the js-debugger in Welcome.tsx by adding debugger; to a line. This opens a read-only file and allows debugging, but not a solution. I am trying to figure out if the sourceMaps are not correctly specified.
  • Also notice periodically that Developer Tools throws
    -- ERR TreeError [CallStackView] Data tree node not found: [object Object]: Error: TreeError [CallStackView] Data tree node not found

Launch config (removed sourceMapPathOverrides)

        {
            "type": "pwa-chrome",
            "request": "launch",
            "name": "Chrome",
            "url": "https://localhost:8080",
            "webRoot": "${workspaceFolder}/ClientApp/src",
            "sourceMaps": true,
            "outFiles": [
                "${workspaceFolder}/ClientApp/build/*.js",
                "!**/node_modules/**"
            ],
            "trace": true
        },

        {
            "command": "cd ClientApp ; npm run start:dev",
            "name": "Run npm start",
            "request": "launch",
            "type": "node-terminal"
        },
        {
            "name": ".NET Core Launch (web)",
            "type": "coreclr",
            "request": "launch",
            "preLaunchTask": "build",
            "program": "${workspaceFolder}/bin/Debug/netcoreapp3.1/ManagementConsole.dll",
            "args": [],
            "cwd": "${workspaceFolder}",
            "stopAtEntry": false,
            "internalConsoleOptions": "openOnSessionStart",
            "launchBrowser": {
                "enabled": true,
                "args": "${auto-detect-url}",
                "windows": {
                    "command": "cmd.exe",
                    "args": "/C start ${auto-detect-url}"
                },
                "osx": {
                    "command": "open"
                },
                "linux": {
                    "command": "xdg-open"
                }
            },
            "env": {
                "ASPNETCORE_ENVIRONMENT": "Development"
            },
            "sourceFileMap": {
                "/Views": "${workspaceFolder}/Views"
            }
        },

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

author-verification-requestedIssues potentially verifiable by issue authorbugIssue identified by VS Code Team member as probable bugverifiedVerification succeeded

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions