Visual Studio 2017 v15.5 Aspnet Core 2.0.3无法在IISExpress上调试 [英] Visual Studio 2017 v15.5 Aspnet Core 2.0.3 fails to debug on IISExpress
问题描述
最近我将Visual Studio 2017安装从15.4.5
更新到了15.5
之后,我失去了在aspnet core 2.0应用程序中达到断点的能力.该配置可以在任何CPU调试中进行.
After I recently updated my visual studio 2017 installation from 15.4.5
to 15.5
I have lost the ability to hit breakpoints in my aspnet core 2.0 applications. The configuration is in debug any cpu.
虽然这在kestrel(作为consoile应用程序进行调试)上工作正常,但在IISExpress上却没有达到我的断点.
While this works fine on kestrel (Debugging as a consoile app), on IISExpress it does not hit my breakpoints.
在这里,奇怪的是,似乎在运行时加载了调试符号(断点已正确突出显示),并且没有警告.
As a sidenote the weird thing here is it seems to have the debug symbols loaded on runtime (the breakpoint is correctly highlighted) and no warning.
环境:
Runtime Environment:
OS Name: Windows
OS Version: 10.0.16299
OS Platform: Windows
RID: win10-x64
Base Path: C:\Program Files\dotnet\sdk\2.1.2\
Microsoft .NET Core Shared Framework Host
Version : 2.0.3
Build : a9190d4a75f4a982ae4b4fa8d1a24526566c69df
Microsoft Visual Studio Enterprise 2017
Version : 15.5.0
我已经尝试修复Visual Studio,但问题仍然存在
I have already tried to repair visual studio but the problem persists
推荐答案
在我更新到15.5之后仔细检查了我的最后一次提交之后,我注意到我对位于项目Properties
下的launchSettings.json
文件进行了无意更改.文件夹.添加了新的use64bit
设置,并由vs设置为true
.
After careful inspection of my last commit after I updated to 15.5 I noticed that I had an unintentional change to my launchSettings.json
file located under my project Properties
folder. There was a new use64bit
setting added and was set by vs to true
.
我必须将其设置为false ,以便visualstudio在iisexpress上进行调试.以下是launchSettings.json
I had to set it to false in order for visualstudio to work with debugging on iisexpress. Below is my current state of the IIS Express profile in launchSettings.json
{
"iisSettings": {
"windowsAuthentication": false,
"anonymousAuthentication": true,
"iisExpress": {
"applicationUrl": "http://localhost:20202",
"sslPort": 0
}
},
"profiles": {
"IIS Express": {
"commandName": "IISExpress",
"launchBrowser": true,
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
},
"use64Bit": false
}
}
这篇关于Visual Studio 2017 v15.5 Aspnet Core 2.0.3无法在IISExpress上调试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!