Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsJava IDE: Can't set regular breakpoints in; options grayed out
https://www.eclipse.org/forums/index.php/mv/msg/1065577/1691837/#msg_1691837
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 );
}
}
]]>James Hogan2015-04-10T06:34:48-00:00Re: Java IDE: Can't set regular breakpoints in; options grayed out
https://www.eclipse.org/forums/index.php/mv/msg/1065577/1691852/#msg_1691852
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.
]]>James Hogan2015-04-10T07:53:49-00:00Re: Java IDE: Can't set regular breakpoints in; options grayed out
https://www.eclipse.org/forums/index.php/mv/msg/1065577/1691960/#msg_1691960
> 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.]]>Russell Bateman2015-04-10T23:06:16-00:00Re: Java IDE: Can't set regular breakpoints in; options grayed out
https://www.eclipse.org/forums/index.php/mv/msg/1065577/1691961/#msg_1691961
Thanks for the thoughts!]]>James Hogan2015-04-10T23:11:00-00:00