views:

37

answers:

2

Hello

is there any way to make code for studio debugger atomic? e.g.

#magic(atomarize) :D
for(int i=0;i<100;++i)
{
  //actions
}

// other statements

so when debugger comes to the for statement, it doesn't show how it's executed (it executes internally) and at once goes to the other statement

+3  A: 

You could put the code in a separate method and apply a [DebuggerStepThrough] attribute to it.

Tim Robinson
thank you, but code in a separate method is not the same as the inline code
misha nesterenko
I understand, but you can't achieve this without introducing a separate method.
Tim Robinson
may some add-on has necessary functionality?
misha nesterenko
+1  A: 

Don't forget in gui debuggers like Visual Studio you have a "run to cursor" option - so you can set your cursor after the loop and then run straight past it.

Colin Pickard
it's just a question of efficiency, if code block is enough big and frequently debugged it is harassing every time to use run to cursor option
misha nesterenko