http://blog.163.com/chenpeijie0_0/blog/static/1830945712011780275118/
When using VS2010 to write programs, often encountered: Want to see the output, but prompt command is always a flash, what is the best solution? It seems to be related to the 64-bit Win7 system.
The following solutions have been found online:
① the best solution so far: (from: csdn Forum, Sina Blog)
Run by:Ctrl+f5
(Root cause: The place where the program outputs is the system, not the vs2010.) The result of the button you click (or press the shortcut key F5) is to start debugging. The command you want to execute is to start execution (without debugging).
Workaround 1: Press CTRL + F5 directly.
Workaround 2: Add the toolbar. The steps are as follows:
1). Double-click an empty area on the toolbar to jump to the Customize Toolbar window. To the command page find the toolbar, build, view the commands inside, including at least "Start (not debugging)", "Build Selection", "Build Solution" three items, if missing, click on the right side of add command-and-debug Add.
2). On the toolbar page, tick "build". Click on the "Start Without Debugging" button just added on the toolbar later. )
② Set Breakpoints: When you set a breakpoint in the last statement of the program, running to the last command will not disappear.
③ add a statement before the program finishes executing: System ("pause");(from: Baidu knows)
This method may be affected by the different programs. Programming threads, for example, can result in inconsistent results.
④ is not a way to approach: (From: http://hi.baidu.com/%D6%F3%D2%BB%B1%AD%B2%E8/blog/item/0302b3188ef42f5143a9adf9.html)
This is vs2010 advanced version of, familiar with it, you write a HelloWorld will appear this cannot find or open the PDB file, is not found any problem.
This solves: tool-"option-" "Debugging-" symbol
The next step is to select Microsoft, then confirm, rewrite a program, what can you see if it's okay? Don't you find that compiling is slow?
Do you see the symbol cache in this directory? Find a copy of this directory and find a place to store it. The next step is to get rid of the Microsoft symbol server, if not to go, every time from the Microsoft download is cumbersome, has been cached, we can take advantage of these caches, so that the perfect solution.
Vs2010,cannot Find or open the PDB file