elliptic00
elliptic00

Reputation: 447

I try to know whether it is possible to skip(not running) a line(s) code during debugging in visual studio 2010,

I try to find out whether it is possible to skip(not running) a line(s) code during debugging, I have went through the "Debug" menu on the Visual Studio(2010), but I could not find anything similar.

I'm not looking for "Step Over",

Upvotes: 1

Views: 91

Answers (4)

Codeman
Codeman

Reputation: 12375

Set Next Statement is the command name. You can find more details in the MSDN article.

CTRL+SHIFT+F10 is the keyboard shortcut, or you can right click in the code window to get the context menu showing this command on the desired line of code to skip to.

Upvotes: 2

Sachin
Sachin

Reputation: 40970

I would say click on the arrow button => and drag to the next statement from which you want to resume the execution.

enter image description here

Upvotes: 5

Dai
Dai

Reputation: 154995

  1. Set a breakpoint before the code you don't want to run.
  2. Look for the Yellow arrow in the left-margin of the editor.
  3. Drag the margin to the line of code you want to run next.

Upvotes: 1

D Stanley
D Stanley

Reputation: 152501

You can either drag the yellow arrow on the left to the next statement you want to execute, or put the cursor on that statement, right-click, and select "Set Next Statement"

MSDN documeantation

Upvotes: 1

Related Questions