Input to console in Xcode 4 - console

I upgraded to Xcode 4 recently. Love the IB integration; hate pretty much everything else.
Anyway, maybe it's just me going crazy, but I can't seem to be able to input anything into the GDB command line (can you even open the console other then as the output window or through the Log navigator??).
Anybody has a solution? Hoping it's just me being stupid here...

To view output & type commands for GDB, make sure the output window is open.
In the top-right of Xcode 4 you have 3 groups of buttons labeled 'Editor', 'View' and 'Organiser'. Make sure the middle botton of the 'View' group is enabled.
On the bottom, the output window should now be visible. To the top-right of that output panel, there are 3 visibility toggle buttons. Make sure either the middle one (watch window + output console) or the right one (just the console) is selected.
Hope this helps.

Related

Rstudio Resizing off when I using Monitor

Hi so I downloaded R and Rstudio for the first time. When I code, I like to use a seperate monitor, but when I dragged RStudio to the monitor, the toolbar shrunk, a black band appears at the top of my screen, and my mouse clicks are off (like to click on something, my mouse had to be above the button instead of on it). This never happened before when I used other IDEs on my monitor. Here are some screenshots! I would appreciate if someone could let me know why RStudio is acting like this. Thanks!
Before (Main Screen):
After (Monitor):

Sublime Text 2, disable Build output panel/Console automatic scrolling

Apparently everytime a script returns a new line the Build panel/Console on ST2 scrolls to the bottom, which is good so we can always see the latest output information, however when having huge stacks of information with long history it is natural that before a process finished you may want to scroll back and debug the information print before.
Since ST2 always scrolls to the bottom when a new line is inserted into the console, this becomes impossible to achieve.
My question is if is there any way to disable this 'automatic scrolling' for new lines on the build output panel or if somehow it is possible to make it behave just like terminal, where it will only continuing to scroll if your cursor or scroll location is already on the latest item and it becomes inactive as soon as you scroll up.
I hope that makes sense.
thanks in advance
I turns out I was dumb enough to not find out that by double-clicking the console panel it will then stop the scrolling and let me navigate through it. once I scroll again to the bottom, it continues from there.
I'm reasonably sure that this is hardcoded in, but I can be certain since I'm not Jon Skinner :) Most "consoles" act like this, continuously streaming the information as it is collected. Terminal emulators often include a "scroll on output" option to modify this behavior, but in my experience I haven't found anything like this in ST2 or ST3. If your programs are generating the output, you can always sprinkle in statements like print "==========" or something similar to break up the output somewhat, and perhaps give you an idea of where you are when you scroll back through.

Changes just in Xcode 4 simulator visible

I found a curious problem: I added a new Button to my ViewController.xib which is visible on my simulator. But when I test it on my iPhone it doesn't appear. So far I found out that no "new" changes on my ViewController appear, although I cleaned, build my project new and deleted my app on the iPhone (no changes). Does anyone have an idea how to make it visible on the iPhone?
Updateded:
I misspelled in my text above .Xib instead of .xib, so it is written right. Maybe I got a clue, why I get no changes on my IPhone: when I compare it with other projects, there is a "M" for modified on the right side of the overview. In my case I have just a "-" . So maybe something is wrong with the linking, what do you think?
Thank you and best regards!
File system on Device is case-sesitive. You must name your xib as ViewController.xib and follow the case exactly.

Xcode 4 - Debug Area no longer shows my console output (NSLog)

My NSLog messages no longer show up in my Debug Area. Anyone have an idea how the could have happened?
I can hit command-7 to bring of a list of logs in the left pane, select the latest one and view it in my editor window, but it is extremely annoying compared to having the console output in the debug area.
I had the same issue. Below are fix for this :
You console may be hidden. Press Show the console button present in right corner (blue coloured when console is open).
You may be displaying Debugger or Target output. Select All Output (Checkmark is displayed when selected).
a. Open Xcode preference (shortcut: cmd + ,).
b. Select Behaviours tab from pop-up.
c. From the Build sections select Succeeds.
d. Enable Show debugger with Current Views.
e. Select Console View from the drop-down list.
Not sure but may be you have clicked on one of the three buttons at the top right corner of the debug area that are used to either show only variables view, only the console or both.
if you want to display Debug area always, then follow these steps:
Goto XCode > Preferences > Behaviors > Succeeds >
Check checkbox of Show tab named
Type DEBUG in the textbox next to Show tab named
select separate window in dropdown next to Textbox
Now click checkbox before debugger with and select Console View in the dropdown
Now when you will run our app, console window will popout itself.
And shortcut key for this is command+shift+y
For me, the answer is to 'activate console'
Go to view -> Debug Area -> Activate Console
You have a few choices:
In the menus, select View -> Show Debug Area.
In the View selection controller in the upper right, enable the bottom view (the one in the middle).
If you'd like this to show automatically, go to Preferences -> Behaviors. Select "Run Starts" and enable "Show" Debug Area.
For Xcode 8
I set OS_ACTIVITY_MODE to disable to hide crazy logging message in simulator. But it will also hide NSLog output on my iPhone SE device (print function in swift still works).
Remove the environment variable makes NSLog work again.
Make Sure that in your Debugger Area >> Debugger Bar you have Selected ALL OUTPUT
I had an iOS universal app that would show debugger output for the iPhone version, but not for the iPad version.
I looked into editing the schemes ( commandSHIFT, ) and the iPad scheme had a different debugger than the iPhone scheme. I changed the iPad scheme's debugger to match the iPhone's (from LLDB ---> GDB)
Took me a while to figure this out... Here's a screenshot of Xcode 6.1.1. Make sure you have chosen All output at 1 and activated the output pane in 2. Somehow the output pane suddenly was gone for me and I just didn't see the icons at the bottom for like 2 hours.
Just confirm that you have Xcode open with similar rights as you have the ownership of the files you are trying to build/run and also make sure you have same rights to the build directory. I noticed Xcode won't show any debug output if rights were mismatched. I figured this after facing so much harassment. When this happened, utilities>console was still showing logs. I used that as a workaround.
Mine is: Xcode 4.2 Build 4D199 on OS X 10.7.2
For me, "Debug Executable" in Scheme Settings (Product-->Scheme-->Edit Scheme: Run) had been unchecked.
On an 12.1 Xcode version you can do either:
Option 1: View > Debug Area > Activate Console
Option 2: Shift + cmd + c (to activate console)
Option 3: (if your console is already activated) Shift + cmd + y
Here is a picture for you:
picture that shows menus and options
If you don't have anything displaying in the logs, the log view will unselect itself and not display itself. You could add a printf and verify this.

Xcode 4 project opens, then hides folders

I just upgraded to Xcode 4, and I'm trying to open a project I created with the previous Xcode, but when I open it, after about 1 second, it hides all the folders and inline projects in the project navigator, and only shows the "resources" folder. Strange behavior. I can compile and run, but I can't edit my files from xcode any more.
Anyone else see this?
#haider I had the same issue with XCode 4.3, tried the above recipe, but it did not work for me. Here is the correct answer to prevent this from happening and get it to work right:
There's a tiny row of icons to the left of the search box under the left hand nav. The first of these is a '+' (to add a file). The icons following the add-a-file icon are actually filters that can be toggled on and off. The first of these looks like a clock, and is a filter to show only-recently-modified files, the second to show files-with-source-control status and so on. I must have accidentally picked the first icon after the '+' (show only recently-modified files) and therefore had the problem. The XCode UI preserves that pick even when you close the project so closing and re-opening does not alleviate the situation.
Don't know why it fixed, but it did. After closing down xcode and restarting several times, it ended up working ok again. Strange

Resources