Try OpenEdge Now
skip to main content
Developing WebSpeed Applications
Debugging Applications : Debugging and administrative options
 

Debugging and administrative options

This section, which appears at the bottom of the debug output, provides you with an interface to all the known debugging options, allowing you to turn them on or off. You can also implement your own application-specific debugging options by adding them to the Current debug options fill-in field or specifying them in the URL. The listings described in this section are supported by install-path/src/web/support/prinval.p.
The value displayed after Debugging Cookie WSDebug is the current value of the Cookie. Due to the way cookies work, this value always lags behind the value displayed by the Current debug options fill-in, by one request.
To synchronize the cookie with the debug options, change the debugging options as desired and click the appropriate button to set them. This sets the WSDebug Cookie appropriately. Then click the Reload submit button on the form (not your browser) to reload the page. The values for Current debug options and WSDebug Cookie are then identical. You can then scroll the page back to the top and run your application as usual. Whatever debugging options you set remain active until explicitly changed. However, these debugging settings are set specific to the URL of your application. The WSDebug Cookie is set with the path based on the value of the AppURL variable (see Miscellaneousvariables for more information about AppURL). This causes the browser to only send the cookie when visiting any URL that starts with the same leading path.
If your browser does not support persistent state cookies, then the value of the WSDebug Cookie remains blank.
Some other options are:
*ON — Turn on all of the above
*OFF — Turn off all debugging
*ALL — Synonym for the ON option
You can also specify multiple debugging options in the URL. Any of the options listed above can be combined. For example, to test the state-aware features, you might specify:
http://webserver/cgi-bin/webapp.cgi/webapp.w?debug=agent,cookies,http
This returns the output from a file named webapp.w followed by the specified debugging sections. If you want the Debugging and Administration form, the admin option must be specified explicitly unless the generic options ON or ALL are used. You can also specify this list in the Current debug options fill-in field of the Debugging and Administrative Options form.
Turning off debugging is similar to turning it on. Click the OFF link on the Debugging and Administrative Options form or specify debug=off as an argument in the URL. Then click your browser Reload button.
* Agent specific information
* Persistent state cookies
* HTTP headers sent
* Miscellaneous variables
* Environment variables
* Form fields