Debugging Your Project


Debugging Mobility projects can be accomplished in the same way as in general Java projects; right-click your project in the Projects node and choose the Debug Project command. The emulator opens, and after you select the MIDlet to run on the phone, the program execution stops at any set breakpoints.

Nevertheless, there are some things you should be aware of:

  • Not all third-party emulators support debugging commands equally well. If you encounter problems like breakpoints being skipped or step-into commands not working, it may be the result of a faulty runtime environment.

  • Always remember to disable obfuscation when debugging.

  • Method invocation is not supported by the CLDC JVMs, which can affect your debugging experience. For example, adding something like

    myObject.toString() to the Watch panel of the debugger will not return a correct result.

  • Debugging a mobile application is often slower than debugging J2SE applications.



NetBeans IDE Field Guide(c) Developing Desktop, Web, Enterprise, and Mobile Applications
NetBeans IDE Field Guide(c) Developing Desktop, Web, Enterprise, and Mobile Applications
ISBN: N/A
EAN: N/A
Year: 2004
Pages: 279

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net