I'm using intellij 2020.3.2. On one session of my macos system, I can open the evaluate expression window, using the correct shortcut or cliking this :
. And I can use my debugger with normal behavior.
But I've got another session on the system (same project and seems to be same conditions), where it is impossible to open this tool window, whatever I test. I can debug, set a break point and see the value by "quick evaluate", but the evaluate expression window cannot be opened.
At this point I do not give more infos on the project cause I don't think it makes a diff...
I tried in a first place with another empty project, I have the same behavior, so it is possible that it's a macos issue, I don't know.
I also tried to reinstall the IDE on this second session, but it does the same.
After I've done some unsuccessful search, I come here and directly ask if you have any idea?
There is Show toolbar option in the Debug tool window:
After an update, problem is solved.
Related
When debugging program in Idea (I'm using 14.1.5 Community Edition), it attempts to put the line I'm currently on close to the center of the screen. And it does so every single step. However, I find this default behavior very annoying, it looks like the code is jumping around.
I wonder if there a way to customize the debugger view in a way that the code would be fixed (as long as I'm not leaving one screen of code) and the current line highlighting would be moving around? (I didn't find it in the Debugger section of the settings.)
Many thanks.
You want to disable "Focus application on breakpoint" which is in the settings under Build,Execution, Deployment > Debugger - it's the first checkbox. It's help documentation reads:
If this check box is selected, on hitting a breakpoint, IntelliJ IDEA will show the location of this breakpoint in the editor and will attempt to bring its frame to the front.
This should do the trick.
Android Studio removes all my watch expressions after each debug.
How can I force it to keep my watches and save them in project?
There's no way to do save watches that I know of. However you can use "Auto-Variables-Mode" (bottom left debugger tab >> settings button). This will clean up some of the less desired variables in the debugger variables window, then hopefully you'll need less watches.
I have found that variables entered when not in debugging mode are lost since the interface cannot figure out the statements when they are not compiled and running.
Hopefully you have the same problem as me and starting debugging before entering your variables fixes it.
I am stepping through some code in VS2010. I noticed this icon in the side bar:
And since the apprearance of that icon, I am unable to use F10 to loop though code.
I tried changing many settings but nothing helps. I changed project properties, reset VS to default, but to no avail.
Im sure is a simple answer, but I am just not able to figure it.
UPDATE: Only happens if loop contains TRACE macro
If you want to remove bookmarks, Check in tools for "Clear Bookmarks" or here is the shortcut to remove all bookmarks "ctrl+k then ctrl+l"
Is there a way in Xcode to have your software open up the console for you? I would like to have it when my code compiles and runs in Debug to have the console open up automatically but in release for it to not open.
Thanks in advance.
A common way to achieve this is :
Open a new tab, and rename it 'Console' (or what name you want)
In this tab, show only the panes you want (in your case the console)
Go to Preferences>Behaviors
Tell Xcode to 'Show tab' and give it the name you set in 1. (you can set this at various moments, when build starts, or when app runs).
Now, each you will either compile or run your app, Xcode will switch to the tab you have set in Prefs.
You dont use code, you go to xcode pref's and do it there
This is where I came for the answer given and marked correct (although it's not clear it was what the asker quite wanted).
Arguably, a simpler version of the answer given is to set the Behaviors preferences to show the Debugger when a run starts. With the settings in the image below, this opens up the console (or the console + variable views or the variables view, depending on how it was last set - that's what 'Current Views' means).
On Eclipse, whenever I double click a tab, it fills the workspace (by hiding all other views like project tree, console, etc).
Is there any way to do this on Visual Studio?
Note: i'm not looking for full screen, just want a way to declutter the workspace but still have access to menus.
Are you after this?
Set shortcuts for the Window.AutoHideAll function and for the Window.ResetWindowLayout function. In order for the ResetWindowLayout to work, you have to export your settings (make sure you select "All Settings") with all windows expanded and then import them again.
ResetWindowLayout will restore all windows to the way they were the last time you imported your settings.
Not with double click on tab, but you can do the same with Shift+Alt+Enter key combination.
This keyboard shorcut was changed to F11 from 1.9.1 vscode version.
All keyboard Shortcuts: https://code.visualstudio.com/shortcuts/keyboard-shortcuts-windows.pdf
I was looking for that, as well, and I now just got used to using full screen (Shift+Alt+Enter), which hides a little too much, which you seem to think, as well, but does in fact still show the menus.
Looks like drby got it on this one. Just FYI. I pinged the VS team to ask about this and here is the response:
"There is no way to reverse the command automatically. For it to work as a toggle we would need to save which toolwindows were auto hidden and which ones were not when the command was run, which we don’t do (it would cause lots of interesting persistence questions, across profiles and VS sessions)."
The idea of a "Unhide All" command is what I suggested. So if you hide all then you can unhide all as well. There might be some windows you don't want to unhide but the 1 or 2 extra windows is better than not having an unhide IMHO.