home *** CD-ROM | disk | FTP | other *** search
/ QBasic & Borland Pascal & C / Delphi5.iso / Pascal / BPASCAL.700 / D12 / TDDOC.ZIP / README.TD < prev    next >
Encoding:
Text File  |  1992-10-01  |  20.7 KB  |  491 lines

  1.              TURBO DEBUGGER/PROFILER/ASSEMBLER RELEASE NOTES
  2.              -----------------------------------------------
  3.  
  4. This file contains important, last-minute information about Turbo Debugger,
  5. Turbo Profiler, and Turbo Assembler.
  6.  
  7.  
  8. TABLE OF CONTENTS
  9. -----------------
  10. 1. Debugging Multiple Applications under Turbo Debugger for Windows
  11. 2. TDW.INI, the Windows initialization file for TDW and TPROFW
  12. 3. Using TDW in Dual Monitor Mode from TPW
  13. 4. Using TDW in Dual Monochrome Monitor Mode
  14. 5. The [WRemote] section of TDW.INI
  15. 6. Known Problems
  16.  
  17.  
  18. 1. Debugging Multiple Applications under Turbo Debugger for Windows
  19. ===================================================================
  20.  
  21.      You can debug multiple applications under TDW as follows:
  22.  
  23.        1. Load the first program to be debugged into TDW.
  24.   
  25.        2. Once the application is loaded, press the F3 key to display the
  26.           Load Module Source or DLL Symbols dialog box.
  27.   
  28.        3. In the DLL Name text entry box, enter the name of the .EXE or
  29.           DLL to add. If the .EXE or DLL resides in another directory, you
  30.           need to provide the full path.
  31.   
  32.        4. Press the Enter key. TDW adds the program name to the
  33.           DLLs & Programs list box and puts the !! symbol after it.
  34.   
  35.        5. Close the Load Module Source or DLL dialog box, return to the Module
  36.           window, and set any necessary breakpoints in the first program.
  37.   
  38.        6. Press F9 to run the first program.
  39.   
  40.        7. Switch to the Windows Program Manager while the first program
  41.           is running and run the second program in the usual way.
  42.   
  43.        8. You see the display switch back to TDW with the CPU window
  44.           showing the start-up information of the second application.
  45.           Close the CPU window.
  46.   
  47.        9. In the Module window, set any necessary breakpoints in the second
  48.           application, then press the F9 key to run it.
  49.  
  50.      This method is useful for debugging DDE conversations or any other
  51.      inter-program communication in the Windows environment.
  52.  
  53.  
  54. 2. TDW.INI, the Windows initialization file for TDW and TRPOFW
  55. ==============================================================
  56.     TDW.INI is located in your local Windows directory. It is the 
  57.     Windows initialization file used by TDW, TPROFW, and WREMOTE. 
  58.     TDW.INI specifies the name and location of the Debugger DLL 
  59.     and the video driver DLL (if any) in the [TurboDebugger] section. 
  60.     It can also contain two other sections:
  61.   
  62.   o [VideoOptions], where you put settings for the video DLL, if any
  63.  
  64.   o [WRemote], where WRSETUP puts settings for remote debugging 
  65.     and profiling
  66.  
  67.     [TurboDebugger] section
  68.     -----------------------
  69.       WINDEBUG.DLL has been replaced by TDWIN.DLL. TDWIN.DLL can be
  70.       located anywhere you wish (usually the main Windows
  71.       directory).  The DebuggerDLL entry must specify the full path
  72.       to TDWIN.DLL.
  73.       
  74.       For example, if TDWIN.DLL is in the WINDOWS3.1 directory, its
  75.       TDW.INI entry is 
  76.       
  77.           [TurboDebugger]
  78.           DebuggerDLL=c:\windows3.1\tdwin.dll
  79.       
  80.       The VideoDLL entry indicates a video support DLL for 8514 or
  81.       Super VGA, because TDW doesn't support these video modes by
  82.       default. This entry must specify the full path to the DLL.
  83.       You can set various video  options for the DLL in the
  84.       [VideoOptions] section.  See the next section for a complete
  85.       explanation of video DLL and options settings.
  86.  
  87.     
  88.     SVGA support, the VideoDLL entry, and the [VideoOptions] section
  89.     ----------------------------------------------------------------
  90.       TDW and TPROFW handle most of the popular 2, 4, 16, and 256-color 
  91.       high-resolution Super VGA modes. If your card isn't supported 
  92.       correctly, you need to use a special Super VGA (SVGA) DLL.
  93.   
  94.       Currently, six DLLs are supplied with your language compiler to 
  95.       support various SVGA and 8514 video cards and modes. These DLLs are
  96.       described in the next section. For information on how to specify the
  97.       Video DLL or its options, see the sections "The VideoDLL entry" and 
  98.       "The [VideoOptions] section," which follow the "Video DLLs" section.
  99.  
  100.     
  101.       Video DLLs
  102.       ----------
  103.         All the video DLLs described in this section are designed to work 
  104.         with the most current Windows screen drivers for your video card.  If 
  105.         you're not sure if you're using the latest drivers, contact your video 
  106.         card manufacturer for more information.
  107.   
  108.         From time to time we have new DLLs for new video cards. These DLLs,
  109.         when available, can be downloaded from Compuserve, BIX, GEnie, and our
  110.         local BBS (408-439-9096). As new video cards and modes appear on the
  111.         market, we will be creating new DLLs for them. If the card you use
  112.         isn't supported by one of our DLLs, please contact Tech Support for
  113.         the latest video DLL information.  Our main Tech Support phone number
  114.         is 408-438-5300.
  115.  
  116.  
  117.         ATI.DLL
  118.         -------
  119.           Works with the ATI VGA Wonder and XL cards in certain video modes.
  120.     
  121.           The latest ATI Drivers from ATI Technologies Inc. require the
  122.           following TDW.INI file entries:
  123.       
  124.       
  125.                Resolution   ATI.DLL  Int2FAssist
  126.              -----------------------------------
  127.              | 640X480    | Yes     |   Yes    |
  128.              -----------------------------------
  129.              | 800X600    | Yes     |   Yes    |
  130.              -----------------------------------
  131.              | 1024X768   | No      |    No    | 
  132.              -----------------------------------
  133.    
  134.           EXPLANATION: ATI.DLL is required in all video modes except 
  135.           1024 X 768 (this mode is directly supported by TDW and TPROFW).
  136.           When the DLL is used (VideoDLL=ATI.DLL), Int2FAssist should be 
  137.           set to "yes" in the [VideoOptions] section.
  138.  
  139.  
  140.         TSENG.DLL
  141.         ---------
  142.           Supports TSENG ET-3000 /ET-4000 based cards in certain 
  143.           video modes.
  144.   
  145.           The latest TSENG drivers are available from the Microsoft
  146.           Windows Driver Library on Comp-U-Serve. They require the 
  147.           following TDW.INI file settings:
  148.       
  149.       
  150.               Resolution   TSENG.DLL   Int2FAssist
  151.              -------------------------------------
  152.              | 640X480    | Yes       |   Yes    |
  153.              -------------------------------------
  154.              | 800X600    | No        |    No    |
  155.              -------------------------------------
  156.              | 1024X768   | No        |    No    |
  157.              -------------------------------------
  158.     
  159.           EXPLANATION: TSENG.DLL should only be used with 640 X 480 X 256 
  160.           resolution (set VideoDLL=TSENG.DLL and put a Int2FAssist="Yes" 
  161.           entry in the [VideoOptions] section). TDW and TPROFW directly 
  162.           support the other TSENG resolutions.
  163.       
  164.  
  165.  
  166.         TDVESA.DLL
  167.         ----------
  168.           Supports any video card that does VESA emulation, whether
  169.           through a TSR or video card firmware. Use this DLL with
  170.           all resolution settings.
  171.     
  172.               NOTE: You can run VESATEST.EXE from either DOS or 
  173.               Windows to see if your system provides the proper 
  174.               VESA functions. If the emulation is not loaded, TDW 
  175.               (or TPROFW) will display an error message indicating
  176.               that the video DLL is not supported by the current 
  177.               configuration.
  178.   
  179.           The TDVESA.DLL has been tested with the following video 
  180.           cards:      
  181.         
  182.             o Video Seven VRAM II--uses V7VESA TSR supplied with card
  183.   
  184.             o Weitek Power Windows--emulates VESA with firmware.
  185.   
  186.   
  187.         DUAL8514.DLL 
  188.         ------------- 
  189.           Supports any dual-screen 8514 cards.  This DLL is only for 
  190.           systems that have two-color monitors, one attached to the VGA
  191.           card and one attached to the 8415/A card.  It speeds up 
  192.           performance by preventing TDW (or TPROFW) from doing some 
  193.           things that aren't required in dual-monitor mode.
  194.   
  195.               NOTE: Using this DLL is not the same as invoking TDW
  196.               with the -do parameter, which only specifies using a
  197.               monochrome screen.
  198.   
  199.       
  200.         STB.DLL
  201.         -------
  202.           Supports the MVP2 series of multi-screen video cards.
  203.   
  204.   
  205.         ULTRA.DLL
  206.         ---------
  207.           Supports the ATI 8514 Ultra and Vantage graphics cards 
  208.           (8514/Ultra, 8514/Vantage, Graphics/Ultra, and Graphics/Vantage)
  209.           and 8514-based cards configured for a single monitor (including
  210.           the IBM 8514/A card). If you use this DLL with an IBM 8514/A card,
  211.           set "ATI=no" in the [VideoOptions] section of TDW.INI.
  212.  
  213.  
  214.     The VideoDLL entry
  215.     ------------------
  216.       To use an SVGA DLL, simply edit the TDW.INI file that the installation
  217.       program puts in your main Windows directory. You can modify TDW.INI
  218.       with any ASCII text editor. Under the section heading [TurboDebugger]
  219.       there is an option called "VideoDLL". This entry should equal the
  220.       path and filename of the DLL you want to use for SVGA support (see the
  221.       example later in this file).
  222.   
  223.       If there is an error loading the DLL or if the DLL doesn't support the
  224.       selected card or mode, TDW (or TPROFW) reports the error in a 
  225.       Windows dialog box. When this happens, TDW (or TPROFW) unloads it
  226.       and exits. If this situation occurs, remove the DLL's name from the 
  227.       VideoDLL line in the TDW.INI file or select a video mode supported 
  228.       by that DLL.
  229.  
  230.  
  231.     The [VideoOptions] section
  232.     --------------------------
  233.       There are also options you can set for the current video DLL.  You list
  234.       these options under the [VideoOptions] heading in any order you like.
  235.   
  236.       The following list shows all the video options:
  237.     
  238.         o SaveWholeScreen    --    default = no
  239.         o Int2FAssist        --    default = no
  240.         o DebugFile          --    default = <blank>
  241.         o IgnoreMode         --    default = no
  242.         o ATI                --    default = yes
  243.         o Rows               --    default = 25
  244.         o RestoreTextScreen  --    default = yes
  245.     
  246.       DebugFile can be either blank or set to a specific filename. The other
  247.       four settings must be either 'yes' or 'no'.  Rows must be 25 or 50.
  248.  
  249.  
  250.       SaveWholeScreen   (ATI, TSENG, TDVESA)
  251.       ---------------
  252.         This option, normally set to "no", determines whether the entire 
  253.         screen (512k - 64k from 8 planes) is saved (the entire graphics 
  254.         screen is cleared when switching to it) or if only the top 32K of 
  255.         planes 0 through 3 is saved (the entire screen is NOT cleared when 
  256.         switching modes.)
  257.       
  258.         Saving the whole screen is not usually necessary, but is provided
  259.         in case you're using a nonstandard card that requires that the whole
  260.         screen be saved.  It also provides support for the Alt-F5 key
  261.         combination under the Int2FAssist mode.
  262.   
  263.       
  264.       Int2FAssist  (ATI, TSENG)
  265.       -----------
  266.         This option, normally set to "no", tells the DLL to make a 
  267.         special Int 2F call before switching video modes. This call 
  268.         tells the current Windows screen driver what's happening. 
  269.         The desired effect of this call is to make Windows tell all 
  270.         of its child windows to repaint themselves. This option is 
  271.         provided mainly to support some ATI Wonder and TSENG chip set 
  272.         video modes.
  273.  
  274.     
  275.       DebugFile   (ALL DLLs)
  276.       ---------
  277.         The video DLL normally doesn't log any debugging information. If
  278.         you're having problems using a particular DLL, you can use the 
  279.         DebugFile option to specify the path and filename of a log file. 
  280.         You can use the information logged to this file if you need to 
  281.         contact Borland's Technical Support.
  282.       
  283.         The information logged is:
  284.       
  285.           o the date and time you ran TDW or TPROFW
  286.           o the version & location of the DLL
  287.           o the name of the current Windows screen driver
  288.           o the state of all TDW.INI options
  289.           o a listing of all calls and parameters to the DLL's functions
  290.   
  291.     
  292.       IgnoreMode   (ATI, TSENG)
  293.       ----------
  294.         This option only applies when the video DLL is ATI.DLL or TSENG.DLL.
  295.         It tells the DLL to not do any mode or card checking and to force the
  296.         Int2FAssist option on.  This option is useful for cards that aren't
  297.         directly supported by an official DLL yet, such as Paradise, Video-7,
  298.         Trident, or any other video card without a graphics coprocessor.
  299.         With this option enabled, the functionality is identical to the
  300.         temporary ALL.DLL that we offered in the past.
  301.  
  302.     
  303.       ATI   (ULTRA)
  304.       ---
  305.         This option is only used by ULTRA.DLL and is on by default.  If you
  306.         disable it (ATI=no), you can use ULTRA.DLL on regular IBM 8514/A 
  307.         cards.
  308.     
  309.     
  310.       ROWS  (ALL DLLs)
  311.       ----
  312.         This option is only used if you use a configuration file to set 
  313.         the number of rows to 43/50 from 25. If you choose to have TDW 
  314.         start in 50-line mode, set the Rows option to 50 in the TDW.INI file.
  315.     
  316.     
  317.       RestoreTextScreen   (DUAL8514, STB)
  318.       -----------------
  319.         This option is only valid with the DUAL8514 and STB DLLs.  The valid
  320.         options are:
  321.   
  322.         o Yes    - restores TDW's (or TPROFW's) screen after exiting.
  323.         o No     - does not touch TDW's (or TPROFW's) screen at all.
  324.         o Clear  - forces the screen to clear upon exiting TDW (or TPROFW).
  325.     
  326.  
  327.     Video DLL example
  328.     -----------------
  329.       If you have an ATI VGA Wonder card and you want it to save
  330.       the entire  screen and log information to a file named
  331.       C:\WINDOWS\TDVIDEO.LOG, the TDW.INI file will look something
  332.       like this:
  333.       
  334.           [TurboDebugger]
  335.           DebuggerDLL=c:\windows3.1\tdwin.dll
  336.           VideoDLL=c:\bp\bin\ati.dll
  337.         
  338.           [VideoOptions]
  339.           SaveWholeScreen=yes
  340.           DebugFile=c:\windows\tdvideo.log
  341.     
  342.   
  343.     Technical information
  344.     ---------------------
  345.       TDW, upon loading, looks for the video DLL in the following 
  346.       locations in the following order:
  347.   
  348.         1. The same directory TDW (or TPROFW) is running from
  349.   
  350.         2. The Windows main directory
  351.   
  352.         3. The location specified in TDW.INI
  353.  
  354.  
  355.     If it finds the file, TDW (or TPROFW) accesses the DLL as needed. 
  356.     TDW (or TPROFW) makes calls to the DLL to handle the entire video 
  357.     screen-switching context. The DLL accomplishes the screen switching 
  358.     by allocating a buffer as it gets loaded. Graphics screen contents 
  359.     are then saved to this buffer when TDW (or TPROFW)_enters text mode. 
  360.     The DLL restores the graphics screen from this buffer when TDW 
  361.     (or TPROFW) exits text mode. Memory allocated for the buffer is freed 
  362.     when the DLL is unloaded.
  363.       
  364.         
  365.     Seeing the user screen of an application
  366.     ----------------------------------------
  367.       Some video modes might require some special handling. The Int2FAssist 
  368.       option allows these modes to work correctly on most systems. The 
  369.       behavior is as follows: 
  370.   
  371.       When you set "Int2FAssist=yes", the DLL informs Windows to tell 
  372.       all sub-windows on the screen to repaint themselves while the user 
  373.       application is running. This allows the user screen to be viewed 
  374.       when stepping, tracing, or running your application. It will not, 
  375.       however, switch to the user screen when you press the Alt-F5 key 
  376.       combination because TDW is still in control (TDW doesn't allow Windows 
  377.       to process any messages at this point.)
  378.   
  379.       If you also set "SaveWholeScreen=yes", pressing the Alt-F5 key 
  380.       combination shows the user screen. (The DLL will now copy the screen 
  381.       back for you.) The drawback to enabling SaveWholeScreen is that it 
  382.       will take longer to step or trace if TDW needs to switch back to 
  383.       the user screen for that particular instruction. Also, extra messages 
  384.       will be passed to your application that normally wouldn't be passed. 
  385.       This may affect the debugging of certain pieces of code (like finding 
  386.       a bug in an owner-draw control). In these cases, you won't want to use 
  387.       this option on the current video mode.
  388.  
  389.  
  390. 3. Using TDW in Dual Monitor Mode from TPW
  391. ==========================================
  392.     If you run TDW from TPW, you can use dual monitor mode only if you add
  393.     the following section to your TPW.INI file:
  394.  
  395.        [Debugger]
  396.        ExePath=c:\tpw\
  397.        Switches=-do
  398.  
  399.  
  400. 4. Using TDW in Dual Monitor Monochrome Mode
  401. ============================================
  402.      If TDW is activated using the -do switch, there is no need for 
  403.      a value in the VideoDLL entry of TDW.INI. The VideoDLL entry
  404.      should be empty, as follows:
  405.  
  406.        [Debugger]
  407.        VideoDLL=
  408.  
  409. 5. The [WRemote] section of TDW.INI
  410. ===================================
  411.      If you run WRSETUP to configure WREMOTE, the settings are saved
  412.      in the WRemote section of TDW.INI. In previous versions, these
  413.      settings were saved in the WRemote section of WREMOTE.INI. If you
  414.      have a previous version of TDW or TPROFW and want to preserve your
  415.      WREMOTE settings, you can append the contents of WREMOTE.INI into
  416.      TDW.INI. Be sure to include the [WRemote] section heading.
  417.  
  418.      The settings for the [WRemote] section are described in the "Turbo
  419.      Debugger User's Guide" in Appendix E, "Remote Debugging".
  420.  
  421.  
  422. 6. Known Problems
  423. =================
  424.  
  425.     o The MEMPAGE segment attribute in TASM is not currently supported by
  426.       TLINK.  This option was added to TASM to support a feature of the Phar
  427.       Lap linker.
  428.  
  429.     o TD386 and TF386 currently do not support machines with over 16M of
  430.       memory.  You must disable any extra memory to use these programs.
  431.  
  432.     o Some mouse drivers are incompatible with TD and will cause 
  433.       the mouse cursor to get scrambled when debugging DOS graphics 
  434.       applications on a second monitor (-do option).  If that happens, you can
  435.       try a different driver or turn off the mouse in TD by using the -p-
  436.       option on the TD command line.  The mouse will still be active in the
  437.       target application.
  438.  
  439.     o If you have any lines in your SYSTEM.INI that rename DLLs, such as
  440.       "sound.dll=mysound.drv", TDW might display the error "Can't find 
  441.       sound.dll" when it loads a program that uses the DLL.  To solve this 
  442.       problem, use the -wd command switch to disable TDW's DLL checking when 
  443.       you load such a program.
  444.  
  445.     o The first time a program is run under TDW or TPROFW, mouse messages 
  446.       are processed normally. However, on every subsequent execution of 
  447.       that program, you must press a key on the keyboard before mouse 
  448.       messages can be processed.
  449.  
  450.     o TSENG ET-4000 video chip set problems
  451.  
  452.       Under Windows 3.1, if you use the standard Windows VGA or SuperVga
  453.       driver with a video card that uses the TSENG ET-4000 chip set, you
  454.       might encounter a number of problems with running the debugger on a
  455.       single monitor.
  456.     
  457.       - The hardware cursor (the white cursor displayed in all dialog boxes
  458.         that require text input) is invisible, but you can still debug your
  459.         program.
  460.     
  461.       - On certain TSENG 4000-based cards (such as the Diamond Speedstar VGA
  462.         card), when you launch TDW the default character set is replaced by
  463.         graphic characters.
  464.     
  465.         To overcome this problem, contact Microsoft Corp and ask for the
  466.         updated TSENG drivers that were not shipped with Windows 3.1. They 
  467.         are also available on CompuServe in the Microsoft Forum (GO MSOFT) 
  468.         under the Microsoft Software Library heading. The drivers are
  469.     
  470.           Filename       Date
  471.           --------       ----
  472.           TSENG1.EXE     4/6/92
  473.           TSENG2.EXE     4/6/92
  474.           TSENG3.EXE     4/6/92
  475.           TSENG4.EXE     4/6/92
  476.     
  477.     
  478.         In the meantime, you can use one of the following alternatives:
  479.     
  480.         o Run Windows Setup and replace your Windows 3.1 VGA or SVGA driver
  481.           with the Version 3.0 VGA driver supplied with Windows 3.1.
  482.     
  483.         o Start TDW from the DOS command line. For example,
  484.     
  485.             WIN TDW myprog
  486.     
  487.         o Each time you launch Windows, run a full screen DOS session and 
  488.           type "exit" to close it. After you do this, when you run TDW, it 
  489.           will use the correct character set.
  490.     
  491.