[Qt-creator] Debugger hangs when stepping into range loop

André Pönitz apoenitz at t-online.de
Thu Jun 4 21:30:48 CEST 2015

On Tue, Jun 02, 2015 at 09:29:36AM +0200, Wojciech Razik wrote:
> Hi all,
> I have problem with hanging gdb debugger inside QtCreator. When I'm in
> "Debug" mode, set a breakpoint and press F10 for step forward, gdb stops
> responding and I need to kill it manually. Do anyone have idea what is the
> problem?

Can you please attach the debugger log (contents of right pane of
Windows->Views->Debugger Log), either here, or to a report at
> Of course stand-alone gdb version works perfectly with the same binary file.
> Maybe is it something wrong with Debugger settings?
> Example (any loop):
> --->O for (auto& someClass: dupa)
> {
> ....
> }

I can't reproduce this with e.g.

    #include <vector>

    struct Foo { int z; };

    int main()
        std::vector<Foo> f = { {1}, {2}, {3} };
        for (auto & x : f)

GNU gdb (Ubuntu 7.8-1ubuntu4)
gcc-4.9.real (Ubuntu 4.9.1-16ubuntu6) 4.9.1


More information about the Qt-creator mailing list