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

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

问题描述

在调试的方法中,我正在产生一个新的线程。我需要调试这个新线程而不是父线程的执行。如何在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?

解决方案

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

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

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