如何在 MS Visual Studio 调试器中查看 DOMString(来自 apache xerces 库)?

发布于 2024-07-14 00:58:15 字数 810 浏览 15 评论 0原文

我正在处理使用 Apache Xerces-C 库的代码(遗留代码)。 我试图在 Microsoft Visual Studio 调试器中查看 DOMString 的值(以及其他相关的 DOM 对象),但没有成功。 我尝试了以下操作

1) 我在 autoexp.dat 文件中添加了以下内容:

;------------------------------------------------------------------------------
;Xerces
DOMString=<fHandle->fDSData->fData,su>
;------------------------------------------------------------------------------

结果:相同的行为,它显示了内存位置

2) 我尝试快速观看 DOMString 使用“var,su”语法的变量

Result: ""

我在 Apache Xerces 一般邮件列表

如果有人遇到这个问题并找到解决方法,这对我会有很大帮助。

I am working on code (legacy code) which uses Apache Xerces-C library. I am trying to view the value of DOMString (and other related DOM objects) in Microsoft Visual Studio Debugger but in vain. I have tried the following

1) I Added the following in the autoexp.dat file:

;------------------------------------------------------------------------------
;Xerces
DOMString=<fHandle->fDSData->fData,su>
;------------------------------------------------------------------------------

Result: Same behavior, it shows the memory location

2) I tried to quick watch the DOMString variable using "var,su" syntax

Result: ""

I have asked this question at the Apache Xerces General mailing list.

In case someone encountered this problem and had a workaround, it would be of great help to me.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

若水般的淡然安静女子 2024-07-21 00:58:15

查看 Xerces 库代码及其在我的代码库中的用法(我们仅包含标头)后,我发现有一个用于调试的预处理器指令 (XML_DEBUG)。

您必须通过添加此预处理器指令(如果尚未添加)来构建您的项目(使用 Xerces 项目/libaray)。

在 Visual Studio 中右键单击项目 -> 属性-> C/C++-> 预处理器,然后在预处理器定义中添加 XML_DEBUG

除此之外,您还需要编辑 autoexp.dat 文件,如上面的帖子中所述。

希望这可以帮助。

After looking at the Xerces library code and it's usage in my code base (we included only headers), I figured out that there was a preprocessor directive (XML_DEBUG) for debugging.

You have to build your project (which is using Xerces project/libaray) by adding this preprocessor directive if not added already.

In visual studio right click on project -> properties -> C/C++ -> Preprocessor and then add XML_DEBUG in Preprocessor Definitions

Along with this you need to edit autoexp.dat file as mentioned in the post above.

Hope this helps.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文