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 > NewBie questions

#68257 - omoplata - Mon Jan 23, 2006 10:40 am

hi guys.

I'm new in DS dev and I have a few questions:

- Is the LibNds witch is in the devkitpro an official DS library? I guess no but how these guys have managed to do it?

- Is there a way to debug the homebrews in an IDE? I've built some demos and tested them on my DS. But If I have to put my files in my DS every time I want to test, it will be very long. Maybe there is a way to use an emulator and to bind the process to the sources in order to trace and to do real time debugging??

Thanks for your answers ;-)

tib

#68270 - linus - Mon Jan 23, 2006 11:49 am

NDSLIB is not official (if you mean supported by Nintendo) but it is what most people use (in fact i dont know an alternative)

No there is no real way of debugging, some of the emulators give memory and cpu visualisations but nothing like stepping to my knowledge

#68272 - omoplata - Mon Jan 23, 2006 12:06 pm

thank you for the answer!!

#68284 - SeanMon - Mon Jan 23, 2006 2:42 pm

DSemu has a built in debugger/code stepper. It is also the only open-source ds emulator that I know of.

#68401 - omoplata - Tue Jan 24, 2006 9:25 am

Ok so it would be possible to trace and debug our code? Or only the DSEmu code?

#69870 - genfish - Thu Feb 02, 2006 4:52 pm

i use the ideas emulator, its pretty good. not sure it has a debugger though.

#70110 - Mrshlee - Sat Feb 04, 2006 11:14 am

wait until NO$DS :)
_________________
MrShlee.com
Projects
Dev-Scene
MyTechpedia

#70262 - HyperHacker - Sun Feb 05, 2006 4:27 am

How much will the debugger cost though? Your first born?

#70307 - wintermute - Sun Feb 05, 2006 12:22 pm

HyperHacker wrote:
How much will the debugger cost though? Your first born?


Basic version is $15

#70321 - acox - Sun Feb 05, 2006 4:39 pm

omoplata wrote:

- Is there a way to debug the homebrews in an IDE? I've built some demos and tested them on my DS. But If I have to put my files in my DS every time I want to test, it will be very long. Maybe there is a way to use an emulator and to bind the process to the sources in order to trace and to do real time debugging??


Devkit Pro comes with gdb/insight which are the standard gnu commandline debugger and graphical extension. They are full source-level (i.e., step through your C/C++, not just through hex and assembly) debugging tools used widely outside the homebrew world with a small bit of code that sits on the target development hardware and speaks a remote debugging protocol with gdb.

Visual Boy advance implements this protocol for debugging the gba. None of the DS emus do this yet as far as I know but I would encourage their authors to put it in instead of spending time on their own built-in debuggers.
_________________
3D on GBA