Capture console output for debugging in VS?

后端 未结 6 474
说谎
说谎 2020-12-06 17:20

Under VS\'s external tools settings there is a \"Use Output Window\" check box that captures the tools command line output and dumps it to a VS tab.

The question is:

6条回答
  •  一整个雨季
    2020-12-06 17:56

    Maybe this will work for you: set a breakpoint on the close } in Main, and then look at the console window before it closes. You can even copy the text out of it if you need to.

    On every machine that I use for development, I configure my console window in a certain way, which happens to make this approach work better:

    1. Run cmd.exe
    2. ALT-SPACE, D
    3. In Options, enable QuickEdit mode.
    4. In Layout, set Buffer Height to 9999
    5. Click OK
    6. Exit the CMD window.

提交回复
热议问题