Xcode 4: How do you view the console? - iphone

I can't seem to find a way to have the console run (to show NSLog comments) in XCode 4. The normal method for the previous version of XCode does not work. Does anyone have an idea of how to accomplish this?

You need to click Log Navigator icon (far right in left sidebar). Then choose your Debug/Run session in left sidebar, and you will have console in editor area.

for Xcode 5:
View->Debug Area->Activate Console
shift + cmd + c

If you just want to have the log output display when you run your app then you can go into XCode4 preferences -> Alerts and click on 'Run starts' on the left hand column.
Then select 'Show Debugger' and when you run the app the NSLog output will be displayed below the editor pane.
This way you don't have to select on the 'up arrow' button at the bottom bar.

The console is no extra window anymore but it is under the texteditor area. You can set the preferences to always show this area. Go to "General" "Run Start" and activate "Show Debugger". Under "Run completes" the Debugger is set to hide again. You should deactivate that option. Now the console will remain visible.
EDIT
In the latest GM Release you can show and hide the console via a button in the toolbar. Very easy.

Here' an alternative
In Xcode 4 short cut to display and hide console is (command-shift-Y) , this will show the console and debugger below ur text edior in the same window.

You can always see the console in a different window by opening the Organiser, clicking on the Devices tab, choosing your device and selecting it's console.
Of course, this doesn't work for the simulator :(

There's two options:
Log Navigator (command-7 or view|navigators|log) and select your debug session.
"View | Show Debug Area" to view the NSLog output and interact with the debugger.
Here's a pic with both on. You wouldn't normally have both on, but I can only link one image per post! http://i.stack.imgur.com/4gG4P.png

Here's an alternative.
In XCode4 double-click your Project (Blueprint Icon).
Select the Target (Gray Icon)
Select the Build Phases (Top Center)
Add Build Phase "Run Script" (Green Plus Button, bottom right)
In the textbox below the Shell textfield replace
"Type a script or drag a script file from your workspace" with
"open ${TARGET_BUILD_DIR}/${TARGET_NAME}"
This will open a terminal window with your command-line app running in it.
This is not a great solution because XCode 4 still runs and debugs the app independently of what you're doing in the terminal window that pops up.

Related

How to permanently hide Debug Console in VSCode?

I have looked for a solution but couldn't find one, recently I switched the Explorer in VSCode from the LHS to the RHS and it works better, the problem I am now having is that when I open the terminal I get a debug console on the left - see picture below.
Is there a way in which I can disable/hide the Debug Console part of the terminal? It is always maximized when I start a new console and I can't set it to minimize.
Either choose Reset Location in the context menu or just drag the Debug Console header back into the upper part of the Panel (like to the right or left of the Terminal header).
At some point you must have dragged the Debug Console header into the body of the Terminal (when Terminal was active and into the left half of its view).
You'll also notice that the option to Hide 'Debug Console' is disabled in your first situation - that is a hint of sorts - it is actually within the Terminal view and so cannot be separately hidden from its context menu.
Click on the debug tab and drag it to the top.

How to attach the console in eclipse?

In eclipse the console is somehow undocked. Now it's appearing like below :
How to attach it to the window? I tried the "pin console" button but nothing happening. I am running eclipse kepler.
Please help.
It is just a drag of the pop up window to the main window. Key is to drag by tab title not by main window. In your case, start dragging at tab titled console!
You can click Windows > Reset perspective to go back to default perspective settings.
The easiest method that worked for me in Eclipse Photon is:
Click on the Open Console icon present amongst the icons on the console window.
Open Console icon:
Click on New Console View
New Console View:
This will start a docked version of the current console.
And the one which is detached can be simply closed thereafter.
Go to WINDOW, then select these submenus:
SHOW VIEW
CONSOLE
As in this screenprint:
that's it
Window->Perspective->Reset Perspective
Grab on Git Staging icon, drag and drop on console bar:
From opened Eclipse; go to Window>Perspective>Reset Perspective
Back to Window>Show View
Click on Console.
I found this convenient.
You can click on Windows > Reset perspective. It will reset perspective settings

Netbean 8 Variables Window, Watches Window, Breakpoints Window, Call Stack Window, Output Window don't auto hide after debug

Netbean 8: Variables Window, Watches Window, Breakpoints Window, Call Stack Window, Output Window don't auto hide after debug. How i can fix this problem. Thanks.
Click Window and choose Reset Windows from the menu.
After doing this, the debug windows should auto-hide. I recommend taking a screenshot before doing the reset in case other customizations you made are inadvertently lost.
Click on Minimize Window Group which is on top right corner of variable window or other windows. If you have maximized it then after debug you need to click on Minimize Window Group after debug.
I figured this out for the Output window.. if you open that view, you'll see an icon on the left-hand side which says "Ant Settings" when hovered over. Click that, and it will open the 'Options --> Java' dialog.
In that dialog, select the 'Always Show Output' option. Now anytime you build your project (etc) that Output view will pop up, and when you click back in the Editor it will auto-hide.

How to recover closed output window in netbeans?

It often happens to me that I want to clear the current output window by using the context menu, but instead of hitting the Clear entry, I accidently hit the Close entry (which is directly below Clear).
How can I get that output window back!?
Via Window/Output/Output I only get the container tab for all output windows. How can I reopen the output window of a currently running application?
Here is solution
First go to service window which is next tab to project tab...
then right click on apache tomcat
click view server log and view server output
In the right bottom edge there are information about NetBeans updates. Left to it, there's the tasks running (building, running application etc). Click on it, right click the process you want and select Show Output.
try Window--> Reset Windows in netbean
Caution: be aware, that all your windows settings are away after that!
I had this same issue recently and none of the other fixes worked. I got it to show finally by switching to the "Services" tab, right-clicking on "Apache Tomcat or TomEE" and clicking "Restart".
Go to the window tab: Then click on Output. This will allow you to place it anywhere on the screen. Or just use ctrl+4
Go to Server tab and Right Click you will see the View Output Log.
Netbeans --> Your Server --> RightClick --> View Output
In NetBeans 7.4,
Under Window menu, click on "Reset Window".
Then NetBeans will disappear and reappear.
At last, after it reappears, click on "Output" under Window menu.
Go to window tab - reset windows - run your program. - then right click on bottom of the tab where program running
Right click on Apache Tomcat under Services window. Stop the server, then start it again...both log and output window will reappear
Just go through "View" and select IDE Log. it will show the output.
If you run the server in normal mode you can recover the log by restarting the main project in debug mode. It seems that NB opens a new server log when the server run mode changes.
If you want to see three windows along with Log
Then go to windows on NetBeans then output and click NetBeans->windows->output.
Next go to service next to you project select server right click on it select server log and server output NetBeans->service(next to you project)->server->View server log and view service output.
I was having the same problem. Currently I am using the version 8.1, First of all go to the window tab, that is just before the tab help. Click on window and there click reset "Reset Window", after that in the bottom right click on the tab where your project runs, right click and select show output.
shorter way:
1-Alt + Shift + R
2-Ctrl + 4
second way:(in menus of netBeans)
1-go to window tab
2-go to IDE tools
3-click on Test Result
4-again in window tab click on Output
I found output option in window Menu.
in Netbeans 7.4 try Window -> Output OR Ctrl + 4
Easy way, just write some wrong code and Run > Build it will show the error in output window.
I tried all of the above but no success, just this one worked.
Servers---AT---right click---start in debugging mode

iphone -- XCode 4 jumps to main at simulator stop

when I press stop on the simulator in XCode 4, XCode jumps to the main.m file. Anyone know how to turn this off?
Go to Preferences -> Behaviors. Choose "Run Completes" in the left hand side. Check the box next to "Show Tab" and enter a tab name. I use "Edit".
This way whenever you stop, you will always be back at a tab called Edit.