我怎么能在同一时间调试两个项目在Eclipse?能在、两个、我怎么、项目

2023-09-05 02:01:15 作者:欠你的゛幸福

我有两个项目:CONSLE和Android项目。我想比较变量的值,因为同样的code(我认为)给出了不同的结果。我必须要找到错误。 如果我在一个项目中的状态变化只是preSS F6键。 是否有可能在飞行中进行切换调试项目?

I have two projects: consle and android project. I want to compare the values of variables because the same code (as I think) gives different results. I have to find the error. If I press the F6 button the state changes just in one project. Is it possible to switch the debugging project on the fly?

推荐答案

把断点在这两个项目,并启动它们在调试模式下。

Put breakpoints in both projects and launch them in debug mode.

切换到调试的观点,并找到调试的视图的存在。你会看到各自的调用栈活动调试会话的列表。您可以点击每一个调试会话的每个调试步骤和Eclipse将打开code编辑器的步骤。 变量视图也将被更新。

Switch to "Debug" perspective and find "Debug" view there. You will see a list of active debug sessions with their respective call stacks. You can click on every debug step of every debug session and Eclipse will open that step in code editor. "Variables" view will also be updated.