A while back I found an example on adding buttons to a debug toolbar, to toggle port bits. This was defined in a debug.ini file.
define button "KICK BUTT","PORT3 ^= 0x04" define button "Toggle EX0 (P3.2)" , "PORT3 ^= 0x04"