
For each configuration, the program arguments can be changed via the "Arguments" tab on the Run dialog, accessible via the “Run…” menu or the run icon. You should add this for each run configuration.
That's it! The bad news is that now you'll see the nasty errors and exceptions that your application is generating. The good news is that that you're aware of them, you'll be able to track them down, fix them, and improve the quality of your product...