4

I try to debug several applications that communicates with each other - and want to have ability to step over without switching to another process/thread. So Visual Studio has command "Step Over Current Process (Ctrl-Alt-F10)" - which looks like what I want but it's disabled, why?

I've found the same question but for C++: "Step over" when debugging multithreaded programs in Visual Studio

So write macros is only way for .net too?

Community
  • 1
  • 1
Pavel Samokha
  • 1,121
  • 1
  • 8
  • 11
  • Perhaps you could use a conditional breakpoint? – Kane Nov 13 '09 at 08:26
  • 1) Breakpoints not so usable - too many breakpoints needed if use it instead of "step over" 2) Sometimes I have same code works in different processes - how to define in condition that breakpoint is only for current process? – Pavel Samokha Nov 13 '09 at 09:30
  • Oh it seems I found answer for question 2) - so called Breakpoint Filter is exactly for that, like: ProcessId = 123 or ProcessName=. – Pavel Samokha Nov 13 '09 at 09:38

1 Answers1

2

My understanding is there is no real way to do this in visual studio. Unlike Eclipse :D. The best you can do is use the Threads debug window to freeze all threads other than the one you want to debug.

As stated in the comments you can also use a conditional break point and set a filter like "ThreadNameToStopOn" == Thread.CurrentThread.Name

mfalto
  • 405
  • 2
  • 8