Debugging VisualStudio 2017:类型脚本断点不';行不通

Debugging VisualStudio 2017:类型脚本断点不';行不通,debugging,typescript,asp.net-core,.net-core,visual-studio-2017,Debugging,Typescript,Asp.net Core,.net Core,Visual Studio 2017,使用.NET Core 2的标准SPA项目模板 dotnet new knockout 此模板是 当我通过iisexpress运行project时,断点的一部分工作,但另一部分不工作。例如,它适用于路由器类: constructor(history: History.History, routes: Route[]) { // Reset and configure Crossroads so it matches routes and updates this.currentRout

使用
.NET Core 2
的标准SPA项目模板

dotnet new knockout
此模板是 当我通过
iisexpress
运行project时,断点的一部分工作,但另一部分不工作。例如,它适用于
路由器
类:

constructor(history: History.History, routes: Route[]) {
    // Reset and configure Crossroads so it matches routes and updates this.currentRoute
    crossroads.removeAllRoutes(); <- here a breakpoint works
    crossroads.resetState();

有什么想法吗?

您能直接访问浏览器中的/api/SampleData/WeatherForecasts吗?通常我们使用的URL类似于private heroesUrl='api/heroes';//web api的URL,是否与你方的URL相关?请分享你方的最新信息?那么这个问题呢?您能否直接访问浏览器中的/api/SampleData/WeatherForecasts?通常我们使用的URL类似于private heroesUrl='api/heroes';//web api的URL,是否与你方的URL相关?请分享你方的最新信息?这个问题怎么样?
constructor() {
    fetch('/api/SampleData/WeatherForecasts') <-- A breakpont doesn't work
        .then(response => response.json() as Promise<WeatherForecast[]>)
        .then(data => {
            this.forecasts(data);
        });
}