0

We have couple of BackgroundService classes listening to message queues. I'm trying to debug a helper function that gets called when an event is read from the queue. Breakpoint is set to the entry point of the function.

Problem: While I'm debugging, if another event comes in one of the queues, Visual Studio repositions the yellow arrow back to the breakpoint. If I continue hitting F10, the yellow arrow seems to debug both events parallely, as it skips few lines and jumps back few lines.

joym8
  • 4,014
  • 3
  • 50
  • 93
  • Not sure but may be you can check this out https://learn.microsoft.com/en-us/visualstudio/debugger/how-to-use-the-threads-window?view=vs-2022&tabs=csharp – Abhishek Borikar Sep 19 '22 at 18:15
  • See [here](https://stackoverflow.com/questions/5304752/how-to-debug-a-single-thread-in-visual-studio) – Yitz Sep 19 '22 at 18:57

0 Answers0