开发者

Network program blocking

开发者 https://www.devze.com 2023-01-24 10:59 出处:网络
I am working on a network project which uses TCPListener and TCPClient. I have two almost identical instances of my program running on two different computers, but for some reason one of the instances

I am working on a network project which uses TCPListener and TCPClient. I have two almost identical instances of my program running on two different computers, but for some reason one of the instances works fine while the other one blocks somewhere.

What I'm wondering is if there is any way to debug what exactly is going on inside. The problem being that breakpoints d开发者_Python百科on't work since they just show the execution of one thread and nothing else. I tried Pausing the program and it shows me the line Application.Run (...) and I have no way of getting in.

Debugging this is a nightmare, and any advice would be appreciated.

PM


In the toolbar of Visual Studio, you have a dropdown list with the threads. You can use this to switch to the current halting point in another thread after pausing the execution.

MSDN: How to: Switch to Another Thread While Debugging

0

精彩评论

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

关注公众号