![]() |
|
#1
|
|||
|
|||
|
I was trying the below step which I found in google search,
but still I am unable debug the dll in delphi 5. When I set breakpoint the dll source, it was deactive and not able to reach the point. directly it is accessing the complied dll. Points:: In the Project Manager make your DLL project active and press Ctrl+Shift+F11; In the Project Options window which just appeared select Debugger node and on the right side of the window in the Host Application field specify the host application (press Browse button and select the application which use your library) and then close the dialog by pressing the Ok button; Dll Code procedure test; begin ShowMessage('hi'); end; exports test name 'test'; begin end. Exe Code procedure test; external 'Project2.dll'; implementation {$R *.DFM} procedure TForm1.Button1Click(Sender: TObject); begin test; end; Please suggest me. Thanks in advance |
|
#2
|
|||
|
|||
|
And what doesn't work?
If you make the dll your active project and run. it should stop at any breakpoint inside the dll... Objective reality is a delirium caused by lack of alcohol in blood. There is no place like 127.0.0.1 |
|
#3
|
|||
|
|||
|
Hi,
I thing you are right. I use this way (depends on delphi version): 1) Compile main program 2) Open Dll in Delphi 3) Set host application to main program 4) Rebuild Dll 5) Set breakpoint 6) Run dll - main program will run 7) if you call dll from main you will reach a breakpoint. Im mostly using D3 proff and have only problem with Dll debugging - I have to compile dll every time I need debug It. When I compile, run finish and run once more without compiling the debug point is not recognized. If it help you please give me a point. PB |
|
#4
|
|||
|
|||
|
Hi PB,
Thanks for your reply. But when I put the break point in the dll, after running the dll the following things are happenning 1) Application is run 2) Breakpoint is deactivated 3) application run the code(which is in dll whith out stopping the at break point as break point is deactivated. Thanks Srinivas |
|
#5
|
|||
|
|||
|
I have a stupid question: Did you build up your dll with debug informations?
Did you try put breakpoint anywhere else, may be your selected code was optimized and taken out Which version of Delphi are you use? Sometimes when my debugging is not working I use a debug file - some txt file where are written important information from program during running. If it help you please give me a point. PB |
|
#6
|
|||
|
|||
|
Hi,
I am using the folllowing option While build the dll I have done the following Project->Options-> Under Linker Tab ->Include TD32 debug info selected. Please let me know, if anything needs to be done. Thanks in advance |
![]() |
| Thread Tools | |
| Display Modes | |
|
|