Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-125487

[qttest] break into debugger on test failure

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • None
    • Testing: qtestlib
    • None

    Description

      qttest can throw an exception on test failures, but there is no way to break into a debugger automatically. this is a bit inconvenient, as one would configure the debugger to catch exceptions (and it may catch other exceptions that may be flying around).

      ideally we'd have functionality like `std::breakpoint` / `std::is_debugger_present`: and qttest would break on failure if the process is being debugged.

      possible implementation approaches are linked in the notes of:
      https://en.cppreference.com/w/cpp/utility/breakpoint
      https://en.cppreference.com/w/cpp/utility/is_debugger_present

      Attachments

        Issue Links

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

          Activity

            People

              macadder Jason McDonald
              timblechmann tim blechmann
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes