简体   繁体   English

Eclipse中java程序调试问题

[英]Problem with debugging of java program in Eclipse

I made a (rather big) java desktop program in Eclipse.我在 Eclipse 中制作了一个(相当大的)java 桌面程序。 A could normal run an debug program. A 可以正常运行调试程序。 But after making changes in the program (to many to easily undone the changes), I tried debugging the program, but the program crashes.但是在对程序进行更改后(对许多人来说很容易撤消更改),我尝试调试程序,但程序崩溃了。 Eclipse doesn't give feedback or problems. Eclipse 不提供反馈或问题。 After a few minutes (sometimes, not always), my frame appaers, but without content.几分钟后(有时,并非总是如此),我的框架出现了,但没有内容。 I can normally run the program, and also I can debugging other programs with Eclipse.我可以正常运行程序,也可以用Eclipse调试其他程序。

Can anyone give me suggestions where I can start looking?谁能给我建议我可以从哪里开始寻找? I should think something like a stack overflow question, but why can I run the application, but not debug?我应该考虑类似堆栈溢出问题,但为什么我可以运行应用程序,但不能调试?

Debugging informations is as follows;调试信息如下;

    framePackage.Program at localhost:38643 
        Thread [AWT-EventQueue-1] (Running) 
        Thread [DestroyJavaVM] (Running)    
        Daemon Thread [Thread-0] (Running)  
    /usr/lib/jvm/java-8-openjdk-amd64/bin/java (28 apr. 2021 21:48:09)


 

You might try and step through the code, and set break points.您可以尝试单步执行代码,并设置断点。 Yes I understand the application might be big, but I'm sure there's multiple classes/methods and you know how each interacts.是的,我知道该应用程序可能很大,但我确信有多个类/方法,并且您知道每个类/方法如何交互。

Stepping through the code may give an indication of what is and is not working as it should.单步执行代码可能会指示哪些内容可以正常工作,哪些内容不能正常工作。 For future reference, if you're using Eclipse, I'd suggest checking out some debugging tools from the Eclipse Market Place.为了将来参考,如果您使用的是 Eclipse,我建议您从 Eclipse Market Place 中查看一些调试工具。

Yes, I can go step by step.是的,我可以一步一步 go。 But it goes so slowly, I think in particular the steps that do the layout, making a tabbedPane, myFrame.pack()...但它进展得如此缓慢,我认为特别是进行布局的步骤,制作 tabbedPane,myFrame.pack()...

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM