当我在VS2013 update3中调试时,msvsmon.exe在断点处遇到崩溃.
它显示"调试器的工作进程(msvsmon.exe)意外退出.调试将被中止".
我没有使用远程调试.
是否可以关闭msvsmon.exe以避免在调试时调用它?
debugging remote-debugging visual-studio visual-studio-debugging
我启动了VS2013 VB.Net MVC5 Web应用程序,在HomeController中设置断点关于方法并运行"开始调试",导航到"关于"页面并接收"Code not running - The current Thread is not currently running or the call stack could not be obtained"阻止任何调试的消息.
如果我在Global.asax Application_Start中设置断点,断点工作正常.更改"启用编辑并继续"没有任何区别.
任何人都有任何想法发生了什么?
更新:我的环境是带有VS2013 Ultimate的Windows 8.0 Pro.
我已经刷新了我的系统并完成了全新安装的Windows 8.1 Pro,VS2010 Ultimate,VS2012 Ultimate和VS2013 Ultimate.
在所有3个版本的VS上完成相同的测试 - 文件>新建项目> MVC(默认).所有3个版本的VS都在报告" Process with an Id of xxx is not running."
VS2013调试跟踪报告"The program '[7720] iisexpress.exe: Program Trace' has exited with code 0 (0x0). The program '[xxxx] iisexpress.exe' has exited with code -1073741816 (0xc0000008) 'An invalid handle was specified'. …
asp.net-mvc visual-studio-debugging iis-express visual-studio-2013 asp.net-mvc-5
在为媒体中心编写插件时,你的插件会被托管在ehexthost.exe这个exe中ehshell.exe,你无法直接启动它,而是你传递了一个特殊的参数ehshell.exe,它将在一个单独的进程中启动插件.
当我们调试媒体浏览器时,我发现附加到第二个进程的过程有点笨重,我知道Debugger.Attach以及我可以使用的一些特殊注册表项.
这两种方法都不符合我的法案.我想要的是按F5并让我当前的visual studio实例自动附加到子进程.可以这样做吗?
如果有一个VS的插件允许我实现这个功能,我会很高兴.
编辑
我最终使用以下宏:
Public Sub CompileRunAndAttachToEhExtHost()
DTE.Solution.SolutionBuild.Build(True)
DTE.Solution.SolutionBuild.Debug()
Dim trd As System.Threading.Thread = New System.Threading.Thread(AddressOf AttachToEhExtHost)
trd.Start()
End Sub
Public Sub AttachToEhExtHost()
Dim i As Integer = 0
Do Until i = 50
i = i + 1
Try
For Each proc As EnvDTE.Process In DTE.Debugger.LocalProcesses
If (proc.Name.IndexOf("ehexthost.exe") <> -1) Then
proc.Attach()
Exit Sub
End If
Next
Catch e As Exception
' dont care - stuff …Run Code Online (Sandbox Code Playgroud) 在VS2012中,我的Web项目总是如此调试.我使用IIS Express.今天,我安装了VS 2013,当我按F5进行调试时,我得到了

我无法在任何地方找到解决方案.我尝试清除临时文件,将端口号从7227更改为其他内容,删除iis express配置文件等.我甚至卸载并重新安装VS 2013.
我可以在没有调试的情况下运行,然后连接到IISExpress并且可以工作,但我不能从F5开始.有线索吗?
编辑:发生在另一台机器上以及全新安装的Windows 8.1和VS 2013
编辑:解决方案:我已将Silverlight检查为调试器.我取消选中Silverlight,我可以使用F5使用Chrome或Firefox进行调试.显然有些东西不在这里,但我还是不需要Silverlight调试.
debugging silverlight visual-studio-debugging iis-express visual-studio-2013
如何在调试时设置.Net Core 1.0项目以使用本地IIS而不是IIS Express?
我试过以各种方式修改launchSettings.json文件.例如,替换所有出现的IIS表达与本地IIS和更新applicationUrl和launchUrl使用个性化的本地主机的http://sample.local(我已经更新了主机文件和配置IIS管理器已),但并不快乐.
Properties/launchSettings.json文件的默认设置:
{
"iisSettings": {
"windowsAuthentication": false,
"anonymousAuthentication": true,
"iisExpress": {
"applicationUrl": "http://localhost:38601/",
"sslPort": 0
}
},
"profiles": {
"IIS Express": {
"commandName": "IISExpress",
"launchBrowser": true,
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
},
"SampleApp": {
"commandName": "Project",
"launchBrowser": true,
"launchUrl": "http://localhost:5000",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
}
}
}
Run Code Online (Sandbox Code Playgroud) 当我在Visual Studio中进行调试时,出于某种原因调试某个线程时,Visual Studio将跳转到不同的线程.
如何更改行为以使其位于同一个线程上?
debugging multithreading visual-studio visual-studio-debugging
Visual Studio 2012附带了非常好的Page Inspector.我喜欢!问题但是,我还没有找到(如果?)我可以打开JavaScript调试.有人能指出我正确的方向吗?
我抛出一个 InvalidOperationException (这应该很容易修复)。但是,当引发异常时,我无法在本地调试窗口中查看任何当前值。他们都传达了相同的信息:
Local variables and arguments are not available in '[Exception]' call stack frames. To obtain these, configure the debugger to stop when the exception is thrown and rerun the scenario.
Run Code Online (Sandbox Code Playgroud)
不确定为什么会发生这种情况(也许与异步有关?),但这是相对简单的代码,我应该能够看到这些变量的值。
我在Visual Studio 2008中有一个有多个项目的解决方案.其中一个项目是WCF项目.有时我只是想调试其他项目,但是当我按F5时,Visual Studio启动了wcfsvchost.exe来托管WCF项目,即使它不是"StartUp Project".
目前,每次我调试其他项目时,我都要卸载WCF项目以防止恼人的WcfSvcHost.exe主机弹出.但是,这不方便.有人知道更好的想法阻止WCF项目在调试模式下托管吗?
可以使用System.Diagnostics.StackTrace获取堆栈跟踪,但必须暂停线程.暂停和恢复功能已经过时,所以我希望存在更好的方法.
.net debugging multithreading stack-trace visual-studio-debugging
debugging ×5
.net ×3
c# ×2
iis-express ×2
asp.net ×1
asp.net-core ×1
asp.net-mvc ×1
exception ×1
iis ×1
javascript ×1
silverlight ×1
stack-trace ×1
wcf ×1