明经CAD社区

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 576|回复: 0

Public symbols for AutoCAD 2012

[复制链接]
发表于 2011-7-1 13:16:16 | 显示全部楼层 |阅读模式
作者:kean
原文地址:http://through-the-interface.typepad.com/through_the_interface/2011/06/public-symbols-for-autocad-2012.html

Better information when debugging .NET and ObjectARX applications has been a long-standing request from our developer community. I’m happy to say that this week we’ve posted a set of public debugging symbols (in the form of stripped PDB files) to our new corporate symbol server,
http://symbols.autodesk.com/symbols. For now' we’ve posted the 32- and 64-bit PDBs for AutoCAD 2012, and will continue to update them with symbols for our public releases.
Now let’s look at en example of debugging with and without the Autodesk symbol server added to your Visual Studio debugging options.
Without symbols, you have little visibility on the call stack beneath your own code:

If we follow the process linked to above, we bring up the Visual Studio debugging options:

And then add our symbol server, accepting the default caching location:

Then when we next run a debugging session for our project, you’ll notice a lag while the various symbol files are downloaded locally. I also enabled unmanaged debugging in my project settings, so that we see the symbols for native code inside AutoCAD, too.

There doesn’t quite appear to be a complete stack – the symbols I’m seeing are in native code, so it may be the managed symbols were not fully resolved, I need to do some more checking – but we do have more than we had.
You may find the function names at times surprising: AutoCAD is a product with a complex (and often highly efficient) architecture, and it may not always be clear what functions are performing which functions. But this additional call-stack information should certainly be of help to you when troubleshooting coding problems (whether on your side or ours).
Update
A couple of additional notes:
You shouldn’t be surprised if you see a “403 – Forbidden: Access is denied” error when you try to load the symbol server link in a web browser. There is nothing publicly visible (“nothing to see here, folks” :-), as the content is just used by development environments that are able to make use of the PDB information.
The other point is about my call stack comment: the call stack is fairly complete – there may be a few calls missing – and the issue is not around managed calls. When I thought about it a bit more, I realised that with standard commands you would very rarely see managed calls above you in the call stack: you are called pretty directly by native code. Some UI framework code may exist above you if you’re inside a palette implementation (for instance), but otherwise I think it’s pretty rare you’ll see symbols from
AcMgd.dll
and
AcDbMgd.dll.
You will probably find these symbols of use if analysing minidumps (which can be located on your system when AutoCAD crashes via the Error Reporting tool in AutoCAD without too much difficulty). Which would probably be a good topic for a subsequent post.

本帖子中包含更多资源

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

x
"觉得好,就打赏"
还没有人打赏,支持一下

小黑屋|手机版|CAD论坛|CAD教程|CAD下载|联系我们|关于明经|明经通道 ( 粤ICP备05003914号 )  
©2000-2023 明经通道 版权所有 本站代码,在未取得本站及作者授权的情况下,不得用于商业用途

GMT+8, 2024-12-24 07:19 , Processed in 0.157140 second(s), 31 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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