facebook

Cant see actual variables while debugging java files

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

  1. MyEclipse IDE
  2.  > 
  3. General Development
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #289300 Reply

    lrajendran
    Member

    When my breakpoint is hit during run time, I cant see the actual variables from my java files under variables list, I only see this, arg1, arg2 etc. I’m using tomcat as webserver and I checked the jdk that it runs and the the jdk used by eclipse to build the files..those are the same version jdk 1.5_11

    I can see the variables when i hit a breakpoint in my JSPfiles , but not in java. How do i resolve this issue? Thanks in advance for the help.

    -LR

    #289315

    Loyal Water
    Member

    LR,
    I would like you to try something out:-
    1. Create a new Java Project.
    2. Add a new class file to this project called TestClass with a main method.
    3. Paste the following code in your class:-

    
    public class TestClass {
    
        /**
         * @param args
         */
        public static void main(String[] args) {
            // TODO Auto-generated method stub
            
            int i=0;
            i=i+i;
            i=i++;
            i++;
            System.out.println(i);    
        }
    
    }
    

    4. Add a break point to the line where the variable i has been declared (int i=0;)
    5. Right click on your TestClass and go to Debug As > Java Application.
    6. Switch to the debug perspective and check if i shows up under the Variable Window.

    Incase i doesn’t show up, please go to MyEclipse > Installation Summary > Installation Details and paste the information here for me.

    #289316

    lrajendran
    Member

    Nipun,

    I tried that and when it hit the breakpoint, I can see the variable i in the list, but the same is not happening for my other projects, any idea why this is happening?

    Here is the installation details:

    *** Date:
    Wednesday, September 24, 2008 12:54:34 PM EDT

    ** System properties:
    OS=Windows2003
    OS version=5.2
    Java version=1.5.0_11

    *** MyEclipse details:
    MyEclipse Enterprise Workbench
    Version: 5.5.1 GA
    Build id: 20070521-5.5.1-GA

    *** Eclipse details:
    MyEclipse Enterprise Workbench

    Version: 5.5.1 GA
    Build id: 20070521-5.5.1-GA

    Eclipse Graphical Editing Framework

    Version: 3.2.2.v20070208
    Build id: 20070208-1315

    Eclipse Platform

    Version: 3.2.2.r322_v20070119-RQghndJN8IM0MsK
    Build id: M20070212-1330

    Eclipse RCP

    Version: 3.2.2.r322_v20070104-8pcviKVqd8J7C1U
    Build id: M20070212-1330

    Eclipse Java Development Tools

    Version: 3.2.2.r322_v20070104-R4CR0Znkvtfjv9-
    Build id: M20070212-1330

    Eclipse Plug-in Development Environment

    Version: 3.2.1.r321_v20060823-6vYLLdQ3Nk8DrFG
    Build id: M20070212-1330

    Eclipse Project SDK

    Version: 3.2.2.r322_v20070104-dCGKm0Ln38lm-8s
    Build id: M20070212-1330

    Eclipse startup command=-os
    win32
    -ws
    win32
    -arch
    x86
    -launcher
    C:\Program Files (x86)\MyEclipse 5.5.1 GA\eclipse\eclipse.exe
    -name
    Eclipse
    -showsplash
    600
    -exitdata
    1380_f4
    -vm
    C:\Program Files (x86)\MyEclipse 5.5.1 GA\jre\bin\javaw.exe

    -LR

    #289384

    Loyal Water
    Member

    I hope the project has not gone corrupt. You can try using the -clean command to try and fix this issue but incase that doesn’t help, you might have to create a new project and transfer your code to the new project to continue working.
    https://www.genuitec.com/forums/topic/troubleshoot-using-the-clean-command-line-argument/

    #289404

    lrajendran
    Member

    Nipun,

    I used the -clean command and that fixed the issue. Thanks for your time.

    -LR

    #289445

    Loyal Water
    Member

    Glad you got it to work. Thanks for letting me know.

Viewing 6 posts - 1 through 6 (of 6 total)
Reply To: Cant see actual variables while debugging java files

You must be logged in to post in the forum log in