Trick: Checking The Contents of Descriptors in MSVC6 (Symbian)

xiaoxiao2021-03-06  23

THE MOST USEFUL FACILILILILE TESTING IS To Be Able To View The

Contents of a descriptor, Which Can Be Achieved Through The Following:

INSERT A BREAKPOINT IN THE CODE.

2. Ensure That "Display Unicode Strings" is Checked in the

Tools> Options> Debug Dialog.

3.enter the descriptor variable name inTo the Watch window.

4.expand the value in the watch window.

5.apply casts to the descriptor name (desname)

Depending on the value of the itype attribute.for Example, for unicode itype = 3, Cast Like this: (TTEXT16 *) (& desname) 4

Refer to Nokia document: Testing A Series60 Application.That document introduces a lot of skills for testing and debugging symbian app.Although it was written for Series60 Application, you will also benefit a lot from it if you program UIQ related applications.

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

New Post(0)