Eclipse中断点调试j2me程序方法

本文提供了一套详细的步骤来解决Eclipse中的调试问题,包括配置Java--Debug的Debuger timeout为15000ms,设置远程调试配置允许远程虚拟机终止,并确保在启动模拟器后再启动调试器。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

使用EclipseMe插件,在preference   里边把Java--Debug的Debuger   timeout   调到15000ms,同时确认suspend   execution   on   uncaught   exceptions   和suspend   executioen   on   complication   errors没有被选中,然后debug的时候,debug   as   Emulated   midlet,然后就可以调试了。

debugging   with   eclipse   2.1.1   windows   works   fine   if   you   allow   the   debugged   VM   to   exit.   Otherwise,   mine   just   crashed   the   moment   when   eclipse   attached.

1.   for   wtkrun   use   debug= "3452 "   or   some   other   port   you   like
2.   make   a   debugger   config   for   remote   debugging
3.   enable   "Allow   termination   of   remote   VM "
4.   specify   the   same   port   in   debugger   config
5.   just   leave   the   host   name   blank
6.   never   start   the   debugger   before   the   emulator

Step   6   is   important,   otherwise   you   make   your   eclipse   hang   up   on   you   and   block.   Wait   for   the   emulator   to   get   ready   (it   won 't   start   execution   though)   and   then   connect   from   eclipse.   Interestingly   enough,   it   seems   to   be   ready   when   it   prints   "VM   not   ready ".

If   the   emulator   complains   about   address   already   in   use,   move   on   to   a   different   port.   Be   sure   to   change   the   port   both   in   wtkrun   and   debug   config.   Sometimes   it   seems   that   a   locked   debugger   or   crashed   emulator   wastes   a   port.   Maybe   something   with   windows.   Just   move   on   to   another.   Or   reboot...

Once   the   connection   is   up   it   works   like   a   charm,   source   level   debugging   and   local   variables   are   as   you   expect   them   to   be.


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值