Java自学的网站(Java全栈工程师 | 以实例驱动学习 | how2j.cn) 解决办法: 使用System.Diagnostics.Debug.WriteLine(...) 一般使用和Console.WriteLine差不多。