eug*_*100 3 c# exception visual-studio-2012
所有以前版本的Visual Studio都有非常有用的功能:如果我在try ... catch构造的catch块中创建一个断点,那么当发生异常时我可以拖动代码的当前位置来尝试阻塞.它允许我看到发生了什么错误.例如:
try
{
int i=0;
int j=1/i;
}
catch(Exception ex)
{
string s=""; //here I may set a break point and then drag a cursor to try block
}
Run Code Online (Sandbox Code Playgroud)
但是在VS 2012中它是不可能的!我不能回来尝试阻止.可能是我错过了一些选项吗?如果他们取消了此功能,那将非常难过. 解决方案:我的网站位于应用程序池ASP.NET V4.0 Integrated下,其中属性"Enable 32-bit applications"设置为false.当我将应用程序池更改为其他应用程序并将此属性设置为True时,我成功返回到try块
您也无法在Visual Studio 2010中执行此操作,这在Visual Studio 2012中并不是什么新鲜事.
编辑:除非它是终极似乎(启用Intellitrace).
| 归档时间: |
|
| 查看次数: |
176 次 |
| 最近记录: |