How I do it:
1. Delete Cordova.jar and remove it from build paths 2. Open the cordova/framework project in your workspace 3. Open framework's project properties -> Android, and check "Is Library" 4. Open your project's properties -> Android and click "Add..." to add it This way when you edit a framework source file and press debug, it will pick up your change. On Mon, Aug 13, 2012 at 5:30 PM, Joe Bowser <[email protected]> wrote: > Yes, it is. However, I just provide a reference for my debugging, > since I want to have as little Eclipse magic in my work as possible. > In your Android project, you need to have something like this in your > cordova-2.0.0.jar.properties file: > > cordova-2.0.0.jar.properties: > src="/Path/to/your/incubator-cordova-android/framework" > > This should allow you to debug Cordova on Android. You can't do it > through Eclipse because Google broke it a while ago and didn't fully > fix it. It does help to have the framework project in Eclipse as > well. > > Joe > > On Mon, Aug 13, 2012 at 1:55 PM, Braden Shepherdson <[email protected]> > wrote: > > Is it possible, when debugging a Cordova app on Android, to import the > > source code for the framework into a project, instead of just the jar? > > > > I'm hoping to set a breakpoint in the native code and have it trigger > while > > I'm running my app. My Eclipse-fu is weak. > > > > Braden >
