Andre

Thanks for your reply.  The problem was not the “-g” flag as I had “CONFIG += 
debug” and was able to load the binary in gdb and debug by stepping through 
source code (all the symbols are loaded properly).

I did some more testing after sending the previous message. It seems that now I 
am able to step through the source code (without incurring the disassembly 
window) if I start qtcreator in the project’s directory. For example, if my 
project is /work_dir/test/test.pro, then I have to start qtcreator in 
/work_dir/test and the debugging would work fine. This is kind of strange as I 
won’t be able to switch to other projects without closing qtcreator and debug.

HJ

From: [email protected] 
[mailto:[email protected]] On Behalf Of André P?nitz
Sent: Tuesday, November 16, 2010 1:20 AM
To: [email protected]
Subject: Re: [Qt-creator] Cannot step through source code with Qtcreator


On Monday 15 November 2010 19:21:58 ext Haipeng Jin wrote:
> Hi,
>
> I am learning to use qtcreator and encountered the following problem: when I 
> launch debugger in qtcreator, the disassembly windows always pops out. As a 
> result, I can only step through the disassembly code instead of the c source 
> code. Trying to close the disassembly window and switching to c source code 
> window does not help, as soon as I press F10 again, the disassembly window 
> shows up again. I tried to toggle the “Operate by instruction” setting, it 
> does not help either.
>
> I am running qtcreator 2.0.1 under Linux with Qt-4.7.0. The debugger is 
> default gdb.
>
> Any idea on what is happening?

This might be a build without debug information. Check whether there's a "-g"
present on the compiler command lines in the "Compile Output" pane. If it is,
send the debugger log ({Windows,Debug}->Views->Debugger, right pane).

Andre'

_______________________________________________
Qt-creator mailing list
[email protected]
http://lists.trolltech.com/mailman/listinfo/qt-creator

________________________________

No virus found in this message.
Checked by AVG - www.avg.com<http://www.avg.com>
Version: 10.0.1153 / Virus Database: 424/3258 - Release Date: 11/15/10
_______________________________________________
Qt-creator mailing list
[email protected]
http://lists.trolltech.com/mailman/listinfo/qt-creator

Reply via email to