The Studio debugger
Guidewire Studio includes a code debugger to help you verify that your Gosu code is working as desired. It works whether the code is in a Gosu rule, a Gosu class, or a PolicyCenter PCF page. You access this functionality through the Studio Run menu and through specific debug icons on the Studio toolbar. You must be connected to a running PolicyCenter server to use the Studio debugger. If you do not have a connection to a running server, Studio attempts to run one. If the debugger is active, you can debug Gosu code that runs in the Gosu Scratchpad and Gosu code that is part of the running application.
If instructed, Studio can pause (at a breakpoint that you set) before it runs a specified line of code. This can be any Gosu code, whether contained in a rule or a Gosu class. The debugger can also run on Gosu that you call from a PCF page, if the called code is a Studio class.
After Studio pauses, you can examine in the debugger pane any variables or properties used by Gosu and view their values at that point. You can then have Studio continue to step through your code, pausing before each line. This stepping enables you to monitor values as they change, or to observe the execution path through your code.
