Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

Marmalade SDK: Output Debug messages

If you want to Output Debug Messages in your output console in Visual studio, you can do it in two ways:

  1. Use standard C++ output stream cout
    cout<<"Your Message"<<endl;
  2. use the Marmalade  s3eDebug module: first include the header:
    #include "s3eDebug.h"
    then
    s3eDebugOutputString("Your Message");
    to display integers you have to convert them to C style strings first:
    int x=10;
    char buffer[10];
    //convert the int to a char array
    sprintf(buffer,"%d",x);
    s3eDebugOutputString(buffer);


This post first appeared on Learn Android, please read the originial post: here

Share the post

Marmalade SDK: Output Debug messages

×

Subscribe to Learn Android

Get updates delivered right to your inbox!

Thank you for your subscription

×