Eclipse中断点调试j2me程序方法
来源:互联网 发布:淘宝知识产权注册流程 编辑:程序博客网 时间:2024/05/29 09:15
使用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.
- Eclipse中断点调试j2me程序方法
- eclipse中断点调试debug
- myeclipse/eclipse中断点调试
- eclipse调试J2ME程序
- 在eclipse中断点调试jni
- 解决Eclipse无法调试J2ME程序的配置方法
- 解决Eclipse无法调试J2ME程序的配置方法
- 使用Eclipse调试J2ME程序
- 使用Eclipse调试J2ME程序
- 使用Eclipse调试J2ME程序
- 使用Eclipse调试J2ME程序
- 使用Eclipse调试J2ME程序
- 使用Eclipse调试J2ME程序
- 使用Eclipse调试J2ME程序
- 使用Eclipse调试J2ME程序
- 使用Eclipse调试J2ME程序
- 使用Eclipse调试J2ME程序
- 用Eclipse调试J2ME程序
- 百度年会惊现度娘
- TX (transaction) lock
- 精心设计,注重细节,一次性把事情做对
- 错过了,就是错过了。再回去,也不是以前的感觉了……
- life小语13
- Eclipse中断点调试j2me程序方法
- ipv6的一些特殊地址
- 堆和栈的区别
- 委托C#
- goal and plan of 2012-1
- asp.net中有关URL的信息
- MVC3里的AOP实现
- 写给程序员的最好的13条建议
- win7下大小写切换键的问题