Can I set a breakpoint condition across the entire form?

When starting the program, I should see every time a certain button is disabled and goes through the code at this point.

If you set a breakpoint with a condition (for example: only when button1.enabled = false), it will only go to that specific place.

Is it possible to set a breakpoint for the whole program so that I can see when the condition changes in many forms and locations?

+4
source share
2 answers

, Enabled, . . ( , " ", . )

" " , Visual Studio 2013 , :

enter image description here

funtion:

 System.Windows.Forms.Control.Enabled

# VB.NET:

 System.Windows.Forms.Control.set_Enabled(bool)

(, , , Button class 'Enabled Control, Button.

, ( - ), Intellisense.

,

enter image description here

Name ( , ) , :

enter image description here

, Control ( Step Source Stepping), . " ", , .

enter image description here

- Stacktrace. , . , "Step into Specific", , .

enter image description here

"" :

enter image description here

+4

Microsoft.NET, . .

Visual Studio Debugger " " " ". enter image description here

Microsoft Symbol Servers . . enter image description here

, - System.Windows.Forms(, MainForm) "System.Windows.Forms", . "" . enter image description hereenter image description here

: http://blogs.msdn.com/b/sburke/archive/2008/01/16/configuring-visual-studio-to-debug-net-framework-source-code.aspx

0

All Articles