问题
I have Windows Server 2008 R2 Machine that is running a Delphi 2007 application. Update: Switching Delphi versions is currently not an option. I have Delphi XE but there are over 300,000 lines of code to review before any switch can occur.
I have run into a problem where I would like to step through the code. I don't want to install Delphi on the machine, so I have installed the remote debugger.
Updated steps to be more complete:
- Compile app with Remote Debug Symbols
- Copy Application and Remote Debug Symbols to Remote Location.
- Launched an Command Prompt (Running As an Administrator) on the Remote Machine.
- Enabled Server Firewall exception for rmtdbg105 process.
- Run
rmtdbg105 -listen
in the Command Prompt - I run the process I want to debug.
- On my local machine I select attach to process and select the remote process.
- Press Attach
Behavior observed: Remote Process locks up and stops running, and so does Delphi on my machine.
I have waited several minutes just in case it caused by some type of network performance problem.
Is there step I am missing? I am looking for a way to get this to work.
回答1:
Move back to Delphi 7, or up to Delphi XE, and try again. [Moving up to XE might be a bit of work, because you need to port your sources up to unicode delphi language level.]
I never did get Delphi 2007 remote debug to work reliably. The freeze-ups you see are something I remember too, when I was using Delphi 2007. I found that it froze less often when the PC had been rebooted recently. After a reboot you might get a few more uses, before you need to reboot again.
回答2:
Did you run the remote debugger from a privileged console? Also check the debugger files against those in Delphi bin directory, IIRC some files has been updated by a patch, but the remote debugger installer wasn't. Try to use the updated files as well. Anyway the 2007 debugger has issue under 7 and I guess it may have as well under 2008 R2, there is an unsupported patch from Embarcadero site, try that too.
来源:https://stackoverflow.com/questions/4893722/delphi-remote-debugger-freezing-up