找回密码
 立即注册

QQ登录

只需一步,快速开始

扫一扫,访问微社区

查看: 5116|回复: 7

[求助] vs2015+Object2017 开发AutoCAD2017 调试断点不可用

[复制链接]

已领礼包: 2个

财富等级: 恭喜发财

发表于 2017-6-2 15:12:19 | 显示全部楼层 |阅读模式
悬赏20D豆未解决
应用vs2105+ObjectARX2017 开发AutoCAD2017的.arx外部应用,编译生成成功后,在CAD2017上加载可以正常使用,但是在调试过程中设置断点不可用,无论在什么地方设置断点都无法进入断点,断点一直都是空心的圆圈,求助哪位大侠帮忙解决一下,急!!!!

项目设置如下图所示
2png.png
3.png
1.png
设置断点后空心圆圈提示如下信息,并且已经将断点设置为“允许源代码与原始版本不同”

4.png

论坛插件加载方法
发帖求助前要善用【论坛搜索】功能,那里可能会有你要找的答案;
如果你在论坛求助问题,并且已经从坛友或者管理的回复中解决了问题,请把帖子标题加上【已解决】;
如何回报帮助你解决问题的坛友,一个好办法就是给对方加【D豆】,加分不会扣除自己的积分,做一个热心并受欢迎的人!
发表于 2017-6-2 16:11:52 | 显示全部楼层
在 stdafx.h 里面包含 MFC 头文件的时候,有没有把_DEBUG 宏 undef 掉?

可以参考下: http://help.autodesk.com/view/OA ... 7-9CA9-C7331EFD560E
http://adndevblog.typepad.com/au ... x-applications.html
论坛插件加载方法
发帖求助前要善用【论坛搜索】功能,那里可能会有你要找的答案;
如果你在论坛求助问题,并且已经从坛友或者管理的回复中解决了问题,请把帖子标题加上【已解决】;
如何回报帮助你解决问题的坛友,一个好办法就是给对方加【D豆】,加分不会扣除自己的积分,做一个热心并受欢迎的人!
回复

使用道具 举报

已领礼包: 2个

财富等级: 恭喜发财

 楼主| 发表于 2017-6-2 16:57:28 | 显示全部楼层

你是说这样吗?
// (C) Copyright 2002-2012 by Autodesk, Inc.
//
// Permission to use, copy, modify, and distribute this software in
// object code form for any purpose and without fee is hereby granted,
// provided that the above copyright notice appears in all copies and
// that both that copyright notice and the limited warranty and
// restricted rights notice below appear in all supporting
// documentation.
//
// AUTODESK PROVIDES THIS PROGRAM "AS IS" AND WITH ALL FAULTS.
// AUTODESK SPECIFICALLY DISCLAIMS ANY IMPLIED WARRANTY OF
// MERCHANTABILITY OR FITNESS FOR A PARTICULAR USE.  AUTODESK, INC.
// DOES NOT WARRANT THAT THE OPERATION OF THE PROGRAM WILL BE
// UNINTERRUPTED OR ERROR FREE.
//
// Use, duplication, or disclosure by the U.S. ** is subject to
// restrictions set forth in FAR 52.227-19 (Commercial Computer
// Software - Restricted Rights) and DFAR 252.227-7013(c)(1)(ii)
// (Rights in Technical Data and Computer Software), as applicable.
//

//-----------------------------------------------------------------------------
//- StdAfx.h : include file for standard system include files,
//-      or project specific include files that are used frequently,
//-      but are changed infrequently
//-----------------------------------------------------------------------------
//#if defined(_DEBUG) && !defined(AC_FULL_DEBUG)
//#pragma message("Building debug version of this module to be used with non-debug/Prod AutoCAD")
//#define DEBUG_THIS_ONLY
#undef _DEBUG
//#endif
#pragma once
#define ARX0525_MODULE

#pragma pack (push, 8)
#pragma warning(disable: 4786 4996)
//#pragma warning(disable: 4098)

//-----------------------------------------------------------------------------
#define STRICT

#ifndef VC_EXTRALEAN
#define VC_EXTRALEAN                        //- Exclude rarely-used stuff from Windows headers
#endif

//- Modify the following defines if you have to target a platform prior to the ones specified below.
//- Refer to MSDN for the latest info on corresponding values for different platforms.
#ifndef WINVER                                                        //- Allow use of features specific to Windows 95 and Windows NT 4 or later.
#define WINVER 0x0601                        //- Change this to the appropriate value to target Windows 98 and Windows 2000 or later.
#endif
#ifndef _WIN32_WINNT
#define _WIN32_WINNT 0x0601
#endif


//- ObjectARX and OMF headers needs this
#include <map>

//-----------------------------------------------------------------------------
#include <afxwin.h>                                //- MFC core and standard components
#include <afxext.h>                                //- MFC extensions
#include <afxcmn.h>                                //- MFC support for Windows Common Controls

//-----------------------------------------------------------------------------
//- Include ObjectDBX/ObjectARX headers
//- Uncomment one of the following lines to bring a given library in your project.
//#define _BREP_SUPPORT_                                        //- Support for the BRep API
//#define _HLR_SUPPORT_                                                //- Support for the Hidden Line Removal API
//#define _AMODELER_SUPPORT_                                //- Support for the AModeler API
//#define _ASE_SUPPORT_                                                        //- Support for the ASI/ASE API
//#define _RENDER_SUPPORT_                                        //- Support for the AutoCAD Render API
//#define _ARX_CUSTOM_DRAG_N_DROP_        //- Support for the ObjectARX Drag'n Drop API
//#define _INC_LEAGACY_HEADERS_                        //- Include legacy headers in this project
#include "arxHeaders.h"


//-----------------------------------------------------------------------------
#include "DocData.h" //- Your document specific data class holder
#include <afxcontrolbars.h>

//- Declare it as an extern here so that it becomes available in all modules
extern AcApDataManager<CDocData> DocVars ;
#include "math.h"
const double Deg2Rad = atan(1.0) / 45;
#pragma pack (pop)


但断点还是不好用
论坛插件加载方法
发帖求助前要善用【论坛搜索】功能,那里可能会有你要找的答案;
如果你在论坛求助问题,并且已经从坛友或者管理的回复中解决了问题,请把帖子标题加上【已解决】;
如何回报帮助你解决问题的坛友,一个好办法就是给对方加【D豆】,加分不会扣除自己的积分,做一个热心并受欢迎的人!
回复

使用道具 举报

已领礼包: 2个

财富等级: 恭喜发财

 楼主| 发表于 2017-6-5 10:59:36 | 显示全部楼层

还有其他的解决方法吗,这个方法不好用
论坛插件加载方法
发帖求助前要善用【论坛搜索】功能,那里可能会有你要找的答案;
如果你在论坛求助问题,并且已经从坛友或者管理的回复中解决了问题,请把帖子标题加上【已解决】;
如何回报帮助你解决问题的坛友,一个好办法就是给对方加【D豆】,加分不会扣除自己的积分,做一个热心并受欢迎的人!
回复

使用道具 举报

已领礼包: 2个

财富等级: 恭喜发财

 楼主| 发表于 2017-6-8 16:56:55 | 显示全部楼层

问题没有解决,不会是混悬赏的吧?
论坛插件加载方法
发帖求助前要善用【论坛搜索】功能,那里可能会有你要找的答案;
如果你在论坛求助问题,并且已经从坛友或者管理的回复中解决了问题,请把帖子标题加上【已解决】;
如何回报帮助你解决问题的坛友,一个好办法就是给对方加【D豆】,加分不会扣除自己的积分,做一个热心并受欢迎的人!
回复

使用道具 举报

已领礼包: 5060个

财富等级: 富甲天下

发表于 2017-6-9 07:20:52 来自手机 | 显示全部楼层
不是提示你了,百度一下很难吗
论坛插件加载方法
发帖求助前要善用【论坛搜索】功能,那里可能会有你要找的答案;
如果你在论坛求助问题,并且已经从坛友或者管理的回复中解决了问题,请把帖子标题加上【已解决】;
如何回报帮助你解决问题的坛友,一个好办法就是给对方加【D豆】,加分不会扣除自己的积分,做一个热心并受欢迎的人!
回复

使用道具 举报

已领礼包: 2个

财富等级: 恭喜发财

 楼主| 发表于 2017-6-9 13:27:12 | 显示全部楼层

大哥,要是百度的方法好用,我还至于在这里发帖子吗
论坛插件加载方法
发帖求助前要善用【论坛搜索】功能,那里可能会有你要找的答案;
如果你在论坛求助问题,并且已经从坛友或者管理的回复中解决了问题,请把帖子标题加上【已解决】;
如何回报帮助你解决问题的坛友,一个好办法就是给对方加【D豆】,加分不会扣除自己的积分,做一个热心并受欢迎的人!
回复

使用道具 举报

已领礼包: 488个

财富等级: 日进斗金

发表于 2019-10-6 17:15:25 | 显示全部楼层
是不是应该先全部编译一下?我不熟

论坛插件加载方法
发帖求助前要善用【论坛搜索】功能,那里可能会有你要找的答案;
如果你在论坛求助问题,并且已经从坛友或者管理的回复中解决了问题,请把帖子标题加上【已解决】;
如何回报帮助你解决问题的坛友,一个好办法就是给对方加【D豆】,加分不会扣除自己的积分,做一个热心并受欢迎的人!
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-4-24 12:09 , Processed in 0.183348 second(s), 46 queries , Gzip On.

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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