在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
转自: http://www.cnblogs.com/sandman/archive/2010/12/05/1897063.html
自己的开发机器称为主机,运行程序的机器称为目标机; 这样就可以生成rsm为扩展名的文件,该文件名称于你的项目同名。 2、project->options->Debugging中的勾可以全部选上,这是在你的程序支持debug(正式发布产品时要去掉这些选项,Delphi默认设置是选则大部分的) 4、Working Directory 中输入目标机器的运行目录 六、主机按F9调试即可
补充: delphi 2010的远程调试,需要下面几个文件:
bccide.dll,bordbk140.dll,bordbk140N.dll,comp32x.dll,DCC140.dll,rmtdbg140.exe 文件都在2010的bin目录下。
另一个介绍: Sometimes is good to debug directly on the client computer, because the development computer does not have the problem. Of course, in such cases is not appropriate (and often not even possible) to install Delphi on the client computer and for this cases Delphi offer the possibility of remote debugging. How to do? I show remote debugging on Delphi 2010 (service pack 4 and 5 required - fixed some problems), but remote debugging is supported on old Delphi too - only difference is filenames (see below). In first step install debugger support on target computer. You can download remote debugging support from Embarcadero or from Delphi directory copy this files (for Delphi 2010 - Delphi version 14, so for another version please use proper files - maybe can be stability problem with Delphi 2005 or 2006). Now register files with: Ok, so necessary tasks are done (this can be necessary only for first time) and start debugging. On target computer start remote debugger (rmtdbg140.exe) - when started small icon is showed in tray (green bug). Now on project enable Remote debug symbols and Debug information. With first option compiler will create RSM files during compilation. Compiled binary file with rsm files copy on client computer. In menu Run select Load Process … … and in Remote tab fill fields (see screenshot - directories are from target computer). Now only click on Load and if everything is good, program will stop on first line of program (probably on first line in dpr file) and you can set breakpoints or everything like during normal debugging. And this is all. When problems with communication try for example ping (and check firewall or stupid anti viruses and so on). Update: simple demo - download Update: maybe for some windows configuration remote debugging working only when everything is in same directory
转自: http://www.cnblogs.com/sandman/archive/2010/12/05/1897063.html
自己的开发机器称为主机,运行程序的机器称为目标机; 这样就可以生成rsm为扩展名的文件,该文件名称于你的项目同名。 2、project->options->Debugging中的勾可以全部选上,这是在你的程序支持debug(正式发布产品时要去掉这些选项,Delphi默认设置是选则大部分的) 4、Working Directory 中输入目标机器的运行目录 六、主机按F9调试即可
补充: delphi 2010的远程调试,需要下面几个文件:
bccide.dll,bordbk140.dll,bordbk140N.dll,comp32x.dll,DCC140.dll,rmtdbg140.exe 文件都在2010的bin目录下。
另一个介绍: Sometimes is good to debug directly on the client computer, because the development computer does not have the problem. Of course, in such cases is not appropriate (and often not even possible) to install Delphi on the client computer and for this cases Delphi offer the possibility of remote debugging. How to do? I show remote debugging on Delphi 2010 (service pack 4 and 5 required - fixed some problems), but remote debugging is supported on old Delphi too - only difference is filenames (see below). In first step install debugger support on target computer. You can download remote debugging support from Embarcadero or from Delphi directory copy this files (for Delphi 2010 - Delphi version 14, so for another version please use proper files - maybe can be stability problem with Delphi 2005 or 2006). Now register files with: Ok, so necessary tasks are done (this can be necessary only for first time) and start debugging. On target computer start remote debugger (rmtdbg140.exe) - when started small icon is showed in tray (green bug). Now on project enable Remote debug symbols and Debug information. With first option compiler will create RSM files during compilation. Compiled binary file with rsm files copy on client computer. In menu Run select Load Process … … and in Remote tab fill fields (see screenshot - directories are from target computer). Now only click on Load and if everything is good, program will stop on first line of program (probably on first line in dpr file) and you can set breakpoints or everything like during normal debugging. And this is all. When problems with communication try for example ping (and check firewall or stupid anti viruses and so on). Update: simple demo - download Update: maybe for some windows configuration remote debugging working only when everything is in same directory |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论