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

[qttest] break into debugger on test failure

XMLWordPrintable

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

      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

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

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

              Created:
              Updated:

                There are no open Gerrit changes