Guys, I have a come up against a problem which is most likely very easy to fix but I have no idea how to do it. I'm trying to debug my "program" and I'm getting:
OK, so, didn't help. I am doing something wrong obviously.
I've executed the command you provided in VS Code terminal and started debugging. Same error.
What am I doing wrong?
If you are using the rust-analyzer and LLDB plugins for VS Code, you can configure them to run your program in a terminal by adding something like this to your settings.json:
@mbrubeck Hi and thanks for trying to help.
I do have a launch.json in my project. So I did paste the configuration you posted. No luck. Still the same error. Or do I have to create somehow that settings.json?
In launch.json you can also just set the environment variable. For a configuration you can pass it an env variable and do something like ”env”:{“TERM”:”xterm”}. See this Stack Overflow answer for some more details
Hmm. It looks like the VS Code extension is redirecting the program's stdio to the terminal window, but not actually giving the program full access to the terminal's TTY.
You could instead launch the program manually in an external terminal, and then add an lldb configuration in launch.json to attach to the running process.