Videos
On my linux machine, I use gdb and it's great, but on my windows machine, gdb continuously crashes. I can't install an IDE for reasons, so I'm limited to command line options.
Additionally, I cannot use WSL2
No idea what MinGW Installation Manager is or why you were trying to use it when you are using msys2.
To install mingw64 gdb in msys2, you really just need to:
pacman -S mingw-w64-x86_64-gdb
You should probably run pacman -Syu twice before you run the above though.
As you can see, if you need other mingw64 builds of programs (toolchain programs or not), their package names would be prefixed with mingw-w64-x86_64-. There's also the package group mingw-w64-x86_64-toolchain which you can pacman -S --needed instead to get a somewhat full toolchain.
You may also want to use the urt64 toolchain instead. See this page for more details. (You can e.g. pacman -Ss gdb to find out what's the package name prefix for each of the variants.)
Note that to use any of the toolchain (or any non-msys2 builds of programs), you should use the corresponding "launcher" of shell/terminal instead of msys2.exe.
Check by restarting your PC, if it didn't work download the *.gdb file from its website (I guess it's a *.rar or some file), now update with MSYS and restart. It have solved for me, I guess it helps....
VS Code has a portable mode. You just need to config the path to the GDB executable and install required extensions
See Windows debugging with GDB for more information
A gdb GUI is essentially just an IDE. There are many portable IDEs around there. One of them is the famous Code::Blocks which has nosetup/portable releases and even includes a GCC compiler inside in case you need
Debugging with Code::Blocks
Debugger:
- Interfaces GNU GDB
- Also supports MS CDB (not fully featured)
- Full breakpoints support:
- Code breakpoints
- Data breakpoints (read, write and read/write)
- Breakpoint conditions (break only when an expression is true)
- Breakpoint ignore counts (break only after certain number of hits)
- Display local function symbols and arguments
- User-defined watches (support for watching user-defined types through scripting)
- Call stack
- Disassembly
- Custom memory dump
- Switch between threads
- View CPU registers
Code::Blocks / Features