1 year ago

#294372

test-img

NⵙⵙB

Is there a way to hook a custom handler to debugger events like break in .Net

I have a C# application (.NET Framework 4.8) that receives a stream of UDP packets and monitors the stream to ensure no packets are dropped (they contain sequence numbers) and that the packets arrive in a timely manner. Debugging the application causes nuisance warnings as packets are dropped while execution is paused. I am looking for a way to attach my own handler to debugger events just before breaking and just after resuming to account for this and suppress the warnings. Is there a way to do this?

c#

.net

roslyn

visual-studio-debugging

0 Answers

Your Answer

Accepted video resources