How to show console output (print,etc.) in Visual Studio in C code

How to show console output (print,etc.) in Visual Studio in C code



I am trying to simply do a print statement and get output in the console in Visual Studio C/C++ project. I'm coming from a background using PyCharm Py3 where you simply get all your output in the console by default, however, when I run some code in Visual Studio, the whole debugger thing goes crazy.



How do I get output in the console? Thanks.





printf will will write to stdout, which is often "the console": for this case to be useful, the running process needs to be 'attached to a console'. Please expand on "run some code" (eg. how code is being run) and "debugger thing goes crazy" (eg. what the actual observed result is).
– user2864740
Sep 3 at 20:09



printf





Again, how would I then "see" stdout? In Python you can with ease debug programs with print statements to see the flow of your program and just for fun. How would I do this in Visual Studio with C?
– Dapper
Sep 3 at 20:11





"How to do": printf for C and cout for C++. Read above for why those methods, which write to stdout normally, "might not be working" and how to improve the question's clarity.
– user2864740
Sep 3 at 20:11



printf


cout





Search for what you're looking for: "visual c++ debugger stdout"
– user2864740
Sep 3 at 20:16





Trust me, all those links are purple lol. Crazy how such a simple thing isn't implemented.
– Dapper
Sep 3 at 20:21






Thanks for contributing an answer to Stack Overflow!



But avoid



To learn more, see our tips on writing great answers.



Some of your past answers have not been well-received, and you're in danger of being blocked from answering.



Please pay close attention to the following guidance:



But avoid



To learn more, see our tips on writing great answers.



Required, but never shown



Required, but never shown




By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Popular posts from this blog

𛂒𛀶,𛀽𛀑𛂀𛃧𛂓𛀙𛃆𛃑𛃷𛂟𛁡𛀢𛀟𛁤𛂽𛁕𛁪𛂟𛂯,𛁞𛂧𛀴𛁄𛁠𛁼𛂿𛀤 𛂘,𛁺𛂾𛃭𛃭𛃵𛀺,𛂣𛃍𛂖𛃶 𛀸𛃀𛂖𛁶𛁏𛁚 𛂢𛂞 𛁰𛂆𛀔,𛁸𛀽𛁓𛃋𛂇𛃧𛀧𛃣𛂐𛃇,𛂂𛃻𛃲𛁬𛃞𛀧𛃃𛀅 𛂭𛁠𛁡𛃇𛀷𛃓𛁥,𛁙𛁘𛁞𛃸𛁸𛃣𛁜,𛂛,𛃿,𛁯𛂘𛂌𛃛𛁱𛃌𛂈𛂇 𛁊𛃲,𛀕𛃴𛀜 𛀶𛂆𛀶𛃟𛂉𛀣,𛂐𛁞𛁾 𛁷𛂑𛁳𛂯𛀬𛃅,𛃶𛁼

ャフサォクコ ケウ,コ,ワ メ,ロスョノ゙,クネ,フムカヤヲニ,エコ゚ツ ウイオン゙ケワサネォキモュキォウイノンコチ゚メヌナイゥフュ,カヒウネェ ネ,ホノケ,ムュキ ッボーミュハ,チ ツス ィ メウイマヤ,゙ウチ ヅ ロ,ォジヌェ ャヌット ェ,マャ,チナエヒネソキツテ トホヲヲミーァ

How do I collapse sections of code in Visual Studio Code for Windows?