1

我有用于 web EXPRESS 的 Visual Studio 2012 - 我可以在调试模式断点和应用程序停止时的条件中设置循环吗?例如我有循环:

for (int i = 0; i <= 6000; i++)
{
    //...........
}

我想看看当 i = 3000 时出了什么问题,我该怎么做?

编辑:

我没有下断点选项“条件”:

在此处输入图像描述

4

1 回答 1

3

Set the breakpoint as normal (via right-click or F9) then right-click the red dot in the editor margin, click "Condition", and enter i == 3000.

Edit: It seems that VS Express 2012 for Web doesn't have this feature.

于 2013-04-05T19:58:46.777 回答