Eclipse 的多线程调试器

发布于 2024-10-26 16:32:42 字数 85 浏览 1 评论 0原文

Eclipse 中是否有多线程调试选项,以便我可以在事件发生时看到所有线程的断点。

如果没有的话有没有多线程调试工具?

谢谢

Is there any multithreaded debugging option in Eclipse so that I can see the breakpoints of all threads when the event occurs.

If not is there any multithreaded debugging tool?

Thanks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

回眸一遍 2024-11-02 16:32:42

在“断点”视图中单击断点,从菜单中选择“挂起 VM”。当发生这种情况时,整个虚拟机将挂起,而不仅仅是线程。

Click on your breakpoint in the Breakpoints view, select "suspend VM" from the menu. When that's hit the whole VM will suspend, not just the thread.

人间不值得 2024-11-02 16:32:42

关于否决票
在您否决该答案之前,让我澄清一下,我正在回答与 Eclipse + EPIC 和多线程调试相关的问题。随着时间的推移,他们决定重新表述问题,而我的答案是正确的,但却断章取义!所以请留意本网站的政策!

UDPATE:终于解决了:)

一旦我得到这个主题的其他内容,我会尽快回复你。

抱歉,目前 EPIC 不支持多线程程序。他们的用户指南中有说明,除非有任何新的官方声明。

EPIC 目前不支持调试多线程程序。

这里有参考

替代方案,Padre 我没有经验,但你可能想尝试一下。

更新:

我知道这是一篇较旧的帖子,但对于解决未来的任何问题都是值得的。我找到了用线程调试perl程序的方法。

就我而言,

  • Eclipse 3.7
  • EPIC Plugin 0.6.42
  • ActivePerl 5.14.2 Build 1402(64位)

我们还没有做到这一点,ActivePerl需要一个技巧。
按照此错误的说明进行操作。
其中一条评论提到用大括号替换 Cwd.pm 模块中的单逗号...更准确地说

在 C:\Perl64\lib\Cwd.pm 中,

第 758 行有以下代码,

if (eval 'defined &DynaLoader::boot_DynaLoader') {

只需将其替换为以下代码

if (eval { defined &DynaLoader::boot_DynaLoader; }) {

在我的情况下我可以调试多线程 Perl 脚本,甚至可以通过分离来中断线程内部。

希望对您有帮助,调试愉快。

About downvotes:
Before you downvote that answer, let me clarify that I was replying to a question related to Eclipse + EPIC and multi-threaded debugging. With the time they decided to rephrase the question and my answer, that was correct, got out of context! So watch out from the policies of this site!

UDPATE: Finally solved :)

I'll get back to you as soon as I get something else in this topic.

Sorry to say, currently EPIC doesn't suport multithreaded programs. It's stated in their user guide, unless there's anything new that's the official statment.

EPIC does not currently include support for debugging multi-threaded programs.

Here you have the reference

The alternative, Padre I have no experience, but you may want to give a try.

UPDATE:

I know is an older post, but is worth for any future problems. I found the way to debug perl programs with threads.

In my case,

  • Eclipse 3.7
  • EPIC Plugin 0.6.42
  • ActivePerl 5.14.2 Build 1402 (64bits)

We are not yet there, the ActivePerl requires a trick.
Following the instructions of this bug.
One of the comments mention to replace in Cwd.pm module the single commas with curly brackets ... more precisely

In C:\Perl64\lib\Cwd.pm

the line 758 has the following code

if (eval 'defined &DynaLoader::boot_DynaLoader') {

just replace it with the following

if (eval { defined &DynaLoader::boot_DynaLoader; }) {

In my case I can debug multithreaded perl scripts and break inside the thread even with detach.

Hope it helps, happy debugging.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文