Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Java IDE: Can't set regular breakpoints in; options grayed out
Java IDE: Can't set regular breakpoints in; options grayed out [message #1691837] Fri, 10 April 2015 06:34 Go to next message
James Hogan is currently offline James HoganFriend
Messages: 3
Registered: April 2015
Junior Member
I'm really stumped. I can't create regular breakpoints in my code. The options are all grayed out under my "Run" menu. There's no option to set breakpoints when I right-click on the left margin of my editor window.

The "Run" menu options for "Add Java Exception Breakpoint" and "Add Class Load Breakpoint" work OK.

Java IDE, Luna SR2 (4.4.2)
Java SE 6: 1.6.0_65-b14-466.1
OS X 10.10.3

The source code I'm using is trivial; attached below.

I've spent the past hour trying to research and google this problem and can't even find anyone else that seems to describe anything similar.

Help?? What am I missing?

Thanks,
James


public class test
{
	public static void main( String[] args )
	{
		int j=3;
		System.out.println( j );
	}
}

Re: Java IDE: Can't set regular breakpoints in; options grayed out [message #1691852 is a reply to message #1691837] Fri, 10 April 2015 07:53 Go to previous messageGo to next message
James Hogan is currently offline James HoganFriend
Messages: 3
Registered: April 2015
Junior Member
OK, well... after another hour of beating my head against the wall, I've somehow fixed it.

I created a new project from scratch, and noticed breakpoints worked there.

In the original/broken project, I had moved the .java source file into the Eclipse project directory manually from the command line, rather than creating it within the IDE. Would this have caused a problem somehow? Is there some sort of metadata which Eclipse didn't have?

I moved the class to a new package (it had been in the default package) and then the breakpoints appeared. I moved them back to the default package, and they were still there, so it doesn't seem to be a function of package location.

Anyway, it'd be interesting to understand what happened here, if anybody has any ideas.
Re: Java IDE: Can't set regular breakpoints in; options grayed out [message #1691960 is a reply to message #1691852] Fri, 10 April 2015 23:06 Go to previous messageGo to next message
Russell Bateman is currently offline Russell BatemanFriend
Messages: 3798
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

On 04/10/2015 01:53 AM, James Hogan wrote:
> OK, well... after another hour of beating my head against the wall, I've
> somehow fixed it.
>
> I created a new project from scratch, and noticed breakpoints worked there.
>
> In the original/broken project, I had moved the .java source file into
> the Eclipse project directory manually from the command line, rather
> than creating it within the IDE. Would this have caused a problem
> somehow? Is there some sort of metadata which Eclipse didn't have?
>
> I moved the class to a new package (it had been in the default package)
> and then the breakpoints appeared. I moved them back to the default
> package, and they were still there, so it doesn't seem to be a function
> of package location.
>
> Anyway, it'd be interesting to understand what happened here, if anybody
> has any ideas.

Hard to tell, but maybe it's as simple as having moved source code in
the filesystem then not done File -> Refresh from the IDE.
Re: Java IDE: Can't set regular breakpoints in; options grayed out [message #1691961 is a reply to message #1691960] Fri, 10 April 2015 23:11 Go to previous message
James Hogan is currently offline James HoganFriend
Messages: 3
Registered: April 2015
Junior Member
That could be it.
Thanks for the thoughts!
Previous Topic:java.lang.UnsatisfiedLinkError: Unable to load library 'kernel32'
Next Topic:Re: Deploy from Hudson-ci server to remote windows server
Goto Forum:
  


Current Time: Thu Mar 28 14:05:41 GMT 2024

Powered by FUDForum. Page generated in 0.05685 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top