Eclipse中的客户端/服务器UDP程序调试

时间:2022-07-25 20:59:21

I'm trying to debug my Client-Server UDP program to see what it is doing but when I get to the .receive() method (in either the client or the server code) the break point disappears and the step-into/step-over buttons turn gray. What I see next to the .receive() method call is a little white arrow that says "debug call stack" when I hover over it. What exactly is happening?

我正在尝试调试我的客户端 - 服务器UDP程序以查看它正在做什么但是当我到达.receive()方法(在客户端或服务器代码中)时,断点消失并且步入/步骤 - 按钮变为灰色。我在.receive()方法调用旁边看到的是一个小小的白色箭头,当我将鼠标悬停在它上面时会显示“调用调用堆栈”。究竟发生了什么?

Has it something to do with the fact that it's a blocking call? If so how do I get past beyond this point?

它是否与阻塞通话有关?如果是这样,我怎么能超越这一点呢?

1 个解决方案

#1


0  

Your call is blocked on that line, waiting for a read.

您的电话在该线路上被阻止,等待阅读。

You can place another breakpoint right after that specific line. It will break after the receive() is done.

您可以在该特定行之后放置另一个断点。在receive()完成后它会中断。

The block is probably native, so you can't really debug it. However, if you never get to the second breakpoint, you know that there is problem ;-)

该块可能是原生的,因此您无法真正调试它。但是,如果你从未到达第二个断点,你知道有问题;-)

#1


0  

Your call is blocked on that line, waiting for a read.

您的电话在该线路上被阻止,等待阅读。

You can place another breakpoint right after that specific line. It will break after the receive() is done.

您可以在该特定行之后放置另一个断点。在receive()完成后它会中断。

The block is probably native, so you can't really debug it. However, if you never get to the second breakpoint, you know that there is problem ;-)

该块可能是原生的,因此您无法真正调试它。但是,如果你从未到达第二个断点,你知道有问题;-)