开发者

Debugging multi threaded environment in .net

开发者 https://www.devze.com 2022-12-12 17:15 出处:网络
I have an application that uses background workers. There are places that a background worker starts fro开发者_JS百科m a timer tick event.

I have an application that uses background workers. There are places that a background worker starts fro开发者_JS百科m a timer tick event. How can I prevent the code from jumping in debug to the timer tick?

Should I manage the timer in another thread??


If you are talking about running the application inside of Visual Studio, use the [DebuggerStepThrough] attribute to instruct the compiler to not step into that specific method.


Sorry but I dont get your question - what do you mean by "jumping in debug". Maybe conditional breakpoints could work for you?

Regards --Jocke

0

精彩评论

暂无评论...
验证码 换一张
取 消