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

  • SEARCH
  • Home
  • 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 6967211
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T16:17:29+00:00 2026-05-27T16:17:29+00:00

I am running my Android application in debug mode, where I have some constants

  • 0

I am running my Android application in debug mode, where I have some constants defined as static final variables living in an Interface.

When I’m in debug mode in Eclipse, and I hover over these constants to see their contents, I see null for Strings and 0.0 for my doubles.

The Interface looks like this:

public interface IMyConstants {
    public static double DOUBLE_CONST = 4.2235234;
    public static String STRING_CONST= "Should be some string";
}

This interface is in an external non-Android project that is included in the classpath.

Other constants from other referenced Android projects seem to be giving me their info, and they are declared in exactly the same way.

I am wondering if the debugger is having a hard time reading these because the project is non-Android, as that’s the only difference I can initially see.

Right before my breakpoint, I did output the value of the constant DOUBLE_CONST to LogCat, and got the correct value.

This:

// Hovering over any of the constants here do not show their true value in debug

double value = myValue / IMyConstants.DOUBLE_CONST; 
Log.i("MyProject", "IMyConstants.DOUBLE_CONST: " + IMyConstants.DOUBLE_CONST);
Log.i("MyProject", "IMyConstants.STRING_CONST: " + IMyConstants.STRING_CONST);

/*
 * The breakpoint is here.. 
 * hovering over DOUBLE_CONST above shows DOUBLE_CONST = 0.0
 * hovering over STRING_CONST above shows STRING_CONST = null
 */
someBreakPointedMethod();  

Gave:

12-19 23:32:54.316: INFO/MyProject(23806): IMyConstants.DOUBLE_CONST: 4.2235234
12-19 23:32:54.316: INFO/MyProject(23806): IMyConstants.STRING_CONST: Should be some string

Why doesn’t the debug object view (the one that pops up when you hover over a variable) work in this situation?

  • 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-27T16:17:30+00:00Added an answer on May 27, 2026 at 4:17 pm

    Just put your break point after Your statements
    like this

    • hovering over DOUBLE_CONST above shows DOUBLE_CONST = 0.0
    • hovering over STRING_CONST above shows STRING_CONST = null

    The breakpoint Should be here..

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

Sidebar

Related Questions

I have android application that I need to debug using eclipse. When I right
Have a server-socket running in an android application, which I debug using the emulator.
I'm running my android application through Eclipse on Toshiba tablet ( Which runs Android
Hello I have an android application which has a service running. After 20 mins
I have a service running in my Android application which contains a HashMap that
I have an Options menu up and running in my Android application and I've
I wrote some android application using Eclipse. I found apk file in the bin
Is there some way to have Eclipse NOT present the Android Device Chooser dialog
I have a service running on my android application, the service is a socket
I believe I read at some point that due to Android running on the

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.