【Z一贴】Visual C++ Debugging: How to display UNICODE strings in Watch/QuickWatch window?
来源:互联网 发布:矩阵特征值的求法公式 编辑:程序博客网 时间:2024/06/08 19:12
Visual C++ Debugging: How to display UNICODE strings in Watch/QuickWatch window?
Q: I set a breakpoint in my source code to see the value of a string variable:
But in QuickWatch and Watch windows I see only the first character of string, like in images below:
What can I do to see the entire string contents?
A: Your build configuration is a UNICODE one, i.e. 'UNICODE' is added in 'Project Settings/C/C++/Preprocessor definitions'.
There are several solutions for the problem:
But in QuickWatch and Watch windows I see only the first character of string, like in images below:
What can I do to see the entire string contents?
A: Your build configuration is a UNICODE one, i.e. 'UNICODE' is added in 'Project Settings/C/C++/Preprocessor definitions'.
There are several solutions for the problem:
- Append to the variable name 'su' formatting symbol in Watch/QuickWatch window.
- Modify autoexp.dat file which is located in the same folder with msdev.exe.
See the comments in autoexp.dat and Symbols for Watch Variables topic in MSDN - Last but not the least, go to Tools/Options/Debug and check 'Display Unicode strings'.
- 【Z一贴】Visual C++ Debugging: How to display UNICODE strings in Watch/QuickWatch window?
- How to create/display a modal window?
- How To Use the ODBC .NET Managed Provider in Visual C# .NET and Connection Strings
- How to compare Strings in Java
- how to display '&' in subject using mailto?
- How to display Chinese/Japanese (Unicode) Character on Windows
- How to URL-encode/decode Strings (NSString) in Objective-C (iOS)[转载]
- How to configure SmartPhone for debugging in VS 2008
- How to setup java remote debugging in eclipse
- How to avoid Unicode pitfalls in Mojolicious
- How to format strings in an array in ruby?
- How to format DateTime in PowerShell window
- How to launch terminal Window in Fedora
- How to compile PortAudio in Visual Studio
- How to distinguish between strings in heap or literals?
- how to display different title in one master page
- How to display sub-totals in ALV Grid List?
- How to display XML in a JTree using JDOM
- JavaScript 中使用 replace 达到 replaceAll的效果
- Struts2学习笔记15:Struts2的文件上传和下载【续】二
- AES算法和RSA算法的JAVA實現
- 近期计划,让“易写易库(EXEK)”支持“斩月”?
- 你不知道但很有用的60个生活知识
- 【Z一贴】Visual C++ Debugging: How to display UNICODE strings in Watch/QuickWatch window?
- SHA算法JAVA的實現
- MD5算法JAVA的实现
- iostream iterator
- java关于日期的操作
- 身份证辅助模块,审核以及数据提取
- 30岁以前不必在乎的29件事情
- jsp页等待进度提示
- SSH集成总结