I work with visual studio 2015 community, on win7. Since my program reads a lot of files which are located in another folder, I generate the exe and copy the executable there.
The output window exits almost as soon as it shows up, so I cannot see what's going on. How can I solve this problem? I see some suggestions how to stop c++ console application from exiting immediately, but:
- getchar() and system("pause") do not help.
- I cannot run directly in visual studio, because input files are not available in the path of the executable.So, I don't think breakpoint works for me.
What's more, I have tried copying all the files to the same folder as the exe (myproject\Debug\myproject.exe), but after that, when I run, F5 or Ctrl+F5, it says debug assertion fails.