Closed hacke2 closed 3 years ago
Why the ptr is null? Is this exception related to my container environment?
Since it's your internal IDE, you are in a better position to know, I think :)
@vadimcn Can you give me a hint?😹
Honestly, I've no idea. ttyname
is not supposed to fail unless the process is running detached from a TTY, which is unlikely in this case.
Try compiling a simple program that only calls ttyname and prints result, see if that fails too. If so, what's the error code in errno?
Thanks, this is my container system problem.
OS: Ubuntu 20.04.2 VSCode version: Internal IDE, based on vs Code 1.44.2 Extension version: 1.6.2 Compiler: 1.53.0-nightly Build target: x86_64-linux.vsix
When I Debug with Codelens,the terminal will execute
/xxx/vscode-lldb-1.6.2/adapter/codelldb terminal-agent --port=37818
And It will throw a error but still hit the breakpoint:I found to the source code:
Why the ptr is null? Is this exception related to my container environment?