Eclipse debugger not working [message #131155] |
Sat, 03 January 2004 17:54  |
Eclipse User |
|
|
|
Originally posted by: leo.raceoddity.net
Hi all,
I'm an eclipse and Java newbie coming from a C++ background and I'm pretty
impressed with Eclipse so far, but I'm having trouble getting the debugger
to work. My 'Run' command works fine, but hitting Debug for the
appropriate project connects a console on a port but then just sits there
- breakpoints don't work, and the app doesn't start up. Can someone
suggest what I'm doing wrong? Do I need to pass a switch into the compiler
to enable debug info? I'd have thought eclipse would do that by default. I
can start multiple debug session consoles, none of which do anything. The
log file appears not to be affected, indicating no actual error has
occurred.
I'm using Eclipse 2.1.2 and j21.4.2
Thanks
Leo
|
|
|
Re: Eclipse debugger not working [message #131603 is a reply to message #131155] |
Mon, 05 January 2004 13:38   |
Eclipse User |
|
|
|
We are confident that debugging works :-) Have you tried a simple "hello
world" program to ensure things are not working? You should ensure that a
"debug view" is open in the debug perspective, and that the launch actually
appears in the view, in debug mode. Other than that, we need more specific
steps to reproduce the problem, since debugging is definetly working at this
end.
Darin
"Leo" <leo@raceoddity.net> wrote in message news:bt7h6d$kj$1@eclipse.org...
> Hi all,
>
> I'm an eclipse and Java newbie coming from a C++ background and I'm pretty
> impressed with Eclipse so far, but I'm having trouble getting the debugger
> to work. My 'Run' command works fine, but hitting Debug for the
> appropriate project connects a console on a port but then just sits there
> - breakpoints don't work, and the app doesn't start up. Can someone
> suggest what I'm doing wrong? Do I need to pass a switch into the compiler
> to enable debug info? I'd have thought eclipse would do that by default. I
> can start multiple debug session consoles, none of which do anything. The
> log file appears not to be affected, indicating no actual error has
> occurred.
>
> I'm using Eclipse 2.1.2 and j21.4.2
>
> Thanks
>
> Leo
>
|
|
|
Re: Eclipse debugger not working [message #131646 is a reply to message #131603] |
Mon, 05 January 2004 16:57  |
Eclipse User |
|
|
|
Originally posted by: leo.raceoddity.net
Darin,
Mike Bangham has mailed me a solution which worked:
>Try using a shortcut to eclipse as follows:
>
>C:\eclipse\eclipse.exe -data c:\myworkspace -vm
>c:\j2sdk1.4.2_01\jre\bin\javaw
>
>This will put your project files in c:\myworkspace (create that directory
>first). This seems to work best for me, I didn't have much luck with the
>default project directory.
Don't know why this fixed it - perhaps something to with recreating the
workspace after the initial install. Mike said he had a similar problem,
so it's not just me ;). Maybe it's something fairly specific to do with
system setup that causes it. FYI I'm running Win2k, and the directory I
specified with the -data switch was on a different logical drive to
Eclipse.
Thanks Mike!
Leo
Darin Wright wrote:
> We are confident that debugging works :-) Have you tried a simple "hello
> world" program to ensure things are not working? You should ensure that a
> "debug view" is open in the debug perspective, and that the launch actually
> appears in the view, in debug mode. Other than that, we need more specific
> steps to reproduce the problem, since debugging is definetly working at this
> end.
> Darin
> "Leo" <leo@raceoddity.net> wrote in message news:bt7h6d$kj$1@eclipse.org...
> > Hi all,
> >
> > I'm an eclipse and Java newbie coming from a C++ background and I'm pretty
> > impressed with Eclipse so far, but I'm having trouble getting the debugger
> > to work. My 'Run' command works fine, but hitting Debug for the
> > appropriate project connects a console on a port but then just sits there
> > - breakpoints don't work, and the app doesn't start up. Can someone
> > suggest what I'm doing wrong? Do I need to pass a switch into the compiler
> > to enable debug info? I'd have thought eclipse would do that by default. I
> > can start multiple debug session consoles, none of which do anything. The
> > log file appears not to be affected, indicating no actual error has
> > occurred.
> >
> > I'm using Eclipse 2.1.2 and j21.4.2
> >
> > Thanks
> >
> > Leo
> >
|
|
|
Powered by
FUDForum. Page generated in 0.24177 seconds