How to debug C # without breakpoints in Visual Studio?

I find it difficult to find a statement that causes this side effect. I set a breakpoint in each member of the class, and I still cannot pause execution on the fault line.

  • Is there a debugger option that forces execution to pause each line regardless of breakpoints?

or

  • How to make each line a breakpoint without the effort of manually labeling them?
+5
source share
6 answers

You can pause execution and then start tracing in turn (for example, by pressing F10). This will give you exactly the same hacking effect on every line.

. , " " ( F11 ). .

, , , , ... , ? , , , , .

2. , , . CLR . , .

, CRL. , : http://technet.microsoft.com/en-us/library/cc738754(WS.10).aspx

, (, , , ?)

+5

, (, , ). (F10 F11, ), .

+3

, , . .

  • Visual Studio ctrl-alt-E, "". . "Common Language Runtime Exceptions".
  • . CLR, , , .

ctrl-alt-E , !

screenshot here!

+1

- Break All . , , . Debug → Break All ( CTRL + ALT + Break)

. " " : "" , "" , "" , " " , " Visual Studio"

+1

F10 , , .

0

I am not sure if I understand your problem. You can use one breakpoint and then press F10 (step forward) or F11 (step forward) to go to the next instruction. This will be the same as having a breakpoint on each line and pressing F5 (continue) after each break. Or you can set a breakpoint on the line of the culprit and examine the call window to see the control flow to this point.

-1
source

All Articles