Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Output to console window  (Read 899 times)

0 Members and 1 Guest are viewing this topic.

Nixia

  • Newbie
  • *
  • Posts: 2
    • View Profile
Output to console window
« on: July 16, 2015, 03:24:12 pm »
Hey all,

I cant seem to find a way to output a debugging message to the console window (similar to system.console(string)). Is there a good way of doing this in VS2013?

Should I just use OutputDebugString in windows?

Thanks

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 10846
    • View Profile
    • development blog
    • Email
Re: Output to console window
« Reply #1 on: July 16, 2015, 03:43:06 pm »
std::cout << "Hello World?!" << std::endl;
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

Hapax

  • Hero Member
  • *****
  • Posts: 3357
  • My number of posts is shown in hexadecimal.
    • View Profile
    • Links
Re: Output to console window
« Reply #2 on: July 16, 2015, 03:52:20 pm »
Don't forget to:
#include <iostream>
I say this not because I expect you not to know this but because I find that I forget this line so often when adding temporary debugging output to a class.
Selba Ward -SFML drawables
Cheese Map -Drawable Layered Tile Map
Kairos -Timing Library
Grambol
 *Hapaxia Links*

Nixia

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: Output to console window
« Reply #3 on: July 16, 2015, 04:45:15 pm »
std::cout << "Hello World?!" << std::endl;

Brilliant Thanks.

Don't forget to:
#include <iostream>
I say this not because I expect you not to know this but because I find that I forget this line so often when adding temporary debugging output to a class.

Haven't done this for a while so I may have had to look that up. Thanks a lot :).