CRMScript has a global function for writing any string to a buffer.
The text will pop up in a separate window when loading a page. This means that
printDebug() is only for code resulting in a screen.
- Enable debug: /bin/rms?action=debug
printDebug()at appropriate places with suitable strings.
- Run script.
The pop-up is not visible to regular users, but it will show up in your browser.
Usage - custom screen
printDebug() in any of the scripts that will be run when creating the screen and its elements to display the text in a pop-up window.
Usage - button-script
Button-scripts usually result in a redirect and not in a screen. Thus you will not get any messages from
However, you can use the following workaround to debug a button-script:
- Temporarily deactivate the redirect.
- You will be returned to the same screen, and now get the pop-up with any
printDebug()messages in the buffer.
- Enable the redirect when you are done.