Visual studio 2010 exiting after program ends

前端 未结 8 651
甜味超标
甜味超标 2021-02-04 13:44

I\'m trying out Visual studio 2010 by compiling a C program. After it displays the solution in the \"DOS\" command window, the window is immediately closed. In Visual studio 200

8条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-02-04 14:34

    FWIW, the "Start Without Debugging" command works in VS2010 exactly the same way it does for me in previous Visual Studio versions (that is, for a console project the console remains open when the process terminates with a "Press any key to continue . . ." prompt).

    So, exactly how are you getting VS2010 to run your program? If you're using the "Ctrl-F5" shortcut, can you verify that Ctrl-F5 is bound to Debug.StartWithoutDebugging in "Options/Environment/Keyboard"?

    Also, can you try running your program using the menu ("Debug/Start Without Debugging")?

提交回复
热议问题