[Enhancement] Writing to stdin while debugging
Is there a way to capture stdin? For example, when the console program asks user for input, and user needs to write or select an option.
Of course the workaournd is to run the program in terminal and then attach to it to debug it. But this extension is very handay and I was looking if this would be possible to do.
🤔
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
I'm sorry if I wasn't clear. The issue I am trying to get across is, if there is a way to have access to standard input of the program under debug from the visual studio to simplify the debugging workflow of the program that requires input.
At this time, there is not. The current workaround we've been using for input parameters is to manually massage it during a breakpoint.
In a future release, I will be adding the ability to modify the launchSettings.json file and supply commandLineArgs. Of course, apps would have to have a "shim" to know this is for debugging only and to auto-input.
Would this suffice, or is there something else that you were thinking of?