+2
Completed

Toggle button to filter breakpoints by current thread

Andrew Hanlon 5 years ago updated by Ortal Greenberg Ilany 5 months ago 3
When debugging through multi-threaded code, often stepping-over/into code can be quite frustrating as you will hit the same breakpoint on multiple threads, disturbing the debugging flow. The (i believe) best way to avoid this is to add a filter to all relevant breakpoints for the current thread id. But this requires finding the current thread id, and multiple steps that need to be done/undone repeatedly. OzCode could provide a toggle button (plus shortcut?) that adds a filter to all (or selected) breakpoints for the current thread id - greatly easing this annoyance.

Answer

Answer
Completed

Thanks for bringing this issue up, we do have a solution for this request;

In the Time Travel feature, we intentionally made sure that the execution flow always uses the same thread, so there are no annoying thread content switches.

Please be sure you have the latest OzCode version.

Under review
Hi Andrew!

Thanks for the suggestion, this is something we'll definitely consider for future releases of OzCode.

Kind regards,
Lior Kerner, Support Engineer
The OzCode Support Team

+1 having this scenario a lot and it's really frustrating. It happens so easily that you hit the breakpoint on another thread without even noticing. If you have to check a loop which gets hit multiple times it's even more cumbersome as you have to step through it manually because otherwise another thread would get in between. There's no "set a breakpoint after loop and hit F5".

Please add this. This would be one of the best features you could add to OzCode!


PS: Actually a shame that his was mentioned 5 years ago and still hasn't made any progress...

Answer
Completed

Thanks for bringing this issue up, we do have a solution for this request;

In the Time Travel feature, we intentionally made sure that the execution flow always uses the same thread, so there are no annoying thread content switches.

Please be sure you have the latest OzCode version.