Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6219427
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T07:46:44+00:00 2026-05-24T07:46:44+00:00

I am hoping to use jdb to debug android apps in the emulator via

  • 0

I am hoping to use jdb to debug android apps in the emulator via the ddms go between.

I have successfully set a breakpoint in my class’ onCreate and the debugger (jdb) duly breaks. However if I try to “list” the code it says it can not find the source file. I start jdb like this from emacs :-

jdb -sourcepath="~/programming/android/projects/myproj/src/net/richardriley/myproj" -attach localhost:8700

and I know for a fact that myact.java is there in that directory. I am a jdb newbie but isnt sourcepath the way to deal with this? And if not what should I be doing?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T07:46:45+00:00Added an answer on May 24, 2026 at 7:46 am

    I’m a JDB newbie myself and I finally figured out how to solve this problem.

    You need to be in the src folder rather than right in the directory with the source files. That way JDB can follow the package name to find your source files (if I’m not mistaken).

    So if you have a file ~/programming/android/projects/myproj/src/net/richardriley/myproj/SomeClass.java you would refer to it in JDB as net.richardriley.myproj.SomeClass and you would set your sourcepath to ~/programming/android/projects/myproj/src/

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I currently have a MySQL database which I was hoping to use to store
I don't have any experience with SVG but I was hoping to use this
I'm hoping to find out what tools folks use to synchronize data between databases.
i was hoping to use grep to check and see if permissions have been
I have a statistical question in R and I was hoping to use Chebyshev
With a listbox visible, I have clicked on the windows form hoping to use
I am hoping to use Groovy more as a functional language than I can
What's the right way in Drupal to create reports? I was hoping to use
I've been playing around with LLVM hoping to learn how to use it. However,
I don't use Excel very often, but I'm hoping there is a fairly straightforward

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.