逐行调试Java代码 [英] Debugging Java code line by line
本文介绍了逐行调试Java代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否可以在Eclipse中逐行调试代码,显示正在执行哪一行,以便我理解代码的逻辑?我很乐意编程,请给我适当的建议。
Is it possible to debug code line by line in Eclipse showing which line is executing so that I understand the logic of the code? I'm new to programming, please give me suitable advice.
推荐答案
如果您以调试模式启动程序,
It is possible if you launch your program in debug mode:
在要调试的部分放置一个断点。
put a breakpoint in the section you want to debug.
这是一个快速教程进行调试启动配置:
Here is a quick tutorial to make a Debug launch configuration:
这篇关于逐行调试Java代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文