'Visual Studio cannot debug console application

In Visual Studio 2019 I was always able to debug a console application but now it gives the following error enter image description here

It seems it is having a problem with the command line arguments supplied. If I try with no command line arguments it just hangs.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source