如何在 MS Visual Studio 调试器中查看 DOMString(来自 apache xerces 库)?
我正在处理使用 Apache Xerces-C 库的代码(遗留代码)。 我试图在 Microsoft Visual Studio 调试器中查看 DOMString 的值(以及其他相关的 DOM 对象),但没有成功。 我尝试了以下操作
1) 我在 autoexp.dat
文件中添加了以下内容:
;------------------------------------------------------------------------------
;Xerces
DOMString=<fHandle->fDSData->fData,su>
;------------------------------------------------------------------------------
结果:相同的行为,它显示了内存位置
2) 我尝试快速观看 DOMString
使用“var,su
”语法的变量
Result: ""
如果有人遇到这个问题并找到解决方法,这对我会有很大帮助。
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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
查看 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.