Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Delphi
  4. debug a dll in Delphi

debug a dll in Delphi

Scheduled Pinned Locked Moved Delphi
delphidebuggingtutorial
2 Posts 2 Posters 7 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    MrKBA
    wrote on last edited by
    #1

    Hi, I use Borland Delphi6 and I developed a dll. Now I want to test my dll and put some breakpoint! So I just created another project (same solution) to test and I want to know how to debug this dll. Thank you for the answer

    M 1 Reply Last reply
    0
    • M MrKBA

      Hi, I use Borland Delphi6 and I developed a dll. Now I want to test my dll and put some breakpoint! So I just created another project (same solution) to test and I want to know how to debug this dll. Thank you for the answer

      M Offline
      M Offline
      mobius111001
      wrote on last edited by
      #2

      Build your test application. Then go back to your DLL project. Go to the Run menu. Select the Parameters menu item. In the Host Application area, put the path to your test application .exe. NOTE: I'm telling you this from D5. I don't have D6 installed, but I think it was the same process. Another issue you may run into (D5 suffers from this is), the breakpoints will disappear. This is a well known bug in D5 and debugging DLLs. Should this happen, make your test application test your DLL by using buttons. This way here, it won't automatically run through the DLL code. Before hitting a button (or some other control), go to the IDE. Go to the View->Debug Windows->Modules (or Ctrl+Alt+M). Right click your DLL in the list. Select Reload Symbol Table. This enter that path of your DLL. You should see your breakpoints re-appear. Hope you find this information useful.

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups