您的位置:首页 > 其它

修改系统默认调试工具在mygeneration中的应用

2011-10-27 15:36 375 查看
1.vs2010默认调试的注册表信息

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AeDebug]
"UserDebuggerHotKey"=dword:00000000
"Auto"="0"
"Debugger"="\"C:\\Windows\\system32\\vsjitdebugger.exe\" -p %ld -e %ld"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AeDebug\AutoExclusionList]
"DWM.exe"=dword:00000001


2.delphi7默认调试的注册表信息

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AeDebug]
"UserDebuggerHotKey"=dword:00000000
"Debugger"="C:\\Program Files\\Borland\\Delphi7\\Bin\\bordbg70.exe -aeargs %ld %ld"
"Auto"="0"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AeDebug\AutoExclusionList]
"DWM.exe"=dword:00000001


3.mygeneration启动调试

方案一:分为以下步骤:

1.在模板方法Render() 中加入System.Diagnostics.Debugger.Launch();

2.执行模板一次,会调用vs进行调试.注意这时并不会带原码.

3.再执行模板一次.则会进入代码调试阶段.

方案二:(方案一比较通用)

1. Open up VS 2003/5 go to Tools-> External Tools.. menu.

2. Click on Add.

3. Bellow give whatever title you want to give.

4. For "Command”: Select ZeusCmd.exe from open window. Commonly it is located as C:\Program Files\MyGeneration\ZeusCmd.exe

5. For "Arguments”: -t "C:\complete\path\to\Template\File.zeus"

6. Check "Use Output Window" checkbox.

7. Click on OK.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐