jiapei100 wrote:QMAKE_CFLAGS_RELEASE = -g $(shell --cxxflags --unicode=yes --debug=yes)
QMAKE_CXXFLAGS_RELEASE = -g $(shell --cxxflags --unicode=yes --debug=yes)
The lines above, are making no sense. It has NOTHING to do with QT
this has nothing to do CXX**DEBUG**.
The .pro file is just an intermediate phase to generate the makefile. If you get a -g option in the compilation (and you DO have it, according to the output you posted it earlier) you should be able to debug your code. If you can't -
it is a gdb problem
jiapei100 wrote:It seems no matter how I specify "debug", including
the $shell command is a Makefile command and it is
NOTHING to do with your failure to debug
Code: Select all
----------Build Started--------
C:\WINDOWS\system32\cmd.exe /c ""mingw32-make.exe" -j 2 -f "QtConsole_wsp.mk""
----------Building project:[ QtConsole - Debug ]----------
mingw32-make.exe[1]: Entering directory `C:/TestArea/QtConsole'
g++ -c -g -Wall -DQT_CORE_LIB -DQT_THREAD_SUPPORT -I"..\..\Qt\4.5.1\include\QtCore" -I"..\..\Qt\4.5.1\include" -I"." -I"." -I"..\..\Qt\4.5.1\include\ActiveQt" -I"." -I"..\..\Qt\4.5.1\mkspecs\win32-g++" -o Debug\main.o main.cpp
g++ -enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runtime-pseudo-reloc -Wl,-subsystem,console -o Debug\QtConsole.exe Debug/main.o -L"c:\Qt\4.5.1\lib" -lQtCored4
mingw32-make.exe[1]: Leaving directory `C:/TestArea/QtConsole'
----------Build Ended----------
0 errors, 0 warnings
This is the output of the 'Debug' compilation of the Qt project created by codelite. I can debug it no problems here. The problem is somewhere else.
jiapei100 wrote:
Hope all QT projects in CodeLite can be debugable ASAP.
They are, only your cant be debugged (for a reason not related to codelite)
I posted the answer on my first post: the problem is in gdb, not in codelite, but you refuse to accept it.
Please search google for Makefile and learn about it.
Please search google for compilation, compilers, and debugging - and learn about it.
In short: to be able to debug a program, all you need is to have '-g' in the compilation line (and I recommend to NOT having any optimization level) THATS IT.
The Makefile generated by codelite generating a proper makefile for you. The fact that you can debug a local variables, means that the Makefile is OK.
You should post your question in gdb mailing list or try google for the answer, since the problem is not within codelite
Attached is screenshot which shows that members *can* be viewed (the project was created by codeite's qt plugin)
qt-dbg.png
Eran
You do not have the required permissions to view the files attached to this post.