找回密码
 立即注册

QQ登录

只需一步,快速开始

扫一扫,访问微社区

查看: 415|回复: 4

[ARX程序]:如何在.net中调试acad2004的arx程序?

[复制链接]
发表于 2004-8-12 16:32:53 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?立即注册

×
请教各位大侠,如何在.net中调试acad2004的arx程序?
论坛插件加载方法
发帖求助前要善用【论坛搜索】功能,那里可能会有你要找的答案;
如果你在论坛求助问题,并且已经从坛友或者管理的回复中解决了问题,请把帖子标题加上【已解决】;
如何回报帮助你解决问题的坛友,一个好办法就是给对方加【D豆】,加分不会扣除自己的积分,做一个热心并受欢迎的人!
发表于 2004-8-15 08:55:57 | 显示全部楼层
方法之一:
   1.直接启动AutoCAD
   2.在.net主菜单"工具"->"调试进程",打开进程对话框
   3.在"可用进程"列表中选择acad.exe,然后点"附加"按钮,出现"附加到进程"对话框,程序类型选Native,确定.
   4.关闭"进程"对话框.
   5.回到AutoCAD界面,加载debug版arx程序,此时可设断点调试arx.
论坛插件加载方法
发帖求助前要善用【论坛搜索】功能,那里可能会有你要找的答案;
如果你在论坛求助问题,并且已经从坛友或者管理的回复中解决了问题,请把帖子标题加上【已解决】;
如何回报帮助你解决问题的坛友,一个好办法就是给对方加【D豆】,加分不会扣除自己的积分,做一个热心并受欢迎的人!
回复 支持 反对

使用道具 举报

发表于 2004-8-25 09:46:17 | 显示全部楼层
支持2楼,是这样的,稍有不便,还可以
论坛插件加载方法
发帖求助前要善用【论坛搜索】功能,那里可能会有你要找的答案;
如果你在论坛求助问题,并且已经从坛友或者管理的回复中解决了问题,请把帖子标题加上【已解决】;
如何回报帮助你解决问题的坛友,一个好办法就是给对方加【D豆】,加分不会扣除自己的积分,做一个热心并受欢迎的人!
回复 支持 反对

使用道具 举报

 楼主| 发表于 2004-8-26 11:59:05 | 显示全部楼层
多谢了,果然可以了。
论坛插件加载方法
发帖求助前要善用【论坛搜索】功能,那里可能会有你要找的答案;
如果你在论坛求助问题,并且已经从坛友或者管理的回复中解决了问题,请把帖子标题加上【已解决】;
如何回报帮助你解决问题的坛友,一个好办法就是给对方加【D豆】,加分不会扣除自己的积分,做一个热心并受欢迎的人!
回复 支持 反对

使用道具 举报

发表于 2004-9-2 17:10:58 | 显示全部楼层
ObjectARX DebugAttach Addin
       
1.        The DebugAttach Addin for Visual Studio's VC++ .NET implements a work around for the known debugging issue with locked version of AutoCAD 2004. In locked version of AutoCAD 2004 developers cannot start AutoCAD in the VC++ .NET debugger.

2.        The recommended work around for this issue is to invoke AutoCAD 2004 manually and then attach the VC++ .NET debugger to a running acad.exe process. This can be done by setting the Project->Debugging->Attach property to 揧es? Invoke AutoCAD 2004, start the debugger in VC++ .NET and then attach to acad.exe by using the Processes dialog. The Processes dialog can be invoked using the menu Debug->Processes.

3.        The DebugAttach Addin is designed to automate the above process, so that debugging AutoCAD 2004 is no different from debugging any other VC++ project.

4.        The DebugAttach Addin will trap the VC++ .NET IDE抯 debug start commands (and also with short cut commands F5,F10 or F11) and starts AutoCAD 2004 and sets the Project->Debugging->Attach property to 揧es? This will enable Debugger to attach to the acad.exe automatically. When the debugging stops, the Attach property is set back to its original value.

5.        This Addin is inactive for all VC++ projects whose output file name does not have either of the extensions ".arx" or ".dbx".

6.        The developer can toggle the active status of the Addin by clicking on the command button on the toolbar. If inactive, the VC++ .NET IDE抯 normal behavior is restored.
论坛插件加载方法
发帖求助前要善用【论坛搜索】功能,那里可能会有你要找的答案;
如果你在论坛求助问题,并且已经从坛友或者管理的回复中解决了问题,请把帖子标题加上【已解决】;
如何回报帮助你解决问题的坛友,一个好办法就是给对方加【D豆】,加分不会扣除自己的积分,做一个热心并受欢迎的人!
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|申请友链|Archiver|手机版|小黑屋|辽公网安备|晓东CAD家园 ( 辽ICP备15016793号 )

GMT+8, 2024-9-22 01:20 , Processed in 0.297404 second(s), 39 queries , Gzip On.

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表