Discussion Locked

PGM DEBUGGING IN AIX UNIX

0 helpful
5 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Hello Fellow Techrepublics,

Is there a debugging utility in aix unix that allows for a line by line debugging of the pgm including variable display facility. please guide me and show a small sample of how to achieve the debuggingg

5 replies

by Member 24355076

There are actually 2 debuggers on AIX:
. xldb is a graphical debugger
. dbx is a line debugger with a character
based interface

You need to have the C Set++ installed (development environment) and your pgm has to be compiled with the '-g' option (include debug info).
Type 'xldb -help' or 'man dbx' for more info...

by fanakart

If your "program" is a shell script (sh, ksh, bash, tcsh), all you can do is add "set -vx" at the start of your program to get an execution trace while the program is running but you won't be able to single step and print the value of single variables.

If your program is Perl then you can invoke it with the -d switch to go to a line by line debugging.

This discussion is closed to new replies.