[Post] display the Symbian string and descriptor in the Visual C ++ Debugger

Source: Internet
Author: User

Display the Symbian string and descriptor in the Visual C ++ Debugger
Browsing times: 83
 
 

Text/Peter Jiang (translated from newlc.com)

One unpleasant thing about using Visual Studio is processing descriptors, because you cannot directly display their content (only visible in the simulator window ). here is a tip for you to display the content of the Symbian descriptor.

To achieve this goal, "auto expand" in Microsoft Visual Studio will play an important role. it allows the debugger to customize rules to display user data. you can manually configure autoexp. dat to achieve our goal. the file is stored in C:/program files/Microsoft Visual Studio/common/msdev98/bin. open this file in notepad and paste the following at the end of it:Code:

; ========================================================== ====================

;

; 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 =

Tbufc8 <*> = length = buffer =

Hbufc8 = length = buffer =

Tlitc8 <*> = length = buffer =

Tfilename =

Tfullname =
 

Restart the compiler, insert two breakpoints, and start the debugger ............

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.