Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'\n' inside output discarded #106

Open
Zhangwen-Zhiyuan opened this issue Apr 25, 2024 · 0 comments
Open

'\n' inside output discarded #106

Zhangwen-Zhiyuan opened this issue Apr 25, 2024 · 0 comments

Comments

@Zhangwen-Zhiyuan
Copy link

Describe the bug
When debugging a program that outputs strings containing '\n', the output is split at each '\n'. If the output includes multiple consecutive '\n', these newline characters are discarded.

To Reproduce
If debugging a C++ program with a statement like std::cout << "aaa\n\n\n\n\nbbb\n\n\n" << std::endl;, pygdbmi presents two separate output messages containing "aaa" and "bbb", respectively. The information regarding the quantity of '\n' between them is not retained.

Expected behavior
The '\n' characters should be preserved as-is within the program's output.

OS: Ubuntu 18
pygdbmi version (pip freeze output): 0.11.0.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant