[Repost] Display Symbian strings and descriptors in the Visual C ++ debugger

xiaoxiao2021-03-06  14

Display Symbian strings and descriptors in the Visual C debugger 2005-01-12 Views: 83

Text / peter jiang (translated from newlc.com)

Now use Visual Studio has a very uncomfortable place to process a descriptor, because you can't display their content directly (you can only see in the emulator window). Here is a tip will allow you to show Symbian The content of the descriptor.

To achieve this, "Auto Expand" in Microsoft Visual Studio will play an important role. It allows debugger custom rules to display user data content. You can manually configure AutoExp.dat to achieve our purpose. This file Location At C: / Program Files / Microsoft Visual Studio / Common / MSDEV98 / BIN. Open this file in Notepad, paste the following code on its tail:

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

;

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, start the debugger. Hehe .........

转载请注明原文地址:https://www.9cbs.com/read-48952.html

New Post(0)