... no one having an idea ? :(
Compilation from C::B is working properly (by using my existing makefile), but I'm unable to debug (either with a 'Compiling: failed' message or a 'Can't debug such a target' message)!
I really would like to use C::B to edit and debug, so if someone has any idea on how to create such a project, it would be really helpful to me.
The problem lies in the debugger trying to make sure everything is built before debugging so that you 're actually debugging an up-to-date version of your code.
When you get this:
Selecting target: default
Compiling: failed
Aborting debugging session
what is printed in the Build Log?
Thank you very much for the suggestions, guys!
what is printed in the Build Log?
Well, the debugger is starting now.
In fact, the Makefile autogenerated by qmake didn't contain a 'default' rule, but only 'debug' and 'release' rules. ;)
I renamed the 'default' rule to 'debug' in C::B, and the debugger started!
However, now, I'm having the following problem:
Starting debugger: done
Adding source dir: Z:\qt_applications\current\qt\
Adding file: Z:\qt_applications\current\qt\qt_app.exe
Changing directory to: Z:/QT_APP~1/current/qt
ðò: No such file or directory.
error
error
The debugger seems to be started anyway (Debug - Debug command is grayed, and Debug - Stop debugger is enabled), but I can't use any debug commands.
Any idea on where these 'No such file or directory' and 'error' messages come from?
After having a look at http://cvs.sourceforge.net/viewcvs.py/codeblocks/codeblocks/src/plugins/debuggergdb/debuggergdb.cpp?view=markup ,
seeing how the 'Changing directory to:' was displayed in DebuggerGDB::Debug(), I tried to specify 'Execution working dir' to '.', to skip this directory change.
But I always get the following:
Selecting target: debug
Compiling: done
Starting debugger: done
Adding source dir: Z:\qt_applications\current\qt\
Adding file: Z:\qt_applications\current\qt\qt_app.exe
¤ó: No such file or directory.
error
error
So it seems the problem occurs later, and is in no way related to the working dir.