To enable it :
After launching the app,
Enter : ###BREWDEBUG# OR ###273933284#
###0: Turn Debugging off.
###1: Memory Validation On every heap access, BREW walks
the heap to determine if the pointer is in valid range and
will not over-write/over-read a heap node. An exception
will be thrown if the heap access will cause corruption of a heap node.
###3: Largest Available Heap Block
Displays the maximum size block that can be allocated on
the heap in the upper left corner of the screen.
###5: Debug Malloc – throws exception on MALLOC failure
###6: Debug Null – Every Nth MALLOC is failed When this
debug sequence is turned on, every Nth MALLOC will
fail, even if RAM is available. Currently, N is set to 100.
###7: Sync/Async DBGPRINTF This debug sequence toggles
between two modes: synchronous DBGPRINTF and
asynchronous DBFPRINTF. In synchronous DBGPRINTF
mode, BREW waits for certain duration before returning
from a DBGPRINTF statement in order to allow time for
the DBGPRINTF message to be sent on the serial port. In
the default, asynchronous mode, the DBGPRINTF returns immediately.
###9: Debug Dump HeapEvery time this sequence is pressed, heap and
resource usage information is dumped on the emulator debug window
or onto the Serial port.
(All these has been tried and tested only for MotoRazr)
For a detailed info. check the following link:
No comments:
Post a Comment