1

I have a graphical application. When I open the .exe it should not show a console. When I run it from the console I want console output.

At first, I always got a console window in addition to the application window. I found this annoying, so I set #![windows_subsystem = "windows"]. Now the console window is gone when I start the application, but also I don't get any logs when running it from console.

How can I get both?

Shepmaster
  • 388,571
  • 95
  • 1,107
  • 1,366
piegames
  • 975
  • 12
  • 31
  • 1
    See also [How would i run a Rust program without a window only when it's in release mode](https://stackoverflow.com/q/68238935/155423); [How to make a program that does not display the console window?](https://stackoverflow.com/q/29763647/155423) – Shepmaster May 10 '22 at 19:54
  • 1
    Duplicate of [How do I have a hidden console when using windows_subsystem?](https://stackoverflow.com/q/64346513/155423) – Shepmaster May 10 '22 at 19:55

0 Answers0