What you should do is:
- Compile the function or package
- Add debug information (if you haven't compiled with debug information on)
- Find the code you want to test in the browser
- Right click and select test
Now you have a test window where you can step through the code and watch values of the variables and see the overall program flow.
Regards,
Patrick