Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Watcom Debugger Guide - the watcom debugger can be used to debug autocad development system (ads) http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
The Watcom Debugger can be used to debug AutoCAD Development System (ADS)
and AutoCAD Device Interface (ADI) applications.  Before running the
debugger, add a line similar to the following to your "ACAD.ADS" file.  This
line specifies the path to the "ADSHELP.EXP" file.


     C:\WATCOM\BINW\ADSHELP.EXP

The file "ACAD.ADS" contains a list of AutoCAD applications that are loaded
by AutoCAD when AutoCAD is started.  "ADSHELP.EXP" is an AutoCAD application
that is required by the debugger for debugging AutoCAD applications.

To debug an ADS application, a special trap file "ADS.TRP" must be used.


     WD /TRap=ADS

If you do not have a two-monitor setup, you should also specify the "swap"
option.


     WD /TRap=ADS /Swap

Note that we did not specify the AutoCAD executable file; the trap file,
"ADS.TRP", will load AutoCAD automatically.  You should now be in the
debugger.  At this point, choose Command from the File menu and enter the
following debugger command specifying the name of the file containing your
AutoCAD application (e.g., foo.exp).

Example:

     DBG>ads foo.exp

The file "ADS.DBG" contains a sequence of debugger commands that starts
AutoCAD, loads the debugging information from the executable file you
specify, and relocates address information based on the code and data
selector values for your application.

You should now be in AutoCAD.  When you load your AutoCAD application from
AutoLISP, the debugger will be entered and source for your program should be
displayed in the source window.

Example:

     xload "foo.exp"

You are now ready to debug your AutoCAD application.

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson