#142550 - Vich - Wed Oct 10, 2007 9:31 am
I was fiddling with the thought of making a remote debugging tool that allows you to actually debug the Nintendo DS without having to buy a devkit.
The WiFi connection isn't fast, but it should be fast enough for you to do some basic debugging. That is:
- Putting breakpoints: sends the line and breakpoint signal to a PC over the network. Then you can resume/step from that PC to a next breakpoint. Of course there wouldn't be real stepping(line per line) as this would become a lot more complex.
Something like this:
- Simple variable content watching: when a breakpoint is triggered, you can see the content of certain 'marked' variables.
Watching a variable could be buffered of course, since you probably don't want to send packages for each variable change. Eg. you could send them when you trigger a breakpoint or when this send buffer reaches its max.
Is there any interest in such a library?
_________________
[project website] [personal website]
The WiFi connection isn't fast, but it should be fast enough for you to do some basic debugging. That is:
- Putting breakpoints: sends the line and breakpoint signal to a PC over the network. Then you can resume/step from that PC to a next breakpoint. Of course there wouldn't be real stepping(line per line) as this would become a lot more complex.
Something like this:
Code: |
void Funcion() { printf("blaat"); triggerBreakpoint(); // regular breakpoint printf("blaat"); debug_TriggerBreakpoint(some_value > other_value); // conditional breakpoint } |
- Simple variable content watching: when a breakpoint is triggered, you can see the content of certain 'marked' variables.
Code: |
void Funcion() { int i = 2; debug_WatchVariable(i); // update i through wifi triggerBreakpoint(); // trigger breakpoint so you can see the content of i } |
Watching a variable could be buffered of course, since you probably don't want to send packages for each variable change. Eg. you could send them when you trigger a breakpoint or when this send buffer reaches its max.
Is there any interest in such a library?
_________________
[project website] [personal website]