Re: [android-developers] How to debug android project under command line?

2012-02-07 Thread ji fei
Thanks for your link, It's really useful.
I have already got 2G ram, but my eclipse got to no response always. It's
no double that eclipse is great ide, i thought it's must caused by myself.

I still don't know why google just provider script for emacs, why not
provider some script for vim.

On Tue, Feb 7, 2012 at 3:24 PM, Kristopher Micinski
krismicin...@gmail.comwrote:

 Haha, sounds like you need more ram... :-)...

 Anyway, yes, jdb can be used, the interface to the android debugger is
 fairly high level and based on the java debugging protocol (the java wire
 protocol, I believe).  So you should be able to attach your debugger
 through adb to your device..


 http://asantoso.wordpress.com/2009/09/26/using-jdb-with-adb-to-debugging-of-android-app-on-a-real-device/

 Google android jdb and you should find a great amount of information as
 well..

 Looks like android.el contains keybindings and other cool stuff to help
 you use it within emacs?

 kris


 On Mon, Feb 6, 2012 at 8:35 PM, hongbosb ufo22940...@gmail.com wrote:

 I really don't want to start eclipse. I have opened so much application
 on my computer. If the eclipse is launched, i can can almost do nothing. I
 heard that jdb can used to debug android project, is it efficient to use. I
 have used gdb before and quit like it.

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en


  --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] How to debug android project under command line?

2012-02-07 Thread Kristopher Micinski
On Tue, Feb 7, 2012 at 3:01 AM, ji fei ufo22940...@gmail.com wrote:

 Thanks for your link, It's really useful.
 I have already got 2G ram, but my eclipse got to no response always. It's
 no double that eclipse is great ide, i thought it's must caused by myself.

 I still don't know why google just provider script for emacs, why not
 provider some script for vim.


Probably because that's the editor that someone at google knew how to
script?  android.el is a tiny file, it can't have taken more than a day of
work, I'm sure that with similar vim knowledge you could probably achieve
the same fairly quickly..  (Although I'm not sure how scriptable vim is
compared to emacs because I just don't use it..)

By the way, 2G ram is not considered very much these days, (off topic but
someone told me that android wouldn't even build on eight now..).  To add
to that, eclipse uses a fair amount of memory, and to get a usable system
you'd want to bumb up to at least four I'd suspect.  (And make sure you're
running a device rather than the emulator!)

kris

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] How to debug android project under command line?

2012-02-07 Thread Kostya Vasilyev
7 февраля 2012 г. 19:03 пользователь Kristopher Micinski 
krismicin...@gmail.com написал:


 By the way, 2G ram is not considered very much these days, (off topic but
 someone told me that android wouldn't even build on eight now..).  To add
 to that, eclipse uses a fair amount of memory, and to get a usable system
 you'd want to bumb up to at least four I'd suspect.  (And make sure you're
 running a device rather than the emulator!)


Actually, looking in System Monitor under Debian/64 right now, I've only
got 1,6 G in use out of the 4 G installed in my system (running Chromium
with Gmail, Eclipse, and a couple of terminals).

So, not denying the obvious that more physical memory is always better

... it's worthwhile checking Eclipse's memory settings.

Running on a system with 32G of physical RAM and leaving Eclipse at its
default memory settings still won't do any good.

Here is the relevant portion of my eclipse.ini:

--launcher.XXMaxPermSize
512m
--launcher.defaultAction
openFile
-vmargs
-Xms128m
-Xmx1024m

This lets Eclipse use up to 1 GB of RAM and makes it much happier (as far
as my workspaces go).

More info here:

http://wiki.eclipse.org/Eclipse.ini

-- Kostya


 kris

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] How to debug android project under command line?

2012-02-07 Thread Kristopher Micinski
2012/2/7 Kostya Vasilyev kmans...@gmail.com



 7 февраля 2012 г. 19:03 пользователь Kristopher Micinski 
 krismicin...@gmail.com написал:


 By the way, 2G ram is not considered very much these days, (off topic but
 someone told me that android wouldn't even build on eight now..).  To add
 to that, eclipse uses a fair amount of memory, and to get a usable system
 you'd want to bumb up to at least four I'd suspect.  (And make sure you're
 running a device rather than the emulator!)


 Actually, looking in System Monitor under Debian/64 right now, I've only
 got 1,6 G in use out of the 4 G installed in my system (running Chromium
 with Gmail, Eclipse, and a couple of terminals).

 So, not denying the obvious that more physical memory is always better

 ... it's worthwhile checking Eclipse's memory settings.

 Running on a system with 32G of physical RAM and leaving Eclipse at its
 default memory settings still won't do any good.

 Here is the relevant portion of my eclipse.ini:

 --launcher.XXMaxPermSize
 512m
 --launcher.defaultAction
 openFile
 -vmargs
 -Xms128m
 -Xmx1024m

 This lets Eclipse use up to 1 GB of RAM and makes it much happier (as far
 as my workspaces go).

 More info here:

 http://wiki.eclipse.org/Eclipse.ini


Agreed, the day that I upped my eclipse settings to use much more memory I
felt like things got much faster, but I'm not convinced that this wasn't
mostly placebo.  However, I've since stopped using eclipse.

That being said, I think once you add in an emulator, eclipse, and whatever
else he has running, you've probably got quite a hog.

kris

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] How to debug android project under command line?

2012-02-07 Thread John Davis
Hello Kostya,

Interesting.  I'm running on win7. I was expecting the eclipse icon to be a
link to the .exe with some command arguments.  I was going to use your
options to tweak my own.  However, it runs eclipse.exe without options.
 Does anyone have some win7 settings?

Ill check your eclipse.ini link to see if there is another way.

John

2012/2/7 Kostya Vasilyev kmans...@gmail.com



 7 февраля 2012 г. 19:03 пользователь Kristopher Micinski 
 krismicin...@gmail.com написал:


 By the way, 2G ram is not considered very much these days, (off topic but
 someone told me that android wouldn't even build on eight now..).  To add
 to that, eclipse uses a fair amount of memory, and to get a usable system
 you'd want to bumb up to at least four I'd suspect.  (And make sure you're
 running a device rather than the emulator!)


 Actually, looking in System Monitor under Debian/64 right now, I've only
 got 1,6 G in use out of the 4 G installed in my system (running Chromium
 with Gmail, Eclipse, and a couple of terminals).

 So, not denying the obvious that more physical memory is always better

 ... it's worthwhile checking Eclipse's memory settings.

 Running on a system with 32G of physical RAM and leaving Eclipse at its
 default memory settings still won't do any good.

 Here is the relevant portion of my eclipse.ini:

 --launcher.XXMaxPermSize
 512m
 --launcher.defaultAction
 openFile
 -vmargs
 -Xms128m
 -Xmx1024m

 This lets Eclipse use up to 1 GB of RAM and makes it much happier (as far
 as my workspaces go).

 More info here:

 http://wiki.eclipse.org/Eclipse.ini

 -- Kostya


 kris

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en


  --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en




-- 
John F. Davis

独树一帜

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] How to debug android project under command line?

2012-02-07 Thread John Davis
LOL.  My bad. Its the settings in the .ini file.  Not the command line
options.  NVM.

On Tue, Feb 7, 2012 at 11:06 AM, John Davis davi...@gmail.com wrote:

 Hello Kostya,

 Interesting.  I'm running on win7. I was expecting the eclipse icon to be
 a link to the .exe with some command arguments.  I was going to use your
 options to tweak my own.  However, it runs eclipse.exe without options.
  Does anyone have some win7 settings?

 Ill check your eclipse.ini link to see if there is another way.

 John


 2012/2/7 Kostya Vasilyev kmans...@gmail.com



 7 февраля 2012 г. 19:03 пользователь Kristopher Micinski 
 krismicin...@gmail.com написал:


 By the way, 2G ram is not considered very much these days, (off topic
 but someone told me that android wouldn't even build on eight now..).  To
 add to that, eclipse uses a fair amount of memory, and to get a usable
 system you'd want to bumb up to at least four I'd suspect.  (And make sure
 you're running a device rather than the emulator!)


 Actually, looking in System Monitor under Debian/64 right now, I've only
 got 1,6 G in use out of the 4 G installed in my system (running Chromium
 with Gmail, Eclipse, and a couple of terminals).

 So, not denying the obvious that more physical memory is always better

 ... it's worthwhile checking Eclipse's memory settings.

 Running on a system with 32G of physical RAM and leaving Eclipse at its
 default memory settings still won't do any good.

 Here is the relevant portion of my eclipse.ini:

 --launcher.XXMaxPermSize
 512m
 --launcher.defaultAction
 openFile
 -vmargs
 -Xms128m
 -Xmx1024m

 This lets Eclipse use up to 1 GB of RAM and makes it much happier (as far
 as my workspaces go).

 More info here:

 http://wiki.eclipse.org/Eclipse.ini

 -- Kostya


 kris

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en


  --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en




 --
 John F. Davis

 独树一帜






-- 
John F. Davis

独树一帜

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] How to debug android project under command line?

2012-02-07 Thread Kostya Vasilyev
Technically speaking, they are command line options, it's just that Eclipse
can read them from an .ini file, which is easier to manage (and which
already exists by default in the Eclipse directory).

7 февраля 2012 г. 20:08 пользователь John Davis davi...@gmail.com написал:

 LOL.  My bad. Its the settings in the .ini file.  Not the command line
 options.  NVM.


 On Tue, Feb 7, 2012 at 11:06 AM, John Davis davi...@gmail.com wrote:

 Hello Kostya,

 Interesting.  I'm running on win7. I was expecting the eclipse icon to be
 a link to the .exe with some command arguments.  I was going to use your
 options to tweak my own.  However, it runs eclipse.exe without options.
  Does anyone have some win7 settings?

 Ill check your eclipse.ini link to see if there is another way.

 John


 2012/2/7 Kostya Vasilyev kmans...@gmail.com



 7 февраля 2012 г. 19:03 пользователь Kristopher Micinski 
 krismicin...@gmail.com написал:


 By the way, 2G ram is not considered very much these days, (off topic
 but someone told me that android wouldn't even build on eight now..).  To
 add to that, eclipse uses a fair amount of memory, and to get a usable
 system you'd want to bumb up to at least four I'd suspect.  (And make sure
 you're running a device rather than the emulator!)


 Actually, looking in System Monitor under Debian/64 right now, I've only
 got 1,6 G in use out of the 4 G installed in my system (running Chromium
 with Gmail, Eclipse, and a couple of terminals).

 So, not denying the obvious that more physical memory is always
 better

 ... it's worthwhile checking Eclipse's memory settings.

 Running on a system with 32G of physical RAM and leaving Eclipse at its
 default memory settings still won't do any good.

 Here is the relevant portion of my eclipse.ini:

 --launcher.XXMaxPermSize
 512m
 --launcher.defaultAction
 openFile
 -vmargs
 -Xms128m
 -Xmx1024m

 This lets Eclipse use up to 1 GB of RAM and makes it much happier (as
 far as my workspaces go).

 More info here:

 http://wiki.eclipse.org/Eclipse.ini

 -- Kostya


 kris

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to
 android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en


  --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en




 --
 John F. Davis

 独树一帜






 --
 John F. Davis

 独树一帜



  --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] How to debug android project under command line?

2012-02-06 Thread hongbosb
I really don't want to start eclipse. I have opened so much application on 
my computer. If the eclipse is launched, i can can almost do nothing. I 
heard that jdb can used to debug android project, is it efficient to use. I 
have used gdb before and quit like it. 

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] How to debug android project under command line?

2012-02-06 Thread Kristopher Micinski
Haha, sounds like you need more ram... :-)...

Anyway, yes, jdb can be used, the interface to the android debugger is
fairly high level and based on the java debugging protocol (the java wire
protocol, I believe).  So you should be able to attach your debugger
through adb to your device..

http://asantoso.wordpress.com/2009/09/26/using-jdb-with-adb-to-debugging-of-android-app-on-a-real-device/

Google android jdb and you should find a great amount of information as
well..

Looks like android.el contains keybindings and other cool stuff to help you
use it within emacs?

kris

On Mon, Feb 6, 2012 at 8:35 PM, hongbosb ufo22940...@gmail.com wrote:

 I really don't want to start eclipse. I have opened so much application on
 my computer. If the eclipse is launched, i can can almost do nothing. I
 heard that jdb can used to debug android project, is it efficient to use. I
 have used gdb before and quit like it.

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en