home *** CD-ROM | disk | FTP | other *** search
/ Programmer 7500 / MAX_PROGRAMMERS.iso / PASCAL / TP4CV.ZIP / TPCV.MAN < prev   
Encoding:
Text File  |  1988-02-26  |  5.5 KB  |  199 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.        Source Level Debugging Comes to Turbo Pascal 4.0
  8.        
  9.        Introduction
  10.        
  11.        Welcome to source level debugging with Turbo Pascal 4.0 and Microsoft
  12.        CodeView.  TPCV is a utility which reads the .MAP file produced by
  13.        TPMAP and appends CodeView debugging records on the executable file
  14.        output by Turbo Pascal.  The modified .EXE file can then be used with
  15.        Codeview for a complete source level debugging environment.
  16.        
  17.        
  18.        Shareware
  19.        
  20.        This program was developed out of the need to provide a quality source
  21.        level debugging environment for Turbo Pascal 4.0 and is distributed as
  22.        shareware.  Please feel free to make copies and distribute TPCV among
  23.        your friends.  We do ask that if you find this program useful, that
  24.        you send Paradigm Systems $25.00 as a registration fee.  Registered
  25.        users of TPCV will be eligible for technical support, an option to
  26.        purchase the source code plus other information relating to the use of
  27.        TPCV as it becomes available.
  28.        
  29.        From:
  30.                 Paradigm Systems
  31.                 PO Box 152
  32.                 Milford, MA  01757
  33.                 (617)478-0499
  34.                 MCI:naro
  35.                 BIX:naro
  36.                 Compuserve:73047,3031
  37.        
  38.        
  39.        Using TPCV
  40.        
  41.        For Turbo Pascal 4.0 owners with access to Microsoft CodeView, this
  42.        utility will convert the output of Turbo Pascal to a format suitable
  43.        for use by CodeView.  Under CodeView, all source modules (and units)
  44.        can be debugged by stepping line by line or setting breakpoints.  When
  45.        the user steps into a function or procedure, the source code for the
  46.        new module automatically appears and disappears when the module is
  47.        exited.  Most of the powerful debugging features of CodeView are
  48.        available to Turbo Pascal programmers.
  49.        
  50.        Because the initial release works on the .MAP file output by TPMAP and
  51.        not the .TPM file output by Turbo Pascal, the debug information is
  52.        limited to public symbols and line numbers.  There is currently no
  53.        support for local variables and function/procedure arguments, thus
  54.        declaring variables global for debugging purposes will increase the
  55.        effectiveness of CodeView.  You will have access to all public symbols
  56.        which include all data, function and procedure names that appear in
  57.        the interface section of a unit, along with the global data in the
  58.        main program.  These symbolic names can be used to set breakpoints,
  59.        display data in a variety of formats as well as skip through the
  60.        source code using a mouse.
  61.  
  62.  
  63.  
  64.                                           1
  65.  
  66.  
  67.  
  68.  
  69.  
  70.  
  71.  
  72.  
  73.        
  74.        
  75.        Operation
  76.        
  77.        Some brief hints and suggestions concerning the use of TPCV.  All
  78.        files and units to be debugged must be compiled using the /$T+ and
  79.        /$D+ switches.  Rather than enter these options each time, they can be
  80.        permanently enabled by placing them in the TPC.CFG file.  The Borland
  81.        utility TPMAP is then run on the main program to generate .MAP file
  82.        used to access line numbers and publics.  The syntax for the utility
  83.        is simply
  84.        
  85.             tpcv exe_file
  86.        
  87.        For example, the following sequence would be used to compile and debug
  88.        the demo file GRDEMO.PAS (included on the TP 4.0 distribution
  89.        diskette)
  90.        
  91.             tpc grdemo /$D+ /$T+
  92.             tpmap grdemo
  93.             tpcv grdemo
  94.             cv /s grdemo
  95.        
  96.        With TPCV, debugging Turbo Pascal programs such as MCALC are easy.
  97.        
  98.        
  99.        CodeView Availability
  100.        
  101.        The CodeView debugger is shipped as part of the Microsoft Assembler
  102.        5.00 packages or with other Microsoft languages.  What better excuse
  103.        to upgrade your assembler ($40.00) than to getting a powerful source
  104.        level debugger for Turbo Pascal.
  105.        
  106.        
  107.        Hints on Using CodeView
  108.        
  109.        No data typing is input to CodeView thus it is necessary for the user
  110.        of TPCV to specify the data type on the command line when using a
  111.        display command.  The following examples show how to display the basic
  112.        data types from Turbo Pascal:
  113.        
  114.              d CHAR, c
  115.              d INT, d
  116.              d UNSIGNED_INT, u
  117.              d LONGINT, ld
  118.              d UNSIGNED_LONG_INT, lu
  119.        
  120.        Refer to the CodeView user manual for complete details.
  121.        
  122.        Also note that the Borland floating point format in the emulation is
  123.        not supported but that native 8087 code is supported.
  124.        
  125.        
  126.  
  127.  
  128.  
  129.  
  130.                                           2
  131.  
  132.  
  133.  
  134.  
  135.  
  136.  
  137.  
  138.  
  139.        Version History
  140.        
  141.        v1.04   This release was simply recompiled to use the compact memory
  142.                model.  This will allow TPCV to process much larger source
  143.                files before running out of memory.
  144.        
  145.        v1.03   This release of TPCV fixes a bug which prevented source level
  146.                debugging when the size of the executable was greater than 64K
  147.                in size.
  148.        
  149.        v1.00   Original release
  150.        
  151.        
  152.        Thanks for your support and enjoy true source level debugging.
  153.        
  154.        Paradigm Systems
  155.  
  156.  
  157.  
  158.  
  159.  
  160.  
  161.  
  162.  
  163.  
  164.  
  165.  
  166.  
  167.  
  168.  
  169.  
  170.  
  171.  
  172.  
  173.  
  174.  
  175.  
  176.  
  177.  
  178.  
  179.  
  180.  
  181.  
  182.  
  183.  
  184.  
  185.  
  186.  
  187.  
  188.  
  189.  
  190.  
  191.  
  192.  
  193.  
  194.  
  195.  
  196.                                           3
  197.  
  198.  
  199.