Introducing OCD – the TI-Nspire on-calc debugger

Debugging without debugger can sometimes be a pain. For instance host USB isn’t implemented by the TI-Nspire computer emulator nspire_emu, and troubleshooting my USB drivers on-calc is becoming impossible.

I have decided to implement OCD, an on-calc debugger that mirrors most of nspire_emu debugger’s commands. I know calc84maniac started something similar a while ago, but unfortunately lost its source code.

The debugger must be linked to the program to debug as a static library. The debugger console will show up when a breakpoint is hit.

TI-Nspire developers, download it and help me improve it :) It hasn’t been extensively tested yet, please report any issue. It isn”t yet compatible with the CX because of nspireio on which it depends.

Many thanks to Goplat for some tricky code I have reused from nspire_emu such as the disassembler, and compu for the nice nspireio library I have slightly adapted for my needs.

4 thoughts on “Introducing OCD – the TI-Nspire on-calc debugger

  1. Nice! :)

    To have a very basic CX support, it should be possible to add
    if(has_colors) lcd_ingray();
    at the start of the breakpoint and restore it when the program continues.

  2. Very nice :D
    ExtendeD, your work is still amazing!

    I think I will love it, when it will be compatible with CX ;)

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your 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 )

Connecting to %s