Hi everyone,
so I've been banging my head against a wall for the better part of two days now trying to solve the issue, I'd love to see if anyone has an idea how to fix this...
I compile
#include <stdio.h>
int main() {
printf("Hello from C++\n");
return 0;
}
with
g++ -O0 -g -o main ./main.cpp
and I debug it with
gdb ./main
set a breakpoint on main with break main , run the program with run...
And the program immediately runs to completion, the breakpoint is never hit. The same behavior if gdb is run via clion, vscode or nvim-dap.
However, if i chsh back to bash or zsh or if i use lldb instead of gdb, behavior is as expected, and vscode, clion and nvim-dap all work again.
Does anyone know how to get gdb working in Powershell, because I really like pwsh, even on linux...
Thanks