/jcl/docs/Experts.html

https://github.com/the-Arioch/jcl · HTML · 163 lines · 161 code · 2 blank · 0 comment · 0 complexity · 686eb19f3a6e63c85be3b8ca8fa54f31 MD5 · raw file

  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  2. <html lang="en-us">
  3. <head>
  4. <title>JEDI Code Library Experts</title>
  5. <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  6. <link rel="stylesheet" type="text/css" href="styles/default.css">
  7. <meta content="Project JEDI" name="author">
  8. </head>
  9. <body>
  10. <hr><br>
  11. <h1>JEDI Code Library</h1>
  12. <br>
  13. <hr><br>
  14. <h3>Content of this file</h3>
  15. <ul>
  16. <li><a href="#about">About experts</a></li>
  17. <li><a href="#debug">Debug Extension for JclDebug unit</a></li>
  18. <li><a href="#version">Version control expert</a></li>
  19. <li><a href="#xmm">XMM debug window</a></li>
  20. <li><a href="#favorites">Favorite combobox in Open/Save dialogs</a></li>
  21. </ul>
  22. <hr><br>
  23. <h3><a name="about">About experts</a></h3>
  24. <p>For Delphi 5, Delphi 6, Delphi 7, C++Builder 5 and C++Builder 6, experts can
  25. be installed as design time packages or dll experts. For C#Builder 1 and Delphi 8,
  26. experts are installed as dll experts (those products don't load design time
  27. packages). For Delphi 2005, Borland Developer Studio 2006, Turbo Delphi Professional and newer tools,
  28. experts are installed as design time packages.</p>
  29. <h3><a name="debug">Debug Extension for JclDebug unit</a></h3>
  30. <p>The <tt>experts\debug </tt>folder contains an IDE expert which
  31. assists to insert JCL Debug information into executable files. This can be
  32. useful when use source location routines from JclDebug unit. These routines
  33. need some kind of special information to be able provide source location for
  34. given address in the process. Currently there are four options to get it work:</p>
  35. <ol>
  36. <li>Generate and deploy MAP file with your executable file. The file
  37. is generated by the linker. It needs to be set in Project|Options
  38. dialog -&gt; Linker page, Detailed checkbox.</li>
  39. <li>Generate and deploy JDBG file file with your executable file.
  40. This is binary file based on MAP file but its size is typically about
  41. 12% of original MAP file. You can generate it by MapToJdbg tool in <tt>jcl\experts\debug\tools</tt>
  42. folder. The advantage over MAP file is smaller size and better security
  43. of the file content because it is not a plain text file and it also
  44. contains a checksum. The IDE expert can automatically create this file
  45. when the project is compiled (see below).</li>
  46. <li>Insert JCL Debug info into executable file. The
  47. size of added data is similar to JDBG file but it will be inserted
  48. directly into the executable file. This is probably best option because
  49. it combines small size of included data and no requirement of deploying
  50. additional files. The IDE expert can automatically insert these informations
  51. when the project is compiled (see below).</li>
  52. <li>Generate Borland TD32 debug symbols. These symbols are stored
  53. directly in the executable file but usually adds several megabytes so
  54. the file is very large. The advantage is you don't have to deploy any
  55. other file and it is easy to generate it by checking Include TD32 debug
  56. info in Linker option page.</li>
  57. </ol>
  58. <p>
  59. The IDE expert will add new item to IDE Project menu. The expert behavior can be customized by
  60. using the "JCL Debug Expert" item at the end
  61. of the Project menu. This submenu contains three settings to configure the operations that are automatically
  62. executed each time the projects are compiled/built. Three distinct operations are possible:
  63. <ol>
  64. <li>Automatically create .jdbg file from project MAP file;</li>
  65. <li>Automatically insert JCL Debug info into the executable;</li>
  66. <li>Automatically delete the MAP file after the conversions are done.</li>
  67. </ol>
  68. For each of these operations, the action can be enabled/disabled either on a project basis or for all projects.
  69. The expert outputs a
  70. message in the IDE message view to display details about the data being generated.</p>
  71. <p>
  72. You can generate those debug data for packages and libraries as well
  73. using the expert. Each executable file in the project can use different option
  74. from those listed above. It is not necessary to generate any debug data for
  75. Borland runtime packages because the source location code can use names of exported
  76. functions to get procedure or method name. To get line number information for
  77. Borland RTL and VCL/CLX units you have to check Use Debug DCUs checkbox in
  78. Project|Options dialog -&gt; Compiler tab. Unfortunately, it is not
  79. possible to get line number information for Borland runtime packages
  80. because Borland does not provide detailed MAP files for them so you get
  81. procedure or method name only.</p>
  82. <p>In case you have more than one data source for an executable file by
  83. an accident the best one is chosen in following order:</p>
  84. <ol>
  85. <li>JCL Debug data in the executable file</li>
  86. <li>JDBG file</li>
  87. <li>Borland TD32 symbols</li>
  88. <li>MAP file</li>
  89. <li>DBG and PDB debug informations (for system DLLs)</li>
  90. <li>Library or Borland package export tables</li>
  91. </ol>
  92. <p>It is also possible to create JCL debug data programmatically from a MAP file
  93. by using MakeJclDbg command line tool in jcl\experts\debug\tools folder.
  94. This utility can either export data as a separate .jdbg file or insert them in the
  95. executable. You can study included makefiles which uses this tool for building
  96. delphitools examples.</p>
  97. <p>To help using JclDebug exceptional stack tracking in application
  98. simple dialog is provided in <tt>jcl\experts\repository\ExceptionDialog\StandardDialogs</tt>folder. The dialog
  99. replaces standard dialog displayed by VCL applications when an unhandled
  100. exception occurs. It has additional Detailed button showing the stack, list of
  101. loaded modules and other system information. By adding the dialog to the
  102. application exceptional stack tracking code is automatically initialized so you
  103. don't have to care about it. You can also turn on logging to text file by setting
  104. the Tag property of the dialog to '1'. These dialogs are intended to be added to
  105. Object Repository.</p>
  106. <p>The repository expert can customize these standard exception dialogs by enabling additional features
  107. and by helping their creation by a step by step wizard. The dialogs can be created for any Delphi/C++Builder
  108. applications by invoking the File/New... menu.</p>
  109. <p><b>Short description of getting the JclDebug functionality in your
  110. project:</b></p>
  111. <ol>
  112. <li>Close all running instances of Delphi
  113. </li>
  114. <li>Install JCL and IDE experts by the JCL Installer
  115. </li>
  116. <li>Run Delphi IDE and open your project
  117. </li>
  118. <li>Remove any TApplication.OnException handlers from your project(if any).
  119. </li>
  120. <li>Add new Exception Dialog by selecting File | New | Other ... |
  121. Delphi Projects | Delphi Files, Select 'JCL Exception Dialog for XXX' (where XXX is
  122. either Delphi or C++Builder depending on your project). A wizard will appear to
  123. configure the options for this dialog.
  124. </li>
  125. <li>Configure "Project" | "JCL Debug expert" to your needs
  126. </li>
  127. <li>Do Project | Build</li>
  128. </ol>
  129. <hr><br>
  130. <h3><a name="version">Version control expert</a></h3>
  131. <p>A new expert integrating version control systems in the IDE was added.
  132. It provides an integration of TortoiseCVS and TortoiseSVN inside the IDE, items
  133. are added in the IDE menu and buttons can be placed in IDE toolbars via the
  134. customize dialog, see below.</p>
  135. <p>A dialog-box provides configuration options for JCL experts in the Tools menu.</p>
  136. <p>It wraps <a href="http://tortoisecvs.sourceforge.net/">TortoiseCVS</a>&nbsp;
  137. and&nbsp;<a href="http://tortoisesvn.sourceforge.net/">TortoiseSVN</a>&nbsp;commands in
  138. actions that can be placed on IDE toolbars and in IDE menu.</p>
  139. <p>This expert requires <a href="http://tortoisecvs.sourceforge.net/">TortoiseCVS</a>&nbsp;
  140. or/and&nbsp;<a href="http://tortoisesvn.sourceforge.net/">TortoiseSVN</a>&nbsp;installed on the
  141. system to properly work. Please refer to these products documentations for help
  142. about using version control systems.</p>
  143. <p>The structure of the "JCL Version" menu can be customized in the JCL options
  144. dialog (in the "Tools" menu).</p>
  145. <hr><br>
  146. <h3><a name="xmm">XMM debug window</a></h3>
  147. <p>This dialog provides enhancement to the debugger of Delphi and C++Builder regarding
  148. XMM registers. These registers were introduced in SSE instructions (and are still
  149. used in SSE2, SSE3 and SSSE3 instructions). This dialog can be displayed by clicking
  150. on menu View | Debug Windows | SIMD (keyboard shortcut Ctrl+Alt+D).
  151. It is divided in to panes following the style of the FPU window: the left pane
  152. displays content of registers and the right pane displays MXCSR flags. The format
  153. of the registers can be modified from the context. All registers and flags can be
  154. modified and changes will be applied to the debugged process.</p>
  155. <hr><br>
  156. <h3><a name="favorites">Favorite combobox in Open/Save dialogs</a></h3>
  157. <p>This expert modifies the IDE Open/Save dialogs and add a combobox to store your
  158. favorite directories. Items can be added and deleted using the button at the right
  159. of the combobox.</p>
  160. </body>
  161. </html>