Starting my RE adventures with IDA Pro, I'm opening a windows .exe file in it. While debugging the file, the debugger runs fine and exits with a return 1 value: Debugger: process has exited (exit code 1). The problem is all this happens in a second! Before feeding the .exe to IDA Pro, I have tried to open it with double-clicking. The windows console shows itself and fades away in a glimpse; The only way I can get the .exe running with the console remaining open, is by the cmd. I guess IDA Pro debugger is simply exiting for the same reason the console fades in normal running the .exe! So I'm stuck with a .exe file running fine but I don't get the chance to debug it and monitor the flow of the program!
Seems like you did not add any breakpoints. By default no breakpoints are applied.
You can add a breakpoint on program entry (among other events) in the Debugger Options. In Debugger Options, check the box that says "Suspend on process entry point", or any of the other events available. Read more here:
Alternately, you can find a line of assembly and add a breakpoint on that line and the program will break once execution reaches that instruction.
Once a breakpoint is hit, you can step over each instruction, etc.
Are you opening a 32 or 64 bit .exe (cannot add this as a comment due to no enough reputation points)? If you are opening on 64 bit file with a 32 bit instance of IDA, you may encounter issues. If you're using the free version,there are limitations on what can be opened as stated here: https://www.hex-rays.com/products/ida/support/download_freeware.shtml
This question is similar to this other posting: IDA cannot launch debugger for 64-bit exe files