RSS
热门关键字:
当前位置 : 主页>嵌入式开发>Symbian OS>列表

How to display Symbian strings and descriptors in Visual C debugger

来源:我要研发网 作者: 时间:1970-01-01 点击:




Currently, using Visual Studio is a little bit painful when you deal with descriptor since you cannot directly display their content (you have to use the memory window). Here is a little trick that will allow you to display clear content of Symbian descriptors. 字串1

For this, you will have to take benefit of a feature of Microsoft Visual Studio called "Auto Expand". It allows the debugger to specify rules to display the content of custom data. This feature can be configured manually by editing the AutoExp.dat file which is located by default in C:\Program Files\Microsoft Visual Studio\Common\MSDev98\Bin) 字串5

Open this file in your favorite text editor, copy/paste the following text at the end of it:


;=======================================================
;
; Symbian Strings & Descriptors
;
;=======================================================
TDes16=<,t> length= max=
TDesC16=<,t> length=
TPtr=length= max= ptr=
TPtr16=length= max= ptr=
TPtrC=length= ptr=
TPtrC16=length= ptr=
TBuf<*>=length= max= buf=
TBufC<*>=length= buffer=
HBufC16=length= buffer=
TLitC<*>=length= buf=

TDes8=<,t> length= max=
TDesC8=<,t> length=
TPtr8=length= max= ptr=
TPtrC8=length= ptr=
TBuf8<*>=length= max= buffer= 字串4
TBufC8<*>=length= buffer=
HBufC8=length= buffer=
TLitC8<*>=length= buffer=

TFileName=
TFullName=

Re-start the environment, put a breakpoint or two, start the debugger, and here you are....

字串8

Display of a HBufC content

Isn’t it nice ?

字串1

最新评论共有 0 位网友发表了评论
发表评论
评论内容:不能超过250字,需审核,请自觉遵守互联网相关政策法规。
用户名: 密码:
匿名?
注册
相关文章