|
|
|
Re: Main() is suspended upon debugging: Is this normal? [message #1739098 is a reply to message #1738965] |
Wed, 27 July 2016 13:59 |
Taro Kyo Messages: 8 Registered: July 2016 |
Junior Member |
|
|
Jonah Graham wrote on Tue, 26 July 2016 11:10A few things going on here that may help:
1) Breakpoint is inserted at main implicitly and automatically. If you want to disable that, go to the launch configuration an uncheck in the debug tab.
2) It looks like your code is compiled without debug information, e.g. you are using the Release configuration
3) Using system("pause") is unusual, how about just a printf/getc or similar instead of launching another program. On my machine (Windows64 with MSYS2) I have no pause available and the program exits fine, but there is an error message about the pause not being found.
- Thanks for this, and thanks to Marc for the wiki link.
- I only have one configuration by default, and that is "Release". I thought in the past, they will have 2 configurations, "Debug" and "Release". Or I was wrong the entire time?
- I added "system("pause")" in, is for checking to see why it stops at the first line of main(), and was wondering if it was my code or not. But, it is all moot now that I have #1 answered.
Now the last thing was the output in the Console tab. Is it normal for it to show a red "QUIT (expect SIGINT when unpausing)" message?
[Updated on: Wed, 27 July 2016 14:05] Report message to a moderator
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03368 seconds