William
William

Reputation: 976

Cannot step into Qt source

I create a Qt project, build the project with "msvc2017-32bit" kit, and debug the project in Qt Creator.

The problem is I can not step into the Qt functions. I can stop at break-points in my own source code, but cannot stop at break-points in files in Qt src directory. When I step into a Qt function, the message "Stopped: "end-stepping-range"" appears by the debugging buttons. Why could this happen?

I installed the debugger tools for Windows in Windows 10 SDK, but the problem persists.

Upvotes: 3

Views: 1118

Answers (3)

slayer
slayer

Reputation: 652

I run Qt on Windows, although a different compiler than you, and you can set the debug target paths by going to Tools->Options->Debugger. From here you can click a button Add Qt sources.... Below is an image of my setup and this works for me.

enter image description here

Upvotes: 1

Adriel Jr
Adriel Jr

Reputation: 2681

Follow the instructions from Qt here.

For Mac, the instructions are:

  • In Projects->Build&Run->Run->Run Settings->Run, select "Use debug version of frameworks".

There are different instructions for Windows, but I have not tried it yet.

You probably also need to have QT sources installed.

Upvotes: 2

user13088490
user13088490

Reputation:

Go to the MaintenanceTool and check if Qt Creator 4.15.2 CDB Debugger Support and Debugging Tools for Windows has been selected.

Upvotes: 1

Related Questions