DelphiFAQ Home Search:

Debug Delphi 3 experts with Delphi 3

 

commentsThis article has not been rated yet. After reading, feel free to leave comments and rate it.

Delphi 3 has a new feature "debug DLLs". It can be used to debug experts with the internal debugger. Just follow these simple steps, and debugging an expert can be fun:

  1. Make sure that the expert is not installed. If there is this entry
      \CURRENT_USER\software\Delphi\3.0\experts,
      myexpert=\projects\myexpert\expert.dll
    rename this entry to "expert.xxx". (don't delete it, you'll need it later).
    Otherwise, you cannot compile a new version.

  2. Run Delphi, open your expert's project as used, compile it and set the break points you think you need.

  3. Go to the menu item run | parameters. This is the new Delphi 3 feature mentioned above.

  4. Surprise: the host application is Delphi itself! So, next to the field "host app", enter something like e:\Programs\delphi3\bin\delphi32.exe (with path)

  5. Second trick: now we install the expert... If you have "expert.xxx" installed, rename that to "expert.dll". This will be used by any Delphi instance started from now on.

  6. Run "your application" (= Delphi 3) using menu item run | run.
    If you have enough RAM, Delphi is loaded and this instance will have your expert installed.
    Activate the expert, you'll have the possibility to use the comfort of the first instance's internal debugger.

  7. Close the right instance of Delphi - and you can modify/ recompile etc. your expert.

Comments:

 

 

NEW: Optional: Register   Login
Email address (not necessary):

Rate as
Hide my email when showing my comment.
Please notify me once a day about new comments on this topic.
Please provide a valid email address if you select this option, or post under a registered account.
 

Show city and country
Show country only
Hide my location
You can mark text as 'quoted' by putting [quote] .. [/quote] around it.
Please type in the code:
photo Add a picture:

Please do not post inappropriate pictures. Inappropriate pictures include pictures of minors and nudity. The owner of this web site reserves the right to delete such material.