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

When debugging with CDB, text printed to stdout or stderr doesn't show up

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Out of scope
    • Icon: Not Evaluated Not Evaluated
    • None
    • Qt Creator 4.2.0-beta1
    • Debugger

      This surfaces when running the tests/manual/debugger/simple test. It tries to print text to stderr, stdout, std::cerr, std::cout from various places. This works when running without debugger:

      Starting D:\build-simple-5_7_msvc2013_32bit-Debug\debug\simple_test_app.exe...
      '00\u1e9e' true
      std::cout @@ 1
      std::cout @@ 2
      std::cout @@ 3
      std::cout <foo & bar>
      std::cerr 1
      std::cerr 2
      std::cerr 3
      std::cerr <foo & bar>
      Creator: Switch off magic autorun.
      qDebug() 1
      qDebug() 2
      qDebug() 3
      qDebug <foo & bar>
      SENDER:  qobject::Sender(0x90fc10, name = "Sender")
      "HiDu"
      3 4
      7
      in plugin test
      Test
      D:\build-simple-5_7_msvc2013_32bit-Debug\debug\simple_test_app.exe exited with code 0
      

      When running through the debugger (CDB in this case), significantly less text shows up on the console:

      Debugging starts
      '00\u1e9e' true
      Creator: Switch off magic autorun.
      qDebug() 1
      qDebug() 2
      qDebug() 3
      qDebug <foo & bar>
      
      Exception at 0x756edae8, code: 0xe06d7363: C++ exception, flags=0x1 (execution cannot be continued) (first chance) at d:\qtcreator-super-4.1\qtcreator\tests\manual\debugger\simple\simple_test_app.cpp:699
      SENDER:  qobject::Sender(0x6ff79c, name = "Sender")
      "HiDu"
      3 4
      Test
      Debugging has finished
      

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

            davschul David Schulz
            ulherman Ulf Hermann
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes