12-23-2011, 09:06 AM | #1 |
Junior Member
Posts: 5
Karma: 10
Join Date: Dec 2011
Device: kindle
|
Application remote debugging
Hi,
in java is possible to remote debug an application using "socket attach" connection and follow program flow via Eclipse debugging tools. To do this is needed to start the remote JAR using special parameters as the follows: java -Xdebug -Xrunjdwp:transport=dt_socket,server=y,address="800 0" -jar Test1.jar My question is if is possible to load and launch a kindlet (if is in a jar managed by kindle) in the device, using this parameters so we can attach to it and debug it. Thaks. |
12-23-2011, 11:08 AM | #2 |
Kindle Dissector
Posts: 662
Karma: 475607
Join Date: Jul 2010
Device: Amazon Kindle 3
|
On the kindle touch JDB remote debugging is built in and can be enabled without a jailbreak. Older kindles do not have any debugging features built in and would require you to recompile CVM with debug support.
|
Advert | |
|
12-23-2011, 04:27 PM | #3 |
Member
Posts: 16
Karma: 10
Join Date: Dec 2011
Device: Kindle Touch
|
To elaborate a little on yifanlu's statement: On the Kindle Touch, via ssh, you just have to
1. > mntroot rw 2. > vi /etc/upstart/framework 3. (if not yet familiar with vi, learn to use it) 4. find the commented-out line with the debug configuration (starts with #DEBUG), remove the # and change to suit (i tend to set suspend=n), save it 5. (i usually mntroot ro immediately when i don't need rw anymore) 6. > restart framework Then you can connect to the VM on the kindle through the usbnetworking. Obviously, the most daring task of those is number three *g*. Not sure if any editors besides vi are on the kindle, but you could of course always scp to/from your development machine and use your preferred one. |
12-23-2011, 04:34 PM | #4 | |
Kindle Dissector
Posts: 662
Karma: 475607
Join Date: Jul 2010
Device: Amazon Kindle 3
|
Quote:
|
|
12-23-2011, 07:58 PM | #5 | |
(offline)
Posts: 2,907
Karma: 6736092
Join Date: Dec 2011
Device: K3, K4, K5, KPW, KPW2
|
Quote:
>What is it then? I think it makes music. All I seem to get from it is beeps. A classic by now, and I still love it. http://www.redhat.com/archives/fedor.../msg01530.html :-) |
|
Advert | |
|
12-27-2011, 07:36 PM | #6 |
Junior Member
Posts: 5
Karma: 10
Join Date: Dec 2011
Device: kindle
|
I have K4 NT, I don't have /etc/upstart/framework, I have working SSH over WIFI, is possible use WIFI IP to debug using DEBUG_CVM_JDWP?
|
12-27-2011, 08:34 PM | #7 | |
Carpe diem, c'est la vie.
Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
|
Quote:
Last edited by geekmaster; 12-27-2011 at 08:39 PM. |
|
12-27-2011, 08:45 PM | #8 |
Kindle Dissector
Posts: 662
Karma: 475607
Join Date: Jul 2010
Device: Amazon Kindle 3
|
|
12-28-2011, 02:24 AM | #9 |
Junior Member
Posts: 5
Karma: 10
Join Date: Dec 2011
Device: kindle
|
The main problem is that I can't enable usbnet in normal mode but only in debug mode. Can you explain me the step to set K4 in usbnet in normal mode (permanent)?
Thaks. |
12-28-2011, 03:51 AM | #10 |
Junior Member
Posts: 5
Karma: 10
Join Date: Dec 2011
Device: kindle
|
I try to run custom start.sh, but JVM debug options (agentlib or Xrunjdwp) is not supported and JVM not start, any idea?
|
12-28-2011, 11:25 AM | #11 |
Kindle Dissector
Posts: 662
Karma: 475607
Join Date: Jul 2010
Device: Amazon Kindle 3
|
|
12-29-2011, 03:46 AM | #12 |
Junior Member
Posts: 5
Karma: 10
Join Date: Dec 2011
Device: kindle
|
How recompile CVM with debug support?
|
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Application update: application not installed error | Merischino | Kindle Fire | 4 | 12-01-2011 10:30 PM |
Debugging intermittent failures, how to? | guterm | Recipes | 9 | 01-16-2011 01:20 AM |
Debugging Password | kaitorii | enTourage Archive | 4 | 11-14-2010 09:34 AM |
PRS-500 Tools for debugging javascript ...? | Clemenseken | Sony Reader Dev Corner | 6 | 05-03-2008 02:51 PM |
iLiad Debugging and the iLiad | scotty1024 | iRex Developer's Corner | 2 | 10-23-2006 03:43 PM |