如何查看java程序的执行步骤 [英] How to see the execution steps of a java program

查看:434
本文介绍了如何查看java程序的执行步骤的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道Eclipse有一个让我们看到执行程序的步骤的功能。

I know that Eclipse have a function that allow us to see the steps of execution of a program.

有谁能告诉我怎么找到它?我真的需要它来学习和理解一些代码。

Can anyone tell me how can I find it? I really need it to study and understand some pices of code.

推荐答案

在顶部寻找小绿色的bug。
如果您通过按此图标运行它,您的应用程序将以新的角度运行,并在您的断点停止。

Look for the little green bug at the top. If you run it by pressing this icon, your application will run in a new perspective and stop at your breakpoints.

通过点击您看到蓝点的区域输入断点这张图片。

Enter breakpoints by clicking the area where you see the blue dot in this picture.

在调试器的内部导航:

绿色箭头用于运行到下一个断点。
红色方块用于终止进程。
90度的箭头进入您调用的方法,显示方法中的每个步骤。最后一个箭头执行它们而不显示步骤。

Green arrow is for running till next breakpoint. Red square is for terminating the process. The 90degree arrow goes into methods you invoke showing each step IN the method. The last arrow executes them without showing the steps.

如果你完成调试,你可以在这里切换透视图(右上角)

If you're done with debugging you can switch perspective here.(upper right corner)

这篇关于如何查看java程序的执行步骤的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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