Skip to main content
GameDev.net gamedev.net
🔒 Locked

Debugging MIDlets

Started by Fistandantilus Aug 6, 2003 at 10:41 AM 0 replies 900+ views
Original Post
Fistandantilus
Fistandantilus
I´m using Eclipse and J2ME Wireless Toolkit to develop MIDlets. Currently, in order to debug them, I´m spreading System.out.println like a maniac in my code. Needless to say .... not very eficient. How do you debug your MIDlets? How can you debug line by line like done in VisualC++ 6 by pressing f10 repeatedly?
Skizz
Skizz
Well, that''s the method I''ve been using and it''s worked OK until now (I recently did Monopoly for Hasbro). Although, I use the C preprocessor and:
#define DEBUG_PRINT(message) System.out.println (message)
to allow me to remove them all easily. It''s also a bit more efficent to use #define to declare constants rather than final member variables (but you lose type checking).
There is a way to use SunONE IDE to do line by line debugging, but I beleive that the phone manufacturer''s SDK/Emulator needs to somehow interact correctly. I don''t use SunONE as my PC is getting a bit old now, so I''m afraid I can''t help much more than this.

Skizz

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.