'QTCreator 4.11.0 on WSL1 does not hit breakpoints

QTCreator version: 4.11.0

Based on Qt 5.12.8

OS: Ubuntu 20.04 on WSL 1

I have a test suite using the QTestFramework which is driving a C++ dynamic library to test it.

  • Running the debug release normally is perfectly fine

For running the debugger:

  • If I try chose the "Run in Terminal" option, the program seems to hang forever
  • If I don't chose "Run in Terminal", it runs fine, but never hits breakpoints

I have tried to set breakpoints both in the test program as well as the library itself, but none are ever hit.

Both the test suite and library are being built in debug mode, not release.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source