catchorg / catchorg/Catch2

stdout doesn't print to console in real-time while debugging

Open
#1,902 2 comments 7 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
21.5k
Forks
3.5k
Avg merge
3d 16h
Merged PRs (30d)
2

Description

Hi,

I'm using Catch2 to do unit testing. When I use gdb to debug the test case, std::cout doesn't print to console immediately, it seems the logs are redirected somewhere and are printed all together when the test case finishes. The issue is quite similar to #49. But I didn't find a solution. Could share your solution to the problem? @philsquared Thank you!

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.