1、远程目标机器

安装D:\Program Files (x86)\Borland\Remote Debugger\20,没有光盘从已安装的xe6电脑上Bin目录下拷贝文件

  1. bccide.dll
  2. bordbk200.dll
  3. bordbk200N.dll
  4. comp32x.dll
  5. DCC32200.dll
  6. rmtdbg200.exe

注册dll文件

regsvr32 bordbk200.dll
regsvr32 bordbk200N.dll

运行rmtdbg200.exe启动后处于监听状态

2、开发环境机器(EXE和DLL调试方式是一样的)

c++builder直接编译完成后(不像delphi那有需要生成rsm和更改选项),生成tds和exe文件拷贝到远程目标机器上。

然后Run > Attach to Process 输入目标机器IP,refresh测试是否连通

Run > Load Process > Remote

 

Remote Path :D:\bin\Project2.exe ,XE6验证,远程的目录不能包含中文汉字,否则调试不了,只能是全英文字母

Remote Host:192.168.24.88

Working directory:可为空,不用填

Parameters:不用填

点Load 按钮就运行在 远程目标机器上EXE就运行起来了,不是开发机器上哦。

加上断点,第一次有cpu窗口,关闭后就跟到源码了。

目标机器上的Project2.exe和Project2.tds要和开发机器上一样,多次调试可以把Final Output设置成目标机器路径共享一下,有可写权限。

以后就不用为远程上特殊的环境发愁,直接远程调试了。

DLL工程也可以远程调试,Remote Path :D:\bin\Project2.exe填写为调用DLL的EXE完整路径。pp.DLL和pp.tds拷贝到子DLL目录中

 

http://docwiki.embarcadero.com/RADStudio/XE6/en/Overview_of_Remote_Debugging

http://docwiki.embarcadero.com/RADStudio/XE6/en/Installing,_Starting,_and_Stopping_the_Remote_Debug_Server

http://docwiki.embarcadero.com/RADStudio/XE6/en/Installing_a_Debugger_on_a_Remote_Machine

 

 

Xp电脑不支持远程调试了

无法定位程序输入点K32EnumProcessModules

posted on 2014-09-01 18:10  lypzxy  阅读(790)  评论(0编辑  收藏  举报