Accepted answer

i ended up trying something easy by resetting the debug perspective, which seemed to work:

window => perspective => reset perspective...

thanks for the comments.


for me the solution of the problem was to configure xdebug properly. i added in the php.ini this lines of code :

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

xdebug.remote_enable = 1

xdebug.show_local_vars = 1

the important part i was missing : xdebug.remote_enable = 1


if you are looking for a "live view of the object your are working with " when you hover over and all you see is the name make sure you place a break point on the method you are testing on. otherwise when you hover over you will only get the method name.

anyways i hope this helps someone. i tried all the above steps which are great! but i still could not view the object i was working with live. it may just be rookie mistake.

best of luck!


i was running into this problem because eclipse thinks that the code that is executing is commented out. there is an #ifndef wrapper, and the condition evaluates to false in part of the project. unfortunately, cdt wasn't quite smart enough (helios or keppler) to realize that it's not always false, and when stepping through that portion of the code, the variables window doesn't work. i can still inspect individual variable values.


i had the same issue and after i installed mingw i could see the variables.


i used fender's style above, but selected to "watch" a variable. once in the expressions tab, i just moved over to the variables tab and voila - variables back in business.


none of the solutions worked for me. what solved my problem was under the drop down arrow in the variable window. on the layout option, i had to choose "variables view only" and then i could see the variable's values again.

this problem also suddenly appear out of nowhere. one moment debug was working and the next it wasn't.


i too have this problem: eclipseneon + tomcat8 doesn't show all the variables when in debug mode. i've tried above suggestions without success. then i have debugged the same web project with netbeans8 + glassfish4 and all the variables are listed with values. then i have debugged the same web project with netbeans8 + tomcat8 and not all the variables are listed. then i've installed glassfish4 for eclipseneon and, debugging the same web project, all the variables are listed with values. so, the problem is in tomcat8. a note: run eclipse as administrator to install glassfish4; with netbeans is easier to install other servers.


my prbolem was that i used openmp, i disabled openmp then local variables appeared.


resetting the view and re opening eclipse did not help me, but this worked for me:

click on the arrow down button in the variables window -> layout -> select columns -> check whichever columns you want.

even though i already had both 'name' and 'value' checked, i unselected and selected them again, clicked 'ok' and the column appeared.


in my case,i think the potential cause is variables view did't initial properly. variables view init blank alternative is enter another breakpoint before right code need to change variables.after entering the second breakpoint(above menthioned) added,eclipse will refresh the view and all things should be normal again.


like with every bad software the treatment for this wrong behaivier does not exist. what is good for one does not work for others.

i let the debuger to stop on a brakepoint once, then again second time and on the third time the beast has shown the variable view with all data in it.


assuming you have your debug view just how you like it and don't want to have to reset it everytime this bug appears, try this. this assumes your "debug view" has both "expressions" and "variables" views open.

double-click the expressions tab (the actual tab with the text, not the 'window bar'). this will maximise it. repeat to restore it to previous size/location. that should reset everything except expressions. repeat for the variables tab and it will reset 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


most often you would have imported multiple eclipse projects and you have switched between git branch. and then, you build and import incorrect project where debugger is not expected to come!

if reset eclipse perspective doesn't worked. then do following things :

  1. delete eclipse project from disk.

  2. clean and build the eclipse project (in my case i used ant tool).
    note: verify whether your are building the project in which the debugger is expected to come. the correct project name to be built can be found by hovering over a file where debug point is set.

  3. import that eclipse project again.

  4. also, verify whether correct jdk is being selected at preferences -> installed jres


nothing above worked for me. what did work was this (from menu) :

window -> perspective -> close perspective


window -> perspective -> open perspective -> debug


there could be different reasons.
for my cases, variable value showing had been working for long time. then one day, it just stopped working in same line of code. i found out the culprit was that aborted but still hanging junit test threads holding on windows file resources.
after closing all windows applications(including eclipse), i found there were a couple of directories (under junit test resource directory) which i can't delete because some files there were locked for unknown reason.
so i tried a windows reboot which fixed the eclipse debug issue.


in my case, the variable didn't show up because in the settings of the debuger (in my case xdebug) i changed max children / max data / max array depth to big values ... i reset the config and it worked


if you are able to jump on breakpoints, it is ok to reset perspective.

on eclipse version: luna service release 2 (4.4.2) build id: 20150219-0600 i notived that not only the variable view was empty, but also the buttons to navigate the execution (f5, f6, f8 functionality buttons) were disabled. in this case, go to debug view, right click to the row with the yellow pause symbol, and choose an option like "resume". on the next breakpoint, variable view will be automagically fullfilled and execution navigation buttons will be enabled. can't explain why


also: your process needs to be suspended for eclipse to show variables. if it is running, eclipse won't show any variable.

to suspend a thread, select a thread in the "debug" view, and hit "suspend"


did not find a solution after trying the above answers - maybe this is very specific to my case - solution was to ensure that the option "skip all breakpoints" is not enabled in eclipse run - > skip all breakpoints (ctl-alt-b) (toggle)


it's possible your java compiler is configured not to preserve variable information. right-click on the project in project explorer, then select properties > java compiler > add variable attributes to generated class files (used by the debugger). without this option set, you will only see fields in the variables view, not local variables.


what worked for me is the following: i had a blank variables view for the top stack frame. i selected a lower stack frame, then reselected the top one, and the variables view refreshed itself somehow. note: i'm using eclipse mars, so this bug appears to have returned in this version (or perhaps it's a different one, with the same symptoms?).


go to eclipse menu --> window ==> show view ==> variables

this should bring back your variables window in eclipse


try a right click on the variable and select inspect, then it should come up in a popup window


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

modify/view static variables while debugging in eclipse


i restarted eclipse and it worked again.


windows -- > showview --> variable

or you can reset the perspective

windows -- > preferences -- > perspective --> restore defaults


resetting the perspective wasn't quite enough for me, i had to first delete the "variables" tab and then reset the perspective (which reinstated the variables tab in a working state). one other thing not mentioned above which might help others - when the variables tab is not working, the tab title is in italics (whatever that signifies). when it's working it goes back to normal font.


my problem was that i couldn't see variables names, but just the value. after trying quite a while i got the solution: click on the down arrow (in degub variables tab) --> layout --> show columns

it did the trick!


window --> show view --> variables

Related Query

More Query from same tag