http://www.kodyaz.com/articles/sap-how-to-debug-smartforms-debugging-smartform-sap-abap.aspx
Debugging SmartForms using Function Module
If you want to debug Smartform document in non-modifiable client, then you can try debugging Smartforms Function Module using soft break point.
First you need to find the function module name of the target SmartForm for debugging.