Step-by-step debugging with Code::Blocks
Hi,
As a Delphi developer I'm used to debug my apps in a step by step way. I worked with Code::Blocks 2 years ago in a student project and I found it really easy to use. Today I'm using it to understand how Inkscape works and what methods are related to a specific work.
[image: usshot-148.png]
I'm posting here the Code::Blocks project that I'm using (it must be put in the "inkscape/src" directory): http://ftpmerou.free.fr/inkscape/codeblocks/Inkscape.cbp
The nightly (monstly?) build of Code::Blocks can be found here: http://forums.codeblocks.org/index.php/board,20.0.html
Note that it's no a replacement of the btool, you steel need it to create the config.h, the dist directory, and targets not included in the CB project (inkview, cxxtest, ...). Note that if a file is added/removed from the repository, you will have to add/remove it yourself from the CB project or wait for an updated project version. Note that the config.h needs to be moved the "inkscape/src" directory too. http://ftpmerou.free.fr/inkscape/codeblocks/config.h
If btool is working fine, you should not have any problem to build targets as paths are still the same but:
C:\devlibs can be changed in "Build Options" [image: usshot-145.png]
c:\mingw can be changed in "Settings" - > "Compiler and debuggers..." [image: usshot-146.png]
Finally, there is still one thing that I don't know how to realize in CB, so you may need to set a global var in your OS for pkg-config: [image: usshot-147.png]
And now you are ready, after building LIB target and EXE target, to start debugging the EXE target by pressing F8.
Yann.
participants (1)
-
Yann Papouin