Database Solutions - Hints & Tips

Tip 16:
Debugging an Application

Sometimes you want to go into debug, but there is no keystroke defined for the particular application, and you do not wish to change the actual source code.

One way to get round this problem is to create a form which just has a debug statement in it, and then using the assignment file, redirect one of the application’s forms to your special debug form.

For example, suppose you create a form called DBS_DEBUG, which has as its only line of code in the execute trigger, debug.
Then change the assignment file, e.g.

uuabout.frm dbs_debug.frm

Then every time the uuabout form is accessed, UNIFACE will actually invoke your form (dbs_debug).

Remember that the UNIFACE development environment (idf) is itself a UNIFACE application. The form uuabout, is the form invoked when you select Help About. Thus, if you follow the above procedure you can invoke debug at any stage where the Help About menu option is available.

compuware_01.gif (3977 bytes)


Copyright ©2000 OCS Consulting plc

dbs_block_logo.gif (2150 bytes)
Refresh Frames