Sid
Sid

Reputation: 5

How to avoid 'Step In' while debugging using Visual Studio

enter image description here

For any initialization or variable declaration like string x = new string(),..

in above image its for Hashtable htmessage = new hashtable();

Upvotes: 0

Views: 92

Answers (1)

Brien Foss
Brien Foss

Reputation: 3367

F11 will "Step Into", where F10 will "Step Over"

enter image description here

See the documentation Code Stepping Overview

Step Into and Step Over differ in only one respect, the way they handle function calls. Either command instructs the debugger to execute the next line of code. If the line contains a function call, Step Into executes only the call itself, then halts at the first line of code inside the function. Step Over executes the entire function, then halts at the first line outside the function. Use Step Into if you want to look inside the function call. Use Step Over if you want to avoid stepping into functions.

Upvotes: 2

Related Questions