Is there any way to break on the next line of code executed in Visual Studio?

前端 未结 5 1354
不思量自难忘°
不思量自难忘° 2021-01-07 16:34

I\'m trying to track down a bug that occurs when I click a particular element on an aspx page...

In the past I\'ve had to track down the class that handles that part

5条回答
  •  庸人自扰
    2021-01-07 16:53

    Have you tried the Debug > Break All ("pause") button? (Ctrl+Break)

    Debug > Break All

    It'll usually break somewhere pretty low on the stack, like at Show() for your main form in a WinForms app, but if you then Step Into to get past that, it'll often work pretty well for this sort of thing.

提交回复
热议问题