Xcode 6 to Xcode 11 - Detach the Console/Log Window - xcode

Is it possible to detach the console/log window in Xcode 6 to Xcode 9? If so, how do you detach it from the main console, into it's own window?
This question was previously asked for Xcode 4 but the answer doesn't work for Xcode 6 to Xcode 9 -
Stackoverflow - Same Question for Xcode 4
See the attached screenshot for illustration of the console/log view in question

Well, better late than never....
I found that I could maneuver and detach the console.
Add new tab.
Name the tab (eg Debugger).
In the new tab, expand the console so it fills the main window.
Right-click the new tab and select open in new window.
You'll have to quit Xcode and restart it to maintain the new window, rather than close projects or windows separately.
Apologize for the delay. Hope this is still useful..
UPDATE
This still works with Xcode 11.3!
To stop seperating the window : Xcode > Behaviors > Edit Behaviors
Then set as in the screenshot:

Solution without restarting Xcode. Thank #David DelMonte for illuminating me.
You can change Xcode behaviors configuration to open a new tab named Debugger in a separate window when project start running.
Then expand console view to full window in the debugger tab, Xcode will remember your reforms.

Related

When I open Xcode, it surely opens, but its not showing any windows. Is it normal?

So, it's a simple question. When i try to open Xcode via macOS Dock, there is a dot bottom of the app icon, but it isn't opening any windows. So I have to open the window by clicking File > Open...
If it isn't normal, then please tell me how to fix it.
I have never seen or had this issue, but I did find this source: https://discussions.apple.com/thread/3854586
"In Xcode 4 choose Window > Welcome (or command - shift - 1) to Xcode to open the welcome window that gives you an option to create a new Xcode project. Select the Show this window when Xcode launches checkbox to have the welcome window open when you launch Xcode."

How to debug the preview in Xcode 13 or later

I can't work out how to debug a preview in Xcode 13.
Documentation for Xcode 11 and Xcode 12 has conflicting advice like
right click the run button and you'll get a menu
control/command/option click run
long click the run
I've tried it all - and put breakpoints on almost every line of code in my preview / view / init functions - and however I hit run, it just... runs... - so I see the preview, but no breakpoints are hit - no print statements come out in the console - no cool expanded ui display appears - and no menus appear.
Any ideas?
It looks like Apple has chosen to remove the ability to debug Xcode Previews in Xcode 13 with no guidance as to if/when it will be brought back.
Hi,
The ability to use a debugger for previews has unfortunately been removed. > As you pointed out, the workaround is to run the app in the simulator.
Sorry for any inconvenience caused!
Posted 1 month ago by Frameworks Engineer 
https://developer.apple.com/forums/thread/683773
You can attach the Debugger to the Preview Process like explained here
Deprecations
Xcode 13 no longer includes a menu item in the Previews
canvas for debugging a preview. Instead, use the Debug > Attach to
Process menu item to attach the debugger to your previewed app.
(73981969)

How to open another window (Xcode window) in a Project?

I accidentally open one more window in Xcode (not a new tab). Now for one of my projects I see 2 windows in Window menu. I don't know if I am not make a mistake - think that those are 2 windows. Please tell me if I am wrong and how to close or open new window in Xcode?
I know one way to open new window, maybe someone want too
To open new window within same project firstly open a new tab with CMD+T then drag tab title until you see window miniature, release it. Done!

How to get Xcode to show its startup screen again?

When I started Xcode I always got a screen that let me choose which project to open, or to start a new project, or a few other options. A few days ago I noticed it had a checkbox that was prechecked that said something like "Always show this screen on startup". Unfortunately, I unchecked it. I thought it would just reopen the last project I was editing but that's not what it does. Now Xcode just launches without opening any window at all so you have to go into its File menu, choose open, and find your project. I want to go back to the previous (default) behavior but I can't find any way to go back.
Does anyone know how to get that opening screen to show again? (It's not in preferences.)
From Xcode 4 and above versions, it's "Window" -> "Welcome to Xcode (⇧⌘1)".
On the older Xcode 3, it's "Help" -> "Welcome to Xcode".
If you want to see the window every time Xcode starts, please tick "Show this window when Xcode launches":
Beware that you need to hover over this window to see this checkbox.
Step 1
Start Xcode, go to the top navigation bar called Window, click on Welcome to Xcode it will show you the project screen:
Step 2
Look at the bottom of the welcome screen, there will be "show this window when Xcode launches", tick it:

Quickly switch between the project and debug windows in Xcode [duplicate]

This question already has answers here:
xcode All-in-one layout: keyboard shortcut to switch between project and debug page?
(2 answers)
Closed 2 years ago.
When I run a program in the Simulator, the project window changes to the debug window automatically. This is what I want it to do. However, after running the simulation, I want to get back to the project window. I have to use my mouse to click on the tiny icon on the top left of the debug window in order to get to the project window again. Is there a faster way to do this, like maybe a keyboard shortcut, or a setting that can be changed so that the window automatically changes after the simulation finishes?
Download Xcode 4. It's much better: all in one window, no more window management hassles.
I use Command + W to close the frontmost window (unless it's my project window already).

Resources