Where is Xcode 3.0's output window? - xcode

I'm learning Xcode off a slightly older (10.2) book that deals with Project Builder. I've been using Xcode for ansi C for a while, but I can't find the output window that appears when you Build & Run an app. I am launching my apps from the commandline, but of course that doesn't help me if I want to set breakpoints or something. Where is the program output window that should appear when I build & run. Do I have it hidden or something ? Why can't I find it ?

Shift-Cmd-R brings up the output window.

There are a few windows that you should know about:
Debugger Console (keyboard shortcut = Shift-Cmd-R): This will show you any console output and you can click the breakpoints button to break into the GDB console debugger
Debugger (keyboard shortcut = Shift-Cmd-Y): This is the debugger window that shows your breakpoints with the source and includes table views for local variables and the stack
Breakpoints window (keyboard shortcut = Option-Cmd-B): This is a nifty window to find and manage breakpoints in a project
This cocoaheads talk has a lot of useful info about debugging with xcode.
Hope this helps.

Related

RStudio after crash cannot get help/env/plots window to show

After R-Studio crashed I lost the rightmost window and can only see the code and runtime windows when I re-open the project.
Is there a setting that I can change in R-Studio that allows the help, environment, plots windows ect. to show to the right of the code & runtime windows again? I've tried view menu Show History/Show Plots/Show Environment/Move focus to help but haven't gotten the window back.
I'm using Windows 10 operating system.
Goto Tools -> Global Options -> Pane Layout and choose the layout of the panes that you want.
This seems to be a rights issue. I get all of my windows back if I run R-Studio in administrator mode.

Xcode: On debug, is there any way to prevent it from opening the navigator on the front-most window?

I'm trying to figure out how to use Xcode in a multi-window setup. I would like to have one window be my main window, and then have others that I use to do occasional spot editing. Here's the rub: I never want to have the navigator (or the debug console, for that matter) open in those other windows. I only want the navigator and console to open in the main window.
Right now, when I run the app the debug navigator and console open up in whichever window is frontmost (causing me to have both the main window and the secondary window with console pains and navigator open). Is there anyway to prevent the console and issue navigator from opening on the secondary window while preserving this behavior for the main window?
I'm not sure I fully understand what you want - but you can configure some of these things in the Xcode preferences under "Behaviors". Under "Running" you can click on "Starts" and it will show you the behaviors for when you run your application. You can set it to show a particular tab in the active window or a separate window. You can set up that tab to contain just the debugger. If it does show the debugger in the other tabs, you can minimize the debugger panes, and I believe it will save that state for the next time it launches. See here for more details.
Go to Xcode -> Behaviors -> edit behaviors. Now under build and running uncheck shows Navigator.
In Xcode Preferences > Behaviours > Runnings > Generates output, uncheck Show debugger with Current Views.

Program window not viewable during debug pause

When my program is paused in Visual Studios 2010 during debugging, like from reaching a break point and me doing a manual step through, the program window becomes impossible to view.
It is a GUI window not a console window, which I run simultaneously with my program and am still able to view. The window seems to be open it's just that when I click its icon on the taskbar it doesn't come to the front of all the other windows. When I minimize all the windows in front of it, I see the outline of the window but it is either blacked out or showing the remnants of previously expanded windows.
I've noticed this with using Visual Studio's before (various versions of it), and after trying other IDE's that didn't have this behavior I notice it more. It would be really helpful to view the program's change's as I step through the program. Anyone know how I can do this?
I searched a long while and couldn't find a single reference to this matter.
The reason the window doesn't display is that the window paint message won't be processed if the main thread has been paused. Which other IDEs let you do this? I haven't come across any native code debuggers that do this on Windows.
If you are stepping through code that is run by the main thread, then the main thread can't simultaniously poll the message pump, which is needed for the GUI to work.
If you debug a different thread, the GUI will work while you are debugging.

Clicking "Run" in XCode runs my command line app, but the console windows does not appear

Well, the title pretty much sums it up, really. I've only just started toying around with XCode and stumbled upon this while coding the obligatory "Hello, World" app. When I click "Build And Run" (or just Run), my app runs, but XCode doesn't bring up the console window, so I can't, for example, see its output.
If I double-click the executable on the Detail View list, the terminal window appears as expected.
I suspect I'm doing something stupid, but don't know yet what it is. I'm running XCode 3.2.2 on Snow Leopard.
Thanks.
⌘-, select debugging, and change the "on start" value to "Show console & Debugger."
You can choose the other options, depending on your style. See the debugging guide for more details.
-S!

Debugging in Xcode

I am just getting into Cocoa at the moment. I have set up Xcode to show the Console and Debugger when debugging. However, when I have killed the app Xcode does not return to the project view. It stays in the Debug view, showing the debugger and console.
Is there any way I can get it to automatically return to Project view? Sorry, I may not be using the right lingo here but I hope you guys understand what I'm saying.
Cheers,
Dany.
There's no way to get it to automatically return after killing the app, but Cmd-0 will return you to the main project management view, whatever that's called.
If you didn't close it, use Exposé (F10 or Fn + F10 on your keyboard) to bring to visibility all of Xcode's window (it actually works for all applications). Otherwise, Cmd + 0 will also bring it to front.

Resources