Skip to content

"Breakpoints set but not yet bound" #2305

@johnpankowicz

Description

@johnpankowicz

I create a project with "dotnet new angular". When a breakpoint is set on a Typescript instruction, it shows as a open red circle when run. The error message is "The breakpoint will not currently be hit. Breakpoints set but not yet bound."

I am currently using: VS Pro 15.7.2, .Net Core SDK 2.1.300 (x64) and .Net Core Runtime 2.1.0 (x64)

This problem started when I updated from .Net Core SDK 1.x.

I tried other SDK 2.x releases. It fails in v2.1.4 & v2.1.300. But breakpoints succeed in v2.0.0, 2.1.200 & 2.1.201. This difference is that, when it succeeds, each of the SDKs generate the files webpack.config.js & webpack.config.vendor.js in the root of the project during the "dotnet new angular".
The other difference is that the working projects define the location of "ClientApp" in webpack.config.js. In those projects that fail, the ClientApp location is defined in startup.cs.

I wish that I could use one of the SDKs where debugging works. But for other reasons, I can't. So I am stuck until this issue is resolved.

Some more info:
Using sdk v2.1.201, the generated package.json contains:
"typescript": "2.4.1",
"webpack": "2.5.1",
"webpack-hot-middleware": "2.18.2",
"webpack-merge": "4.1.0",

Using sdk v2.1.300,the generated package.json contains:
"typescript": "~2.5.3"
but does not contain entries for webpack. In node_modules/.bin there is a "webpack.cmd" whose version is 3.11.0.

When I type "tsc -v" at in a VS2017 Developer Command window, I get:
version 2.8.4

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions