== long post, but oBFusCATed pls read
==
Ok, I can now build the library and the application in one project and it runs as it should. But now, I have this weird problem with the debugger.
Here’s the problem and results of the testing I already did:
Problem: when I start the debugger the terminal window does not start
My own testing:
1. Upgraded to CB 17.12
2. The project builds the library and the application without errors
3. The application runs fine outside CB
4. The application runs fine from within CB using “run” (CTRL F10). The terminal window starts, prints output and accepts input.
5. When I start the application in the debugger with “start/continue” (F8), it looks like it gets into a loop. I think it's waiting for input that doesn't come because of the missing terminal window. Only the “stop debugger” and “break debugger” buttons are clickable but they don seem to work.
6. Clicking “stop debugger” or “break debugger” gives the following msg in the debugger window:
“Trying to interrupt process with pid: 7349; child pid: 7349 gdb pid: 7343”.
When I kill -9 the last pid, the debugger stops.
5. When I start the application in the debugger with “run to cursor” (F4) to a point where no user input is yet required, I can F7 through it, but there is no terminal window.
6. My other projects that only build an application and no library run fine in debug mode, the terminal window starts normally.
Because everything else works, but for the debugger in this particular project that builds a library and an application I think I missed a correct setting somewhere?
Here is the output from the debugger window:
=======================
Active debugger config: GDB/CDB debugger:Default
Building to ensure sources are up-to-date
Selecting target:
ificonsole
Adding source dir: /home/marnix/XVAN 2.3.4/03 - ifi-xvan2-3-4/
Adding source dir: /home/marnix/XVAN 2.3.4/03 - ifi-xvan2-3-4/
Adding file: /home/marnix/XVAN 2.3.4/03 - ifi-xvan2-3-4/xvan/ificonsole
Changing directory to: "/home/marnix/XVAN 2.3.4/03 - ifi-xvan2-3-4/xvan"
Set variable: LD_LIBRARY_PATH=.:
Starting debugger: /usr/bin/gdb -nx -fullname -quiet -args "/home/marnix/XVAN 2.3.4/03 - ifi-xvan2-3-4/xvan/ificonsole"
done
Setting breakpoints
Debugger name and version: GNU gdb (Ubuntu 7.11.1-0ubuntu1~16.5) 7.11.1
Child process PID: 7434
=======================
The difference with my projects with only an application and no library is the last line with the child process.