I am debugging using Eclipse PDT with XAMPP
This question is related to this item:
Variables viewer on Eclipse debugging truncates the string values
I am having the same problem as in that link.
I watch a variable and in the Expresssions tab, I can only view about 1000 characters in the "details" window.
If I right click and use 'copy expressions' I get the same 1000 chars.
I have also right clicked the details pane... Max Length and tried setting it to 0 or 30000 (my data is about 20k) and neither changed the max of 1000.
This defeats the whole purpose of me spending 2 days to get Eclipse setup for debugging... If there is no workaround for this, can anyone suggest a PHP debugger that will not have this limitation?
I was going to try the Zend debugger, but saw a video that suggested it uses the same exact Expresssion/Detail pane to show its data... can anyone confirm/deny this?
Thanks!
In the Variables view you right-click on the variable and select Change value. If your variable is huge you have to wait a few minutes (in this case Eclipse doesn't respond to commands) but in the end Eclipse will show your variable entirely.
I tried just about everything imaginable... I believe this is a bug in Eclipse that should be fixed, but anyway, I finally just create a new test case that eliminates me needing to debug a 20k piece of data...
There isn't an option to set no limit but it is possible to increase the limit within the XDebug config.
Within Eclipse go to
Window -> Preferences -> PHP -> Debug -> Installed Debuggers.
Highlight XDebug and click Configure.
Within the window that pops up you can see the array depth
and the max children. Setting those values higher will give you more
data back about your variables.
source
Related
I am trying to open a folder that I opened before, but it crashed.
I can open other projects, and restarting the computer didn't help.
Maybe it's because I had a big file opened (400mb) in this folder, but I cant close this file because the vscode crashing every time when I tried open the workspace..
https://github.com/microsoft/vscode/issues/126127
https://github.com/microsoft/vscode/issues/130375
I had the same problem.
Just delete the folders under %appdata%/code/backups/ and restart VS.
I solved the problem by restarting my computer and then opening VS code from a different folder.
To open large JSON files, I use Dadroit JSON Viewer, thus preventing the problem from repeating itself.
Not worry much about that!, same issue occurred in my pc but there is easy steps to fix this error as following.
solution: Enable "paging files" option OR increase virtual memory.
steps:
1). Right click on "ThisPC" or "MyPC" and go to properties. then go to "Advanced System setting". [ you can also find that using SEARCH button ]
2). then click on settings of Performance block. its open another pop-up window in that ,go to the "advanced" option .
3). you can see the Virtual memory section ,in that click on change button.
4). now first disable the checkbox of "Automatically manage paging file size for all drive".
-> and select the "custom size:"
-> in Initial size(MB): { you need to add the same value as recommended, which is also displayed downside section }
-> in Maximum size(MB): you need to enter the value that you get multiply by 3 of your allocated RAM size.
for example:
your pc's ram is 4 gb then you can enter 4098*3= "12288mb".
then set it , click ok, ok, ok, and then just RESTART your pc. 🥹
hope god will help you.
It's easy than you think, you just need to update your laptop. and try to use Vs code again you will see that it works.
I've customized the perspectives I use often in Eclipse pretty thoroughly. Sometimes, however, I accidentally close a window and I need to reopen it. However, when I do, all the selected columns reset to the defaults.
The easiest way to reproduce this, is in Java mode (or any mode, I suppose):
Choose upside-down triangle in the Tasks view
Click configure columns
Remove a column, such as "Completion".
Window -> Save Perspective as... It will say "do you wish to overwrite Java"?
Choose yes, because the changes don't actually save anyway
Window -> New Window
And you will see, in the new Window, the removed column has returned!
Is there a way to make this change permanent? I tried looking through the files in /.metadata/.plugins/.org.eclipse.core.runtime/.settings but as I didn't know what I was looking for, I didn't know what to change. I also tried File->Export->General->Preferences, but the Tasks settings file created there had no mention of columns. I also tried the advice in this thread but none of it was helpful really. Does this feature exist?
Edit: After getting little response here and on their forums, I have created an Eclipse bug
I've found this article about using the shift key to make the tooltips popup when you want them to. This works ok, but I was wondering if there is a way to just add a delay to the tooltip. I like the default hover behavior, it's just a bit too eager on the display. I'm using Helios on Windows.
Excellent question!
There doesn't appear to be a control in Eclipse to do it, but these two blog entries:
http://untamedmind.wordpress.com/2008/11/08/changing-the-mousehovertime-add-delay-on-the-tooltips-pop-up/
http://dandar3.blogspot.com/2008/09/tooltip-delay-in-windows.html
both say it can be done in the windows registry. Caveat: I have not tried this.
Eclipse tooltip delay is derived from Windows, so if you change the delay of windows by editing registory it will show delay on eclipse as well.
In Windows -> Start -> Run -> regedit.exe
Go to below path in registry.
HKEY_CURRENT_USER/Control Panel/Mouse/
Modify value for Key MouseHoverTime
MouseHoverTime : 600
NOTE : The value is in miliseconds, for me it was 8 miliseoncds and I
changed it to 600 miliseoncds.
System restart required after changing value in registry
OR
You can also assign shortcut key to get the tooltop when ever you want. Please refer below link
Link
I suggest to turn off hovers by default, and define a customKey in Eclipse->Preferences if necessary.
I often end up with lots of empty panes in Eclipse that can only be minimized but not destroyed. How do I close these?
Update:
In this screenshot you can see two minimized on the upper left and several on the right hand side. In the center are four more. They only seem to be restorable in the Debug mode.
http://img406.imageshack.us/img406/9900/eclipse1.png
this happened to me, too. What worked for me (based on FilmJ and douncon's comments) was to open a class file, then drag that tab over the top of the empty pane.
Select Window -> Reset Perspective. That should reset the current perspective (what you call "mode") to its' initial state, (hopefully) closing all irrelevant views.
Something seems terribly wrong with your Eclipse. Maybe you should reinstall it. It is possible that you installed a buggy plugin.
First of all, what do you mean by pane? Eclipse has:
Windows (Eclipse itself, e.g. instance)
Documents (tabs)
Views (properties, tasks, explorer, etc)
If by 'pane' you mean document editors, you have problems either with your Eclipse version or most likely one of the installed plugins.
Each View also can be closed (except maybe some project types (perspectives) of which I'm not aware). For CDT (C/C++) you can close practically everything.
I'll recommend you download latest Eclipse version with no plugins, extract it to different folder, and check if that happens again. If yes, please explain more in details (like Eclipse version, perspective you are using, any side plugins, etc).
Also a good places are Eclipse community forum, mailing list and bugz :-)
I had the same problem. For me it helped to go into the right perspective and activate the functionality that caused the window in the first place. Once I reactivated the functionality, in my case "QNX Memory Analysis perspective", I was able to close all the windows one by one.
The conclusion is you have to refill the empty windows with content and then you will be able to close them properly.
So, it's really very easy for this to happen, if you open an editor that's incompatible with the existing editor, you can often end up having to place it outside of the tab list in one of your editor panes, then you might clear or copy that, typically while trying to add that view to a tab list.
In any case, what it's done is create a new editor, and all you need to do is drag some file to that empty editor window giving it some form of context, then close it.
I had the same issue. I followed #zvikico, but instead of just resetting, I first reset and then closed all the perspectives. Please follow the following to fix the problem. It worked for me:
Window -> Perspective -> Reset perspective..
After resetting follow below:
Window -> Perspective -> Close All Perspectives
When I build my projects in FlexBuilder, I want to see any errors immediately; I don't want to have to hover or open the Problem pane every time, nor do I want to always leave it open.
Any ideas?
I do not think this is a problem.
As far as I know the Eclipse settings and there is no such.
You can use shortcut keys SHIFT+ALT+Q and press X to fast open the problem panel.