Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » how to set the (win32) PATH in debug configuration?
how to set the (win32) PATH in debug configuration? [message #234352] Fri, 29 May 2009 05:49
Eclipse UserFriend
Hello cdt-Group,

I have the problem to debug a C++ Program which uses a PostgresQL-DLL.

Environment:
WinXP Prof SP3 32bit
eclipse Ganymede 3.4.2
cdt 5.0.2
MinGW 5.1.4 / MSys 1.0

When I start debugging, I become an Error Dialog titled "MinGW gdb
Debugger", Message "Execution is suspended because of error", Detail
"You can't do that without a process to debug". I have discovered
that the program can't find the lippq.dll; when i set the path to
the dll in system environment, the debugger runs.

For run configuration I only have to set the PATH in
Launch Configuration -> TAB Environment ->
Variable "PATH"; Value "${workspace_loc}\project\win32\dll
and it runs.

But this value isn't evaluated when starting the debugger, as one
can see when printf'ing the result of getenv("PATH") on console:
+ run without debugger: "PATH=C:\cework\project\win32\dll"
- with debugger: "PATH=C:\java\...;C:\WINDOWS\system32;..."

In other words: after start with debugger the path is set to the
normal windows system path, only prefixed with java bin directories,
but *not* with replacement with the Valie of the PATH Variable in
the Launch Configuration.

Is this a known behavior (i haven't found in bugzilla)?

Do you know how it can be fixed without the workaround to set the
PATH in System or .bat-File before starting eclipse?

Thanks in advance,
Detlef
Previous Topic:Windows IDE questions
Next Topic:Running eclipse-cpp-ganymede-SR2-win32 on Vista x64 with x64 version of JRE
Goto Forum:
  


Current Time: Thu May 08 01:28:20 EDT 2025

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

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

Back to the top