Database Solutions - Hints & Tips

Tip 31:
Trace is True

The Problem:

You want to debug an existing UNIFACE application, but you do not have access to the source code, so how do you get round this?

The Solution:

Use the assignment file setting:

$trace_is_true

When this is in place, you can start the debugger using the Gold-Y keystroke.

What you will notice is that the debugger is not fired instantly, but is activated the next line of proc code is fired, be that a menu option or code in a component trigger or wherever.

So how can you disable this feature?

  1. Disable the Gold-Y keystroke in the keyboard translation table
  2. Put some code (any code, but not just comments) in the Application Switch Keyboard trigger.

So as of version 7.204 there are several different ways to start the debugger include:

  1. /deb command line option for a start-up shell
  2. run the udbg.exe and point it at the running UNIFACE application using the /deb option
  3. idf /tst /deb formname, will start the debugger against the form specified.
  4. debug proc code statement
  5. $trace_is_true in the assignment file

Are there any others ? A small prize to the first person who identifies one not listed.

compuware_01.gif (3977 bytes)


Copyright ©2000 OCS Consulting plc

dbs_block_logo.gif (2150 bytes)
Refresh Frames