I am new to Intellij. In my project I successfully ran a class as an application by specifying the class and pressing run. When I try to debug it by pressing debug button I get a pop-up saying:
"Could not find the main class, program will exit!"
and in the console window it says:
Exception in thread "main"
I do have a main method (the program runs, afterall)
What could possibly be wrong?