问题
can anyone please help me out, to how to do remote debugging of a DLL (Just a dll) which is independent of the exe. The dll is a service which will be running in the server machine and the DLL source code is at the client machine. Now when this service is running at the server machine i want to debug the delphi code which is at the client machine using delphi 7.
回答1:
- Compile the DLL with remote debugging symbols and deploy both (.dll, .rsm, etc) on the server machine
- Install the remote debugger on the server machine
- Start the remote debugger on the server machine
- Start Delphi on the client machine and load the DLL project
- Start a remote debugging session from Delphi by choosing Run - Attach to process and fill in the server machine
- Select the process on the server machine which loaded the DLL
- Debug remote
Also see http://delphi.wikia.com/wiki/Remote_Debugger
来源:https://stackoverflow.com/questions/1922225/how-to-do-remote-debugging-of-dll-in-delphi-7-from-scratch