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

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.

Related

How to get an empty screen at Atom editor startup?

Currently when I start my Atom editor GUI (v1.60.0 x64) on Windows 10, I get this screen (warning: red circles added for explanation purpose):
I need to clic 4 times (on the red circles shown in the picute above) to obtain this clean screen:
Is there a way to obtain this screen directly at startup?
Not a complete solution but...
Uncheck the "Show Welcome Guide when opening Atom" checkbox and it will stop the "Welcome" and "Welcome Guide" tabs opening, also submit Telemetry Consent preferences and it will prevent the 3rd tab opening.
You will still need to hide the project pane but 1 click is better than 4 isn't it?

modelsim prompt wildcard suggestions/autocomplete disappeared

Normally when I type a command in modelsim, if I have a star * in the command, it lists the available files that match that wildcard. The most common one I do is
>do *.do
And then a window pops up showing all the files with the extension *.do, and I can use the arrow keys to select the file I want to perform the command on.
While this suggestions window was open, I accidentally clicked the X and it closed. Now, I can't figure out how to get that suggestion window to reappear. Even after restarting modelsim, I just get nothing at all when I type the same command. I did do a sanity check and make sure I actually have *.do files in the same directory...
How do I get that autocomplete/wildcard window back? I can't seem to locate it in the toolbar windows.
I found an answer on the Google Forums:
Go to Tools > Edit Preferences. Then select the By Name tab and expand Main. Scroll down to EnableCommandHelp and set it's value to 1.
Google Forms post

Unable to test game in game maker studio 1.4

My son is trying to create his first game using Game Maker Studio 1.4. We followed all steps in the book we are using (Game maker for kids). We now want to try to run the game, but it does not work.
Game Maker shows a Windows dialog that says "Open.." in the title and where you can select "Exe files (*.exe, *.ios, *.psp, *.win, *.droid)". I have no clue what file I should select here? If I cancel, I get a dialog that says "Compile failed, please check the compile window". But there is no error in the compile window, just a message "Compilation finished"
I am assuming you are trying to make the game run on Windows OS, so these steps should work for you.
(Clicking the blue numbers will dispaly and image relevant to the step)
1. Firstly make sure the platform target is for Windows and not a different platform as shown here:1 You click on the drop-down arrow to change the platform you wish to run/export your game too.
2. Now that we have that out of the way near the top left of the screen there should be a green play button. I have circled the button on this image to help you.2 You need to click this Green Play button.
3. After that Game Maker Studio will compile the code (this may take some time depending on how fast your PC is and how big the game is). You can tell if it is compiling if there is a loading box in the centre of the screen. Also remember to be patient as it could take a while.
4. If you have no errors in your code the game will successfully launch and you will be able to play it. If it didn't launch then Game Maker Studio will point out where errors in the code are to make fixing them easier.
I hope this guide helps and if you need any more help then just ask on the forms and I'm sure someone will be able to help you. Have a nice day and happy game developing!
On the GM:S settings (File -> Preferences) on the window view, press "check Windows sdk".
If it turns red => reinstall Windows sdk and Windows visual studio 11 then specify path.
Let me know if it solved your PB
In the Files -> Preferences there's a Temp directory box and mine was set to a dummy drive.
I set it to the actual Temp directory of my computer and now it works well.

Small exclamation icon over my STS project icon

I am working on Struts project using the Spring Source Toolsuite IDE.
When there are complier errors or something, a red X mark or yellow exclamation mark appear over the icon for my project.
But even after I made sure there are no complier errors, I got this exclamation mark in my project icon. My project is building and running successfully and I am getting the proper output.
Why is it there? How can I find out what it is complaining about?
Click Window -> Show View -> Problems and you'll see the list of errors/warnings and you can take it from there.
As ptsw pointed out, too:
If the Problems item isn't visible in Window -> Show View menu, choose Other... instead and select Problems in the General group to view the Problems pane:

Input to console in Xcode 4

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.

Resources