Skip to main content

how to use debug information of cldc software

3 replies [Last post]
sandykhan
Offline
Joined: 2008-01-15
Points: 0

hi,
i want to know that how the information generated by debug build of CLDC software is useful? I want to say that what kind of information can be gathered from that, and how?

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
danila
Offline
Joined: 2006-09-25
Points: 0

Hi!
Debug build is useful if you need to diagnose internal CLDC VM problems.
It contains debug assertions and additional runtime tracing and debugging options.

sandykhan
Offline
Joined: 2008-01-15
Points: 0

Thanks Danila,
But I wanted to know how to diagnose those internal CLDC VM problems, the debug assertions it contains, additional runtime tracing and debugging options.

Can you plz tell me the procedure to extract all that information? Thanks in advance.

danila
Offline
Joined: 2006-09-25
Points: 0

Debug assertions fail and crash the VM when some internal VM problem is detected.
You typically should not do anything with assertions unless you see an assertion failure.

For the runtime options you can get the full list by running the debug VM build with -flags argument in the command line. All listed flags are available in debug build.

For the description of flags, you can look in the file src/vm/share/utilities/Globals.hpp in the CLDC source tree. The file starts with a general description of run-time switches framework and then go definitions of run-time flags.