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.
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
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 :
delete eclipse project from disk.
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.
import that eclipse project again.
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...
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
- Variables not showing while debugging in Eclipse
- Java APIs Classes does not show variables value while debugging in Eclipse 3.x
- Eclipse - not showing variables in debugging mode - tcl
- Modify/view static variables while debugging in Eclipse
- Eclipse Debug: Source Not Found while remote debugging
- Eclipse "Class File Editor" Source Not Found While Debugging
- Modify static variables while debugging in Eclipse
- Eclipse Hover over variables in debug not showing contents
- Values not showing up during debugging in eclipse PDT
- Is there any reason for Eclipse showing assignment variables in while loops as valid?
- Device not showing in eclipse even if USB debugging is on
- While debugging in eclipse the code navigation buttons get disabled, the stackframe also is not visible
- Global arrays/structs not accessible in gdb while debugging gfortran executable in Eclipse
- Source not found error in Eclipse while debugging
- How to access objects and variables while debugging in Eclipse
- Variables values are not showing in eclipse debug mode
- Eclipse “Class File Editor” Source Not Found while Debugging in Eclipse Kepler
- Eclipse - Hover not showing variables in abstract Java class
- Eclipse IDE debugging servlet code a variable is not registered in the Variables tab
- Eclipse not stopping at breakpoints while debugging
- Session.get in hibernate working while step by step debugging but not while running in eclipse
- server not showing in runtime enviroment while adding server(tomcate) in eclipse
- Cannot see variables while debugging flash on eclipse
- Eclipse does not highlight matching variables
- Viewing complete strings while debugging in Eclipse
- Apache Tomcat Not Showing in Eclipse Server Runtime Environments
- eclipse not showing Avd manager window and android project
- Eclipse Problems View not showing Errors anymore
- How to execute some function in eclipse while debugging a java program?
- Eclipse projects not showing up after placing project files in workspace/projects
More Query from same tag
- What does 'Share Project' Subversive do?
- How to find my old Eclipse workspace?
- Running the C++ app from the Eclipse IDE
- Working Set "Other Projects" in Eclipse Juno gone?
- Java file compile using javac unable to refer to other files in the same directory
- How to make a default package eclipse
- How do i create a local CVS repository in Eclipse Helios?
- Source code compatibility setting in Eclipse
- Eclipse wrongly formats a Spring p-namespace bean
- Google Play Services v13 error meta-data in AndroidManifest
- Show default editors in perspective?
- Compiler Errors...it ran yesterday?
- How to fix this generic problem within the repository pattern?
- Android - "Parsing Data for android-21 failed"
- call a own eclipse plugin method from any java application
- How to automatically open folder location in package explorer corresponding to the viewed .java
- difference between MultiSourceEditor and MultiPageEditorPart
- Ubuntu C++ executable
- how to "pull down" a parameter when refactor in eclipse?
- How to insert a swf animation (flash) in Java for Android (Eclipse)
- Eclipse start up error
- Eclipse plugin "copy treeItem or tree data "
- Eclipse:Unable to set up sdk path in preference
- Building project in eclipse?
- How to check if the Internet connection (Wifi/Mobile data) is ENABLED?
- Eclipse, How do I execute code in a bundle after the WorkBench window has been created?
- Set up a button that can hold dynamic information
- java.lang.NoClassDefFoundError: org/springframework/context/EnvironmentAware
- Write Spark DF to a flat file on local pc from Eclipse
- Run XSLT file directly in browser - Eclipse IDE