[Qt-creator] Debugging a specific program in a project with subprojects

Petric Frank pfrank at gmx.de
Mon Jun 11 23:24:57 CEST 2018


Hello,

i have a (master-)project containing some sub-projects. Some sub-projects 
generate shared libraries other applications.

Running a specific application is easy: In the projects window use the right 
mouse button on a sub-project and select execute. But there is not menu item 
for debug. Am i mssing something.

My master *.pro file looks like this:
------------------ cut -------------------
TEMPLATE = subdirs

CONFIG += ordered

SUBDIRS = \
    shared1 \
    shared2 \
    app1 \
    app2 \
    app3
------------------ cut -------------------

If i simply go to the main menu and select debug the question is which one of 
the apps it will execute to debug ?
Followup: how to set the app to debug ?

The only way i found so far is to comment out the other two apps and run 
qmake.

kind regards
  Petric






More information about the Qt-creator mailing list