is there any way to debug a J2ME application in a Windows Mobile emulator in Netbeans?
Just can’t figure it out.
Thanks!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can’t do a real debugging session there (like using breakpoints). A workaround is installing one java runtime for windows mobile (something like Esmertec Jbed) and writing something in console with System.out.println(), windows mobile emulator will echo your debugging texts. also you can use alerts for debugging.
A very good alternative is creating a debugging class: Place two MIDlets on your j2me project. one of them for your real MIDlet, and another for reading debug lines from an RMS. in running mode, you can write your debugging line in the RMS, and after a run, you can read them in the another MIDlet. you will find this approach so clean. You can also integrate this debugging idea with netbeans or j2me polish’s pre-processing feature.