Variables not showing when debugging in Eclipse

I use Eclipse Galileo for developers.

When I work in debug mode, the current variables and their values ​​are not displayed in the variables window. The window stays empty when I iterate over my code after the breakpoint.

It worked last night, so I'm puzzled. Any reason why this could be happening, and any troubleshooting tips?

+90
debugging eclipse
Mar 30 '11 at 18:25
source share
27 answers

In the end, I tried to do something simply by dropping the Debug perspective, which seemed to work:

Window => Perspective => Reset Perspective ...

Thanks for the comments.

+104
Mar 30 '11 at 18:41
source share

Window → Show View → Variables

+19
Jun 06 '13 at 17:28
source share

My problem was that I could not see the variable names, but just the value. After trying for quite some time, I got a solution: Click the down arrow (on the "Variables" tab) → Layout → show columns

He did the trick!

+16
Sep 16 '15 at 18:06
source share

Resetting the perspective was not enough for me, I had to first remove the "Variables" tab, and then reset the perspective (which restored the "Variables" tab to working). Another thing not mentioned above that may help others is when the tab of variables is not working, the tab header is in italics (whatever that means). When it works, it returns to the normal font.

+14
Aug 01 2018-11-11T00:
source share

I restarted Eclipse and it worked again.

+4
Nov 04 '14 at 9:58
source share

try right-clicking on the variable and select the check, then it will appear in a pop-up window

+3
Mar 30 '11 at 18:30
source share

I found that I needed to remove static declarations if I wanted to see variables, but this works better ...

Change / view static variables when debugging in Eclipse

+2
Apr 11 '14 at 20:26
source share

What worked for me was this: I had an empty Variables view for the top stack. I selected the bottom stack stack, then reinstalled the top one, and the Variables view updated somehow. Note. I use Eclipse Mars, so this error seems to be back in this version (or maybe another one with the same symptoms?).

+2
Aug 13 '15 at 3:37
source share

In my case, the variable was not displayed, because in the debuger settings (in my case xdebug) I changed Max children / max data / max the depth of the array to large values ​​... I reset config and it worked

+1
Jan 26 '16 at 17:39
source share

If you can jump to breakpoints, this is normal for Reset Perspective.

In the version of Eclipse: Luna Service Release 2 (4.4.2) Build id: 20150219-0600 I noticed that not only the View Variable was empty, but the buttons for navigating through the execution (buttons of the F5, F6, F8 functionality) were disabled. In this case, go to Debug View, right-click on the line with the yellow pause symbol and select the "Resume" option. At the next breakpoint, the View variable will be automatically populated, and the launch navigation buttons will be turned on. I can not explain why

+1
May 12 '16 at 9:07 a.m.
source share

Windows -> showView -> variable

or you can reset perspective

windows → settings → perspective → restore Default

+1
Jul 18 '16 at 16:54
source share

Also: your process must be paused for Eclipse to display variables. If it is running, Eclipse will not display any variable.

To pause a stream, select the stream in the debug view and click Pause

+1
May 30 '17 at 15:07
source share

Could not find a solution by trying the above answers - Perhaps this is very specific to my case - The solution was to ensure that “Skip all breakpoints” is not included in Eclipse Run → Skip all breakpoints (ctl-alt-B) ( toggle)

+1
Aug 29 '17 at 10:10
source share

I ran into this problem because eclipse thinks the executable is commented out. There is a #ifndef shell, and the condition evaluates to false in the project part. Unfortunately, the CDT is not smart enough (Helios or Keppler) to understand that it is not always wrong, and when passing through this part of the code, the variable window does not work. I can still check the individual values ​​of the variables.

0
Aug 29 '13 at 17:50
source share

I had the same problem and after installing MinGW I could see the variables.

0
Nov 16 '13 at 6:33
source share

I used the Fender style above, but is selected for the "Watch" variable. Once, on the "Expressions" tab, I switched to the "Variables" tab and Voila - the variables are back in business.

0
May 14 '14 at 18:27
source share

None of the solutions worked for me. What solved my problem was under the down arrow in the Variable window. In the Layout option, I needed to select "Variables View Only", and then again see the values ​​of the variables.

This problem also suddenly appears out of nowhere. Debug worked for one moment, and not for the next.

0
Aug 07 '15 at 16:21
source share

I also have this problem: EclipseNeon + Tomcat8 does not display all variables in debug mode. I tried the sentences without success. Then I debugged the same web project with NetBeans8 + GlassFish4, and all the variables are listed with values. Then I debugged the same web project with NetBeans8 + Tomcat8, and not all variables are listed. Then I installed GlassFish4 for EclipseNeon and, while debugging the same web project, all variables are listed with values. So the problem is in Tomcat8. Note: run Eclipse as an administrator to install GlassFish4; NetBeans makes it easier to install other servers.

0
Feb 14 '17 at 13:44 on
source share

My prbolem was that I used OpenMP , I disabled OpenMP, then local variables appeared.

0
May 09 '17 at 11:36
source share

Resetting and reopening Eclipse didn't help me, but it worked for me:

click the down arrow in the VariablesLayoutSelect columns → Check which columns you want.

Even if I already had both “name” and “value” values, I didn’t select them and select them again, click “ OK ” and the column appeared.

0
May 15 '17 at 15:46
source share

In my case, I think the potential reason is that the Variables View not properly initialized. Variables View init blank An alternative is to introduce another breakpoint before the correct code needs to change the variables. After entering the second breakpoint (above the highlighted one), eclipse will refresh the view and everything will be fine again.

0
May 15 '18 at 8:13
source share

Perhaps your Java compiler is configured not to store variable information. Right-click the project in Project Explorer, then select Properties> Java Compiler> Add Variable Attributes to the generated class files (used by the debugger). Without this parameter, you will only see fields in the Variables view, not local variables.

0
Jul 07 '18 at 7:20
source share

As with any bad software, there is no cure for this abnormal behavior. What is good for one does not work for others.

I let the debugger stop at the braking point once, then again a second time and a third time the beast showed a representation of variables with all the data in it.

0
Aug 22 '18 at 11:36
source share

Assuming you have a debugging idea of ​​how you like it, and you don't want to reset it every time this error appears, try this. It is assumed that in the "debug view" the views "Expressions" and "Variables" are open.

Double-click the Expressions tab (the actual tab with text, not the window pane). This maximizes it. Repeat to restore it to the previous size / location. This should reset everything except the expressions. Repeat for the variable tab and this will reset the expressions.

This worked for me on Windows 10 with Eclipse:
Version : 2018-09 (4.9.0)
Build ID : 20180917-1800
Java : jdk1.8.0_171

0
Nov 27 '18 at 17:14
source share

Make sure you use it correctly with breakpoints.

My problem was between the chair and the keyboard. I spent a lot of time troubleshooting just to understand that I misused it with breakpoints ...

I use LiClipse with PyDev here: you need to make sure that you set a breakpoint that will be run before you finish your script. Also (another stupid mistake I made), this breakpoint should be on the line that the code really is on (cannot be on an empty line).

0
Dec 22 '18 at 12:38
source share

For me, the solution to the problem was to configure xdebug correctly. I added the following lines of code in php.ini:

zend_extension = "C: \ xampp \ php \ ext \ php_xdebug.dll"

xdebug.remote_enable = 1

xdebug.show_local_vars = 1

The important part that I missed: xdebug.remote_enable = 1

-one
Jan 01 '16 at 19:14
source share

If you are looking for a “live view of the object you are working with” when you hover your mouse over and all you see is the name, make sure you put a breakpoint on the test method. Otherwise, when you mouse over, you will get the name of the method.

In any case, I hope this helps someone. I tried all of the above steps, which is great! but I still couldn’t view the object I was working with live. It could just be a rookie mistake.

Good luck

-one
Aug 23 '17 at 19:38 on
source share



All Articles