Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-33698

Debugging a target builds of the whole project instead of the target

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Not Evaluated Not Evaluated
    • None
    • Qt Creator 18.0.0
    • None
    • Linux/Wayland

      I  a CMake project with multiple targets and multiple executable binaries.

      When I try to debug a specific executable, I can change the "Run" target on QtCreator on the left side.

      When I now use the "Start Debugging of startup project" button, qtcreator will build every target (internally calls ""/usr/bin/cmake" --build <path>/build --target all").

      I would expect, that only the startup target is being build and not all targets when I press the "Start Debugging" button. (I would expect a call like ""/usr/bin/cmake" --build <path>/build --target <my_binary_i_want_to_debug>")

      That everything is being build would be imo just be the expected result when I press on the "Build project" button.

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            cadam Cristian Adam
            matthiasmo Matthias Möller
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes