panicinc / icarus

Swift, C, C++, and Objective-C Support for Nova
MIT License
69 stars 5 forks source link

Send stdin input to lldb debugger not responding #2

Closed Goooyi closed 10 months ago

Goooyi commented 1 year ago

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 commented 10 months ago

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: https://github.com/microsoft/debug-adapter-protocol/issues/216)