This page is about setting up eclispe to do Platform development. If you are using the SDK, please refer to the documentation on http://developer.android.com
On Fri, Apr 24, 2009 at 2:01 AM, Explore Android <[email protected]> wrote: > > Hi Xav, > > I am looking to debug Android applications using Eclipse Ganymede > 3.4.2 in Ubuntu 8.10 which is running on VMWare virtual machine. > I found the following webpage which outlines the steps to be followed, > > http://source.android.com/using-eclipse > > I could not understand steps at the following stages, > >>>Eclipse setup to work on developer tools > >>>To work on Java developer tools, the principle is the same, except you >>>specify /path/to/tool when using the option "Create project from existing >>>source." > >>>Once the project is created, you need to set up the Java Build Path: > > >>1. Select the project you just created. > >>2. Project > Properties > >>3. Select "Java Build Path" from the left-hand menu. > >>4. Choose the "Source" tab. > >>5. Expand the single toolname/src entry. > >>6. Double click the "Excluded: (none)" item. > >>7. Add to the excluded (bottom) list: "MakeFile" and > "resources/". > >>8. Close the dialog. > >>9. Back in the "Source" tab, click "Add Folder...", and add > toolname/src/resources. > >>10. Click OK. > > In above steps I did not understand step 5, i.e., I did not understand > where to find toolname/src. I dont find any such thing after following > steps until 4. > > To carry on to see where I land up, I ignored the above steps and > continued with the steps given in that site and I have a problem at > following stage, > >>>In another shell, start DDMS (the Dalvik debug manager): > >>>cd /path/to/android/root >>>ddms # you should get a splufty debugging console > > I get the error as "ddms: command not found" > > Could you please let me know what I am missing there? > > Thanks > > On Apr 7, 10:28 pm, Xavier Ducrohet <[email protected]> wrote: >> (I'm not sure why you install the SDK and plugin if you're going to >> work from the open source tree. You could have started at step 4) >> >> Did you make sure to select the browser in DDMS (since you use the >> plugin, use the DDMS perspective in Eclipse). >> The 8700 port is for the application selected in the device view in >> Eclipse. If another application if selected then you're probably >> debugging a different application. >> >> Xav >> >> >> >> On Mon, Apr 6, 2009 at 4:52 PM, Alice <[email protected]> wrote: >> >> > I am new in Android, need some help on debugging with DDMS on Ganymede >> > Eclipse. >> >> > The problem I am having is that some breakpoints are getting hit and >> > some are NOT. Not sure what exactly is the reason. >> >> > Overall setup: >> >> > 0. I have a linux m/c with Ubuntu 8.10 (interpid) >> >> > 1. Installed SDK version 1.1 for Linux >> >> > 2. I installed Ganymede eclipse 3.4.2. Installed the ADT plugin using >> > the steps as >> > inhttp://developer.android.com/sdk/1.1_r1/installing.html#installingplugin. >> >> > 3. Obtained cupcake code using repo client and built it successfully >> > as mentioned inhttp://source.android.com/download. Configured Eclipse >> > as mentioned inhttp://source.android.com/using-eclipse. >> >> > 4. Then I followed the steps "Debugging the emulator with Eclipse" in >> >http://source.android.com/using-eclipse >> >> > 5. I launch emulator from <android-root>/out/host/linux-x86/bin/ >> > emulator. Setup proxy etc. >> >> > 6. I was trying to debug browser application and putting some >> > breakpoints in WebView.java files namely in loadUrl() and loadData() >> > functions. I launch browser and it displays the homepage >> > (say,www.google.com) >> > correctly. Then I create a Debug Config for brower application with >> > Host = localhost and Port = 8700. And select Debug. >> >> > 7. I then select Menu > Refresh to check if breakpoints are hit. >> >> > The issue is it is NOT hit. >> >> > Another point to clarify is that the build and the code are in synch >> > as I didn't make a change in the code. But though I see sometimes >> > control goes thru comments .. not sure how. >> >> > Any input on what could actually be going wrong will be highly >> > appreciated! >> >> -- >> Xavier Ducrohet >> Android Engineer, Google. > > > > -- Xavier Ducrohet Android Developer Tools Engineer Google Inc. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~----------~----~----~----~------~----~------~--~---

