Most debugging options greyed out in Eclipse - java

I've ran into a nasty NullPointerException in my code, it's nothing too bad, I should be able to fix it quite easily with some breakpoints and "Step Into".
The only problem is, almost all of the debugging options are greyed out for me in Eclipse, I've used them before and they worked fine, but now when I need them the most, they're not working!
I looked on the internet and tried some things like running eclipse with -clean, restarting, opening debug perspective, making sure skip breakpoints were disabled.. None of which worked unfortunately.
I'm guessing it's just me missing something really obvious but any help fixing this would be appreciated.

Well, It says "terminated", so your program must have ended execution.
That's why all the buttons are greyed out.
The exit value is 1, which indicates abnormal end to an execution of a program (program aborted without reaching the end). Try placing breakpoints earlier in the code to find out where it stops executing.

Your application already terminated. The debugging options are only enabled, when an actual debug application is running.

Related

JUnit Stopping at Breakpoints in Files I Didn't Write and Don't Have Permission to

I am running unit tests on java code using intelliJ and junit. The unit tests were working fine, and they still are . . . until I run in debug mode. Today, when I run in debug mode, all of a sudden, they start iterating through java files that are installed with java, I didn't write, and that I don't have permission for like the following:
This is part of the java code base that I don't have any control over and I didn't set any breakpoint here. Yet it pauses here and makes me click through it to get past it. I wouldn't care if this was only a couple of additional clicks to click through, but I have clicked like 50 times and it still keeps going through base java code that I have no control over and is not what is throwing any problem or issue.
I tried changing the settings for code coverage but that didn't seem to do anything. Is there any way to get junit to only stop at breakpoints that I, myself, specified? Any help here would be appreciated. I didn't see a similar question on Stack Overflow and the stuff on other sites is all about crafting the unit test itself.
So crazy coder (see above) was correct, but I thought I would add (after painfully trying every other alternative) that you have to go to: Run | View Breakpoints and then scroll all the way down on the left side panel (which you may not notice if you have tons of breakpoints like I did) and at the bottom there are breakpoints for Java exceptions. You need to click those OFF see below:

Eclipse goes unresponsive when a period character is typed

I have been using eclipse for many months without any issues now. Today I fired it up and continued working on my project. Whenever I type the "." in SomeClass." it immediately goes unresponsive and the only way to close it is to kill it using the taks manager. I tried reinstalling the program but that didnt help. Im using eclipse 2020-06 with java. Can someone please help me? Also I don't know how to debug eclipse and find the crash logs and stuff like that so if you need anything please tell me where I can find it. Thanks in advance!
EDIT:
Im not sure what changed but it doesnt crash immediately anymore. If I hit ctrl+space though it says computing proposals for a while and then gives me this error:
https://i.stack.imgur.com/rE9mK.png

Intellij idea triggered brakepoint without having one

I faced a strange problem while debugging my project. The problem is that Idea triggered a breakpoint at the lines where no any breakpoints actually. However, breakpoints have been set at that lines before, but not now. Any advices?
Screenshot attached.

Unable to debug using eclipse debugger

So there is a small java program to add two numbers.
There is one break-point.
I used Debug as -> Java Application.
But still, Step Into, Step Over, Resume, Suspend and Terminate buttons are disabled in my eclipse.
See below:
Debugger recognized the breakpoint at int b = 3 but still the buttons are disabled.
Everything was working fine yesterday.
What should be the cause?
Possibles solutions and cause here.
The commands got disabled, probably from previous customization, (check General -> Keys) but I wouldn't think this can be the only reason to be cause of this issue.
Hope this helps you out.
I have met the same issue and fixed it. The following are the possible solutions:
Make sure that your skip all break point option is disabled
Reset your debug perspective in perspective options.
Make sure to restart eclipse after doing above things

Process Model Delta

I am using Eclipse IDE.
Sometimes, after I make some alterations to the code and try to run, I get "'Process Model Delta' has encountered a problem" error. If I try to run again, sometimes it runs (without giving any error again) or again gives the error and I have to restart Eclipse.
I am not pasting any piece of code here, because the code was perfectly fine in many situations when this error occurred.
Can anybody let me know the reason why this error occurs or what is the meaning of this error?
Thanks in advance!
I assume you're actually debug. It that's the case, the cause is in one of your breakpoints. See if it runs fine with breakpoints disabled. If that helps, try Debug view menu Java > Show System Threads.
Cheers,
Max

Categories