-
Notifications
You must be signed in to change notification settings - Fork 119
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
Code-Debug(GDB) no longer stop when program asks for input, but there's no input #141
Comments
uh wow this shouldn't happen, nothing even changed there, what's the input if you read a string |
that's a command the extension sends, I will look into it |
ref @LeszekSwirski |
Looks like a weird interaction between gdb async and programs reading stdin maybe? |
well it should never write to the process stdin because of the special prefixes though, but that could be it |
Maybe there's some unlucky stdin flushing? |
It seems need set terminal argument like this |
this is actually the same issue as #262, closing it in favor of it as it contains the "technical reasons for it". And yes: as long as the terminal gets an own pty instead of using GDB console everything works as expected (my personal preference would be to have all program input/output in a new "Terminal" within vscode be default). |
Both my windows and mac have the problem.
![image](https://user-images.githubusercontent.com/28442838/37835200-9500bec6-2eea-11e8-9a1c-053c03dcd1dd.png)
In this situation, the program wants to read number for n. But I didn't write anything into the debug terminal. So instead of stopping at that scanf line and wait for input like it did in 0.21.0, code-debug just skip it. And after that, some strange value is given. (Causing my later part to RE)
However, everything is right when I've put freopen at the beginning and prepare for the input.
The text was updated successfully, but these errors were encountered: