MinGW gdb TUI 在 Windows 上不可靠。 “输出不是终端时无法启用 TUI”

问题描述 投票:0回答:0

我想在 Windows 10 的 cmd 中使用 gdb。
当我启动 gdb 并输入

tui enable
sometimes 工作但主要是它打印
Cannot enable the TUI when output is not a terminal
.

我还观察到版本(例如

GNU gdb (GDB) 10.2
)有时是彩色印刷的,有时不是。但我不知道这是否与问题相关。
我也尝试过 Powershell 和 cmd-legacy,但它表现出同样的不一致行为。
我没有找到任何可以解释这种行为的终端选项。

我也找到了this open post,但我认为我的问题是不同的,因为它有效,但不可靠。

windows cmd gdb mingw
© www.soinside.com 2019 - 2024. All rights reserved.