Target Language Compiler    

About the TLC Debugger

The TLC debugger helps you identify programming errors in your TLC code. Using the debugger, you can:

The TLC debugger has a command line interface and uses commands similar to standard debugging tools such as dbx or gdb.

Tips for Debugging TLC Code

Here are a few tips that will help you to debug your TLC code:

  1. To see the full TLC call stack, place the following statement in your TLC code before the line that is pointed to by the error message. This will be helpful in narrowing down your problem.
  1. %setcommandswitch "-v1"

  1. To trace the value of a variable in a function, place the following statement in your TLC file:
  1. %trace This is in my function %<variable>

    Your message will appear when the Target Language Compiler is run with the -v command switch, but will be silent otherwise. You may use %warning instead of %trace to print variables, but you will need to remove or comment out such lines after you are through debugging.

  1. Use the TLC coverage log files to ensure that most parts of your code have been exercised.

  Debugging TLC Files Using the TLC Debugger