在eclipse中调试多线程 [英] Debugging multiple threads in eclipse

查看:26
本文介绍了在eclipse中调试多线程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我调试的方法中,我生成了一个新线程.我需要调试这个新线程而不是父线程的执行.我怎样才能在日食中做到这一点?

In a method I am debugging, I am spawning a new thread. I need to debug the execution of this new thread rather than the parent thread. How can I do this in eclipse?

推荐答案

在新线程的run"方法上放置一个断点.一旦线程启动,这将停止执行.

Put a breakpoint on "run" method of the new thread. That would halt execution once the thread starts.

这篇关于在eclipse中调试多线程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆