Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Blackberry debugging on Linux via bjdwp

I've gone down the long road of using Linux for Blackberry development. Currently that means:

bb-ant-tools - for building

net_rim_api.jar - and other Blackberry goodies from the Eclipse plugin 1.3.0

preverify - from either the J2ME SDK or WTK, I forgot which

Retrotranslator - for shoehorning some of Java 5 into J2ME

bjavaloader - from Barry, for pushing apps to my device

I'm pretty far off the beaten path, and I've given up Eclipse to boot because I prefer vim. The last remaining piece of the puzzle is:

Blackberry debugging on Linux

I've tried bjdwp, also from the Barry project. I can connect and see some console output when I attach via jdp. However trying to use jdp features seems to fail. Debugging as a remote application in Eclipse results in the following error:

terminate called after throwing an instance of 'Barry::Error'

what(): Controller: requested mode not supported

Could the best way be to setup jdwp in Windows in Virtualbox and connect remotely to that from Linux?

like image 717
Matthew Willis Avatar asked Feb 24 '11 20:02

Matthew Willis


1 Answers

This may be a simpleminded idea you've already considered but could you open up sockets from Linux to Windows and basically just do a print statement level debugging? You just need to get some data out so you can see what is going on, right?

like image 198
Tom Murphy Avatar answered Nov 05 '22 11:11

Tom Murphy