Debugging HashMap java class in Eclipse

Posted on 2014-08-11
Last Modified: 2014-09-18
I wrote a small java program just to debug the HashMap class file using debug points in Eclipse.
Although on debuggin it did hang on the break point inside the put method in HashMap class, but i was unable to view the values of any variable either by moving my cursor on it or in variables view of Eclipse.

I want to understand the working of HashMap class for my knowledge from realy source code. As the code seems to be complex i want to debug it to understand step by step.
Please suggest some way to properly add debug points.

Also suggest some good way to learn about internal Working of HashMap class.

Question by:Rohit Bajaj
    LVL 31

    Expert Comment

    Can you post the code of your small Java program, showing where you placed the breakpoint(s) and what it is you want to understand? Generally speaking, using the debug capability in Eclipse to understand program flow involves not just the breakpoints, but where to step in, step over, etc.
    LVL 35

    Expert Comment

    You should be able to see the hash map values when you click on them. Can you post a screen shot of what you're doing?
    LVL 2

    Accepted Solution

    To a great extent the inner workings of the standard classes is JDK dependent.   So really the ultimate word is the source code itself.  For instance here is a link to for OpenJDK 8:

    Author Comment

    by:Rohit Bajaj
    Thanks for help.. I will update this shortly

    Featured Post

    Live: Real-Time Solutions, Start Here

    Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

    Join & Write a Comment

    Suggested Solutions

    Title # Comments Views Activity
    sumDigits  challenge 7 41
    Eclipse Neon and jdk 1.8.0 11 41
    What is the latest versions eclipse neon 2 60
    @SBGen Method 3 17
    Entering a date in Microsoft Access can be tricky. A typo can cause month and day to be shuffled, entering the day only causes an error, as does entering, say, day 31 in June. This article shows how an inputmask supported by code can help the user a…
    In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
    This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.
    This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.

    754 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    21 Experts available now in Live!

    Get 1:1 Help Now