-
Notifications
You must be signed in to change notification settings - Fork 6
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
Bind stdin? #12
Comments
@duzenko , would an exec-wrapper script suffice? Create the wrapper script:
Then, add a startup command to your configuration
|
@kensheldon maybe I'm doing something wrong but for me it does not read from the stdin this way |
If you're running on windows, you may need a different shell for your wrapper script. You could try CMD or PowerShell. I would expect git-bash would suffice, but maybe not. The exec-wrapper functionality is a feature of GDB. You can test this directly in GDB, without VSCode. Build your program as usual, but then open your favorite shell (bash shell, cmd shell, powershell, etc), and use GDB to run the program. Once it works in GDB, you can figure out the proper launch configuration for vscode and beyond-gdb. |
I'd think an average user of vscode doesn't really use gdb directly and does not have experience with it - at least this is the case with me. If you don't have other suggestions then of course me neither. |
You can write a pause in your program and run it . |
Sounds like a feature gap in your plugin really |
How do I bind a file to standard input stream?
E.g. same as if I run from command line
So that all reads from stdin actually read from that file rather than keyboard input.
The text was updated successfully, but these errors were encountered: