英文:
How to step through Swing app in Intellij
问题
我刚开始使用Intellij,正在运行一个GUI应用程序,想知道是否有比通过调试模式逐行运行代码的更好的追踪执行方式。我只想看到每个函数调用,并希望在与GUI交互时在IDE中在函数之间跳转。
英文:
I am new to Intellij and am running a GUI app and wanted to know if there was a better way to trace execution than to run through debug mode and click through each line of code. I only want to see each function call and have it jump between functions in the IDE when I interact with the GUI.
答案1
得分: 1
IntelliJ IDEA的调试器具有无需停止的记录断点选项。您可以在需要的地方放置启用了日志记录的日志断点(禁用中断,启用日志),并在使用应用程序时在IDE控制台中查看日志。
英文:
IntelliJ IDEA debugger has the option to log the breakpoints without stopping. You can put the logging breakpoints (Suspend disabled, Log enabled) where needed and use your app while watching the logs in the IDE console.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论