开发者

Debugging multi threaded environment in .net

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜