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

Send stdin input to lldb debugger not responding #2

Closed
Goooyi opened this issue May 23, 2023 · 1 comment
Closed

Send stdin input to lldb debugger not responding #2

Goooyi opened this issue May 23, 2023 · 1 comment

Comments

@Goooyi
Copy link

Goooyi commented May 23, 2023

I have a C code :

printf("What's your First Name?");
in = fgets(you.first_name, MAX_DATA - 1,stdin);

When I launch the dubber, and hit this line, the bulit-in dubbger wait for me to give input (still not hitting break point yet, so the process is still running), as seen here:
image
But when I type something the built-in dubbger shell is not responding when I type in and thing and hit "Enter",

Do I need to hit some shortcut or I' missing something?
Thanks

@logancollins
Copy link
Member

logancollins commented Sep 15, 2023

Sorry for the delay in answering this.

This isn't supported by the Debug Adapter Protocol at the moment. Debugged executables cannot have their stdin rerouted in a way that the IDE can send data to it without being routed through, for example, a terminal.

We'll continue watching this to see if something is added, but for the moment this is sadly not possible.

(See: microsoft/debug-adapter-protocol#216)

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

2 participants