To enable debugging:
-
Goto Project->HelloWorld Properties
-
On the left expand "Configuration Properties"
-
Expand "C/C++"
-
On the left, Select "General"
-
On the right, change "Debug Information Format" to "Program Database For Edit And Continue (/ZI)"
-
On the left, Select "Optimization"
-
On the right, change "Optimization" to "Disabled (/Od)"
-
On the left, expand "Linker"
-
On the left, select "Debugging"
-
On the right, change "Generate Debug Info" to "Yes"
-
Click ok
-
Set your breakpoints
-
Rebuild your application
Also when running your application use Ctrl+F5 to build and run it, this keeps the console window open long enough for you to see your output.
网友评论