Windows 上入口默认 console 子系统,运行时自动创建控制台窗口。 按 debug_assertions 分流:release 用 windows 子系统(纯 GUI,无 控制台;eprintln/tracing 输出丢弃),debug 保留 console 子系统 (日志直接可见)。程序化验证:release 无 ConsoleWindowClass 窗口,debug 保留控制台连接。
Windows 上入口默认 console 子系统,运行时自动创建控制台窗口。 按 debug_assertions 分流:release 用 windows 子系统(纯 GUI,无 控制台;eprintln/tracing 输出丢弃),debug 保留 console 子系统 (日志直接可见)。程序化验证:release 无 ConsoleWindowClass 窗口,debug 保留控制台连接。