Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / Tools / January 2005

Tip: Looking for answers? Try searching our database.

Eclipse and CDT: Debugger problem

Thread view: 
Roman Schlegel - 27 Jan 2005 12:55 GMT
I have Eclipse 3.0.1 with CDT 2.0.0 on WinXP with MinGW and Cygwin.
Everything works except the Debugger. I get the following message:

Failed Launching CDI Debugger
org.eclipse.cdt.debug.core.cdi.CDIException: Unable to set working
directory: /cygdrive/c/Eclipse/workspace/Test2: No such file or
directory.
org.eclipse.cdt.debug.mi.core.cdi.RuntimeOptions.setWorkingDirectory(RuntimeOptions.java:106)
org.eclipse.cdt.launch.internal.LocalCLaunchConfigurationDelegate.launch(LocalCLaunchConfigurationDelegate.java:95)
org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:569)
org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(DebugUIPlugin.java:788)
org.eclipse.debug.internal.ui.DebugUIPlugin$6.run(DebugUIPlugin.java:955)
org.eclipse.core.internal.jobs.Worker.run(Worker.java:66)
 Unable to set working directory:
/cygdrive/c/Eclipse/workspace/Test2: No such file or directory.
org.eclipse.cdt.debug.core.cdi.CDIException: Unable to set working
directory: /cygdrive/c/Eclipse/workspace/Test2: No such file or
directory.
org.eclipse.cdt.debug.mi.core.cdi.RuntimeOptions.setWorkingDirectory(RuntimeOptions.java:106)
org.eclipse.cdt.launch.internal.LocalCLaunchConfigurationDelegate.launch(LocalCLaunchConfigurationDelegate.java:95)
org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:569)
org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(DebugUIPlugin.java:788)
org.eclipse.debug.internal.ui.DebugUIPlugin$6.run(DebugUIPlugin.java:955)
org.eclipse.core.internal.jobs.Worker.run(Worker.java:66)

With cygwin I can cd to /cygdrive/c/Eclipse/workspace/Test2.
Some statements in the groups say that this means the debugger is
outdated. But I have GDB 5.2.1 from MinGW, which should be good.

any clue is welcome :-)
Roland - 27 Jan 2005 14:17 GMT
> I have Eclipse 3.0.1 with CDT 2.0.0 on WinXP with MinGW and Cygwin.
> Everything works except the Debugger. I get the following message:
[quoted text clipped - 3 lines]
> directory: /cygdrive/c/Eclipse/workspace/Test2: No such file or
> directory.
[snip]
> With cygwin I can cd to /cygdrive/c/Eclipse/workspace/Test2.
> Some statements in the groups say that this means the debugger is
> outdated. But I have GDB 5.2.1 from MinGW, which should be good.
>
> any clue is welcome :-)
Shouldn't you have used a _Windows_ path for the working dir? I don't
know the CDT plugin, but is there a way to specify the work dir for the
debugger?
Since you're running Eclipse on a Windows platform, Eclipse only knows
_Windows_ paths and a Unix/Cygwin path is likely to fail.

Signature

Regards,

Roland de Ruiter
  ___      ___
 /__/ w_/ /__/
/  \ /_/ /  \

romanschlegel@hotmail.com - 31 Jan 2005 17:04 GMT
> Shouldn't you have used a _Windows_ path for the working dir? I don't

> know the CDT plugin, but is there a way to specify the work dir for the
> debugger?
[quoted text clipped - 8 lines]
>   /__/ w_/ /__/
> /  \ /_/ /  \

Many thanks for your answer.
For the working dir of Eclipse, I used C:\Eclipse\workspace, but how to
set the workdir for the CDT plugin, I don't know.
It might be a problem because I installed Cygwin and MinGW in parallel.

For my Installation I found a way to debug properly. Just had to choose
a different Debugger in the debug configuration:
[Run] -> [Debug...] -> Test2 -> Debugger -> (Choose "GDB Debugger"
instead of "Cygwin GDB Debugger") -> [Debug]
Now, it works perfectly :-)


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.