gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

DS development > Emulator console

#163740 - sixmind80 - Fri Oct 10, 2008 3:51 am

Hi,

I've been using DeSmuME for emulating ds, but i found no consoles where i can debug my programs. is there any emulator that does have a console where i can output from my code? ie using the c/c++ standard output.

thanks

#163746 - hacker013 - Fri Oct 10, 2008 5:58 am

sixmind80 wrote:
Hi,

I've been using DeSmuME for emulating ds, but i found no consoles where i can debug my programs. is there any emulator that does have a console where i can output from my code? ie using the c/c++ standard output.

thanks


Code:

#include <nds.h>
#include <stdio.h>

int main(void) {
ConsoleDemoInit();

iprintf("You've 1 screen with a console now.");

return 0;
}

_________________
Website / Blog

Let the nds be with you.

#163757 - gauauu - Fri Oct 10, 2008 3:17 pm

Heh, yes, hacker, you're right. But he's probably asking if there's any functionality similar to what VBA had, where it had its own console you could write to other than the screen.

#163762 - Miked0801 - Fri Oct 10, 2008 5:02 pm

No$ Allows that as well.

#163773 - tepples - Fri Oct 10, 2008 8:42 pm

Miked0801 wrote:
No$ Allows that as well.

Allowed, past tense. The freeware version of NO$GBA doesn't appear to have a console, and "This recipient is currently unable to receive money."

If you're already using both screens, and you still need more space to write stuff, you could use dswifi and write text to a socket, and then have netcat on the PC pick it up.
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.

#163788 - sixmind80 - Sat Oct 11, 2008 5:21 pm

yes i was referring to a different console and not the nds screens themselves. it's just that most of the time i'd like to debug my programs using std output. i find that using the screen for debugging gets really hideous at times.