Here's one more way:
First give yourself a global variable to work with by adding a new row to globalcat.2da and saving it in the override folder. Call it something like DEBUG_NUM and make it a Number.
Then in your script you can simply call:
SetGlobalNumber("DEBUG_NUM",55); to set the number to 55 or whatever. After your script fires during the game, save the game and use Global Variable Comparison Tool (
http://webpages.charter.net/krumsick/kotor) to see what the value of DEBUG_NUM has changed to.
There are such things as Global Strings as well, but the comparison tool doesn't support them (yet).