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

QuickTest: Debug This Test does not start qmljsdebugger

    XMLWordPrintable

Details

    • Linux/X11
    • effb6133fd68e8c1bb2dcef8ce8b49ef83e15c8c (qt-creator/qt-creator/4.11)

    Description

      Hi,

      It looks like the qmljsdebugger is not attached to a QuickTest when launching it from the Tests panel with the Debug This Test menu entry (available from a right mouse clic)

       

      This problem could be easily reproduced following these steps:

      • create a new QuickTest from QtCreator interface (either qmake or cmake will do the same)
      • put a breakpoint at line 8 in this file:

       

      import QtQuick 2.0
      import QtTest 1.0
      
      TestCase {
           name: "test"
      
          function test_case1() {         
              compare(1 + 1, 2, "sanity check");   
              verify(true);     
          }
      }
      
      

       

      • Click on Debug This Test in the Tests Panel
      • The debugger does not stop on the breakpoint

       

      Note: When using Start debugging of startup project, it works fine.

      Note 2: A basic c++ gtest actually works too when launching it with Debug This Test

       

      Have a nice day,

       

       

      Attachments

        For Gerrit Dashboard: QTCREATORBUG-23709
        # Subject Branch Project Status CR V

        Activity

          People

            cstenger Christian Stenger
            ebarentin Evan Barentin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes