Print debug info on top screen

If you want to easily print debug info with iprintf on the top screen of your nds, copy and paste the following code right above where you want to begin debugging:

videoSetMode(MODE_0_2D);
PrintConsole topScreen;
consoleInit(&topScreen, 3,BgType_Text4bpp, BgSize_T_256x256, 31, 0, true, true);
consoleSelect(&topScreen);
iprintf(“\n\n\tHello DS dev’rs\n”);

Advertisements

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: