BPM error checking popup usings & references help

The most common method for debugging in Custom code in a BPM is to write to the event log.

edit

like:
Ice.Diagnostics.Log.WriteEntry(msg)

more details in topic: