What's the fastest way to open LogCat view? - android

Most of the times I run a Project I need to open/maximize LogCat and then minimize it.
Usually it takes a few clicks with the mouse.
Click the LogCat icon on the Debug perspective ctrl+M to maximize it and then click the minimize icon.
Wonder if there is a faster way, hope without the need to click the mouse.

Go to Window -> Preferences.
Then go to General -> Keys.
Find the entry "Show View (View: Logcat)"
Go to Binding and hit a key (such as F10).
Personally, I use two screens for developing. Main Window on the main screen and Logcat, File Explorer and Console on the second one.

Press Shift Twice
Type logcat
Press Enter

If I understand your problem correctly, you already have the LogCat view open. But, when you want to maximize it, its a pain to double click it every time.
Solution:
Use Ctrl+F7 to shift between the views like "LogCat", "Console", "Editor" etc. Then when you are at particular view, just use Ctrl+M to maximize the view in full screen.
I think you will like some of the Shortcuts mentioned here: http://www.rapidsnail.com/Developer/topic/2012/76/27/60320/ask-next-eclipse-the-commonly-used-shortcut-key.aspx

Window -> Show View -> Other -> Android -> LogCat

I personally think Eclipse is not the best place to watch logcat (it is already as heavy as it gets by default, and you put more into it...).
So, I recommend good old command line (Linux):
$ adb logcat -v time
I have created a logcat colorizer to help distinguish the important stuff:
https://bitbucket.org/brunobraga/logcat-colorize

Related

Where did Messages go on AndroidStudio 3.2

It's become so second nature that I can't even remember in which window the compile time errors were showing, but I've just updated to Studio 3.2 and I can't seem to find the Messages window or something similar to it.
I'm looking for that panel in which the compile time errors were showing up and you could click on each one and it would jump to that specific file. The only thing I can find is this thing below, on which it's very inefficient to keep expanding the tree and looking at each individual error. Also, clicking on the error items doesn't jump to the file, only if I press Return on my keyboard.
Is this really the replacement of the previous panel? It's very, very inefficient
EDIT
If I click the icon on the left side of the Build panel it displays them as below, but as text ... ! There must be a better way ... isn't there ?
you can see log output in Logcat from tool windows Bar or short key(Alt + 6)
and select Error Filter also i prefer search main word in error filter.
most of time problem appear in top sentences and you can go to location by clicking on link .

Android (Eclispe): How to stop execution at some point in the middle of a program?

Sometimes the program runs into an infinite loop, or the LogCat contents are too lengthy for the Logcat to display them all. In that case, we need to terminate execution in the middle of it. How can we do that?
I can't no more see the red square I once used to see in the console window when coding Java.
It's not about debugging because what would a breakpoint do in the case of an infinite loop?
Another question is that my logcat won't dock to the right side of the window in eclipse. Instead when I try to drag the Logcat window to the right side (where the "outline" window and "restore" button is present- I want to dock is beside them), the mouse pointer starts showing this sign: How do I dock the Logcat button on the right side (It is docked to the left in the above picture) ?
1. To stop app in the middle of execution:
- go to Devices window or open it:
- - from Debug perspective: Window -> Show View -> Devices
- - from other perspectives: Window -> Show View -> Other... -> type "Devices" or just find
- select process you want to stop (it should be launched from the same instance of Eclipse)
- press stop button on the toolbar
Note. "Red button" isn't visible when Eclipse doesn't know what to stop. It happens when you simply start your app (not for debugging) or debug several apps at the same time (in this case you should explicitly choose process in the Debug window to activate "red button").
2. There is usually no problem to dock logcat to any side of the hosting window - just drag it to the middle of required window side.
Update
Sometimes Eclipse UI behaves strange as a result of accumulation of minor configuration changes (including during updating etc). You may try to move <YourWorkspace>\.metadata\.plugins\org.eclipse.e4.workbench\workbench.xmi file to some backup location and start Eclipse.
It may require to reconfigure some of your settings. If you are not satisfied just move original workbench.xmi back.
Weird thing is I can't see your screenshot. something wrong with my browser or something else.
I have added my screenshot, you'll see a red button on the tool bar. Go to Window->Show Toolbar if your toolbar is not visible.
Changed my comp, and now I am able to see your screenshot.
As for your Want-Logcat-to-Right problem, Try Window->Reset Perspective it should give you the same layout as my screenshot above and when you minimize it, it would hide to the right of the window like the screenshot below

How to maximize logcat's windows on android studio?

The title said it all,
How to maximize logcat's windows on android studio?
Right now my logcat's windows is very small and i need to scroll it to view it's message.
Thanks
You can use the resize pane handles to make it bigger, or use the settings option (a cog icon on the right of the DDMS pane) to choose floating mode, and maximise that window.
I have indicated all the trivial steps to be sure to fit every preset configuration of Android Studio, once implemented will take roughly 200 milliseconds to maximize Logcat!
The document is divided in Settings( to do only one time) and then The real shortcut ( to do once the settings are in memory):
Settings:
1)Alt+6 to open the Android debug window( you do not need this step if you are in the middle of the debugging, namely if you pressed the debug button)
2)Drag with the mouse the tab logcat putting it in front of the others( probably ADB logs, Memory, CPU for android studio 1.3.1), in this way the system will remember this preset.
The real shortcut:
When you are in debug mode, press Alt+6 (in the case Logcat is not appearing as main table),and CTLR+SHIFT+quote where quote means the " Quote Key
LOGCAT will be maximized, to switch to debug alt+5, no need to press again Ctrl+Shift+Quote! Please notice that if it is set Debug only this application from the dropdown menu you won't see a lot of events, so it is up to you to decide to select No Filters (if you want to see the Error only,Tab in the Dropdown menu where is written Verbose and change it with Error.)
All in all once the settings are correct Alt+6-->Ctrl+Shift+Quote( to maximize)-->Alt+5 to go back on the debugger table
EDIT: There is a second possibility depends by your taste: from the main Debug screen ( Table Debugger) you can press Ctrl+Shift+Quote then the key TAB, and then Arrow Right, Left to switch between Logcat,Debugger and Console. Personally I use this option only when I have a long debug because is useful to switch between Debugger and Logcat with Alt+Arrow
Even better (on OS X at least, perhaps others?): SHIFT-COMMAND-' toggles maximize / minimize

Eclipse buttons like Step in, Step out, resume etc.. not working

I am debugging my code but the Debug tools are not clickable (i.e Step in , Step out , resume etc).I might have changed the settings accidently , but I dont know where to reset it .
I am new to use Eclipse and android , Please help me
In the "Debug" perspective, there is a "Debug" view which shows the threads of the application being debugged:
There's a little menu in the top right corner, with an option "Show Debug Toolbar". Select that, et voilá:
Sometimes it helps to clean the eclipse workspace - just start eclipse with -clean and the debug buttons work again.
Window -> open perspective -> Debug. There you go.
Also it will normally open by itself when you run the project in debug mode. You do that by clicking F11 or clicking on the bug/insect icon to the left of the run (play) button in the navigation bar you provided screenshot off.
If any of the watch expressions takes too long to evaluate, those mentioned buttons will appear to be grayed out during the evaluation. In such case removing all watch expressions will help.
You may see that your breakpoints symbols are double lines instead of dots.
Click:
Run > Skip All Breakpoints
After this you will see that the breakpoints icons are back to normal and your problem is resolved.

Android avd is off-screen

When I run my Android app in Eclipse I can see the emulator on the toolbar but the window appears to be off the screen. Clicking on the icon in the toolbar makes it flash in or out from the right but I cannot see it.
I have had this problem before but I cannot remember how I resolved it.
You could try this.
or
(Windows 7 only)
Hover over the window icon in the task bar so that the preview appears, right click on the preview and select "move." You should then be able to move the window with the arrow keys. You may have to hold down the arrow key for what seems to be a very long time.
As dell116 said:
Hover over the window icon in the task bar so that the preview
appears, right click on the preview and select "move." You should then
be able to move the window with the arrow keys.
But as soon as you have used one of the arrow keys, then move the mouse, and... voilĂ , the window turns up in front of us, just following the mouse movements. Place the window where you want and click the mouse's left button to release it.
None of the tricks here worked for me. What I had to do was in Windows right click background (desktop) select screen resolution. From there change the resolution to a smaller resolution. The window provided me with the window bar that was cut off, simply drag like normal. After I got it where I got it where I wanted it, I just changed the resolution back.
You can also right click on taskbar->properties change Taskbar location on screen to something else, Apply, and then you can set it back this will put your windows on screen.
Another one is right clicking on the taskbar->Cascade windows - this will put every window together in cascading order which is annoying but it does guarantee all windows will go on the screen.
In Windows 10,I faced the same problem. My solution is like that;
Start Android Studio
Select the Android Studio from ALT+TAB Menu(If'nothing happens,just relax :) )
Now press ALT + Space combination
Click Maximize
Now you may use the ide :)))
I faced the exact same problem. I tried the solutions suggested by Daniel and dell116. At first it did not work as the "Move" option seems to be disabled. However, during my final attempt it worked. I found out that you can only use this method only when the OS is starting up (i.e. when it is showing the android logo).
Good news is that after doing this once, it will stay in the desired position for future runs.

Categories

Resources