# Compilation switch to avoid the debug console under Windows?

**URL:** <https://forum.crystal-lang.org/t/compilation-switch-to-avoid-the-debug-console-under-windows/5356>\
**Category:** Help & Support\
**Created:** [February 9, 2023, 6:43pm UTC](https://forum.crystal-lang.org/t/compilation-switch-to-avoid-the-debug-console-under-windows/5356 "2023-02-09T18:43:38Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![konovod](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.crystal-lang.org/konovod/32/229_2.png) [@konovod](https://forum.crystal-lang.org/u/konovod)\
**Post date:** [February 10, 2023, 10:07am UTC](https://forum.crystal-lang.org/t/compilation-switch-to-avoid-the-debug-console-under-windows/5356/3 "2023-02-10T10:07:35Z")

</div>

Actually, the answer is not far away: [How to receive different kinds of parameters in main function(eg `winMain`) - #4 by HertzDevil](https://forum.crystal-lang.org/t/how-to-receive-different-kinds-of-parameters-in-main-function-eg-winmain/5039/4)  
I’ve tried and yes, it works. Thank you @HertzDevil !

---

_[View the full topic](https://forum.crystal-lang.org/t/compilation-switch-to-avoid-the-debug-console-under-windows/5356)._
