Lev Nikulin
Lev Nikulin

Reputation: 9

C++ debug with gdb in windows

I have win11 PC with vscode and msys2 installed After that I installed mingw compiler and gdb in msys2 mingw environment, added binaries to path A succeded compiling my program, but i have problems with debug: I want it to run in integrated terminal, but it outputs everything in debug console. When i set externalconsole to true, it's ok, but i want to use integrated

I looked into docs and there is "console" : "integratedTerminal", but when i try that, vscode says "console property is not allowed"

I also tried "awoidWindowsConsoleRedirection", but it did nothing

I want debug mode to work like on my ubuntu pc: debugger messages in debug console, cin and cout taken from my integrated terminal

UPD: i have no idea why, but i got it work by setting terminal to powershell instead of cmd. For some reason, i previously switched to cmd and looks like it doesn't support debug and unicode symbols in output.

Upvotes: 0

Views: 55

Answers (0)

Related Questions