I have breakpoints set throughout my program, but Xcode appears to ignore them completely.
I wanted to create a new question, because this one was asked in 2008 and has nothing up-to-date.
Perhaps you've accidentally turned off the master breakpoint switch.
It should be bright blue, not gray. Click it to toggle.
This happened to me for a very odd reason. I added rich notifications to my app. As I ran the app I was running it on one of their targets instead of the main app itself. The orange arrow points to the main target. In a situation like this make sure you aren't on the wrong target (the ones above and below the orange arrow.
Related
When a file was just edited and not saved in the Xcode editor the icon of the file in the right pane is darkened a little, and because I have OCD this drives me absolutely crazy and I end up having to click Ctrl+S every time I do anything as simple as commenting a line of code or moving a button 1 pixel in storyboard.
I am using Xcode 10.1 Beta 2, but this happens in all versions of Xcode.
How do you make it so the file is never darkened?
I have the same problem in Xcode and I always command s everything as well. I have looked for a way to disable this, but for now I don’t think there is a way... Maybe they’ll add a way to turn this off in another update soon :)
Just got a new MBP, not upgraded from a previous version, and trying to get through a few issues with the new OS and programs.
One oddity that I'm having is with eclipse, in some of the menus, the Variables/Expressions window and the console, some times. I've included screenshots of it occurring in the debug windows and menu, wasn't able to catch it in the console as that's the inconsistent one. What occurs there is it looks fairly normal, all ok, but when I bring focus to it, it goes all weird,
Got it after playing around with the colours and fonts, as described How can I change font size in Eclipse for Java text editors?
Something's definitely messed around because while most things were set right, at 11 or so, they were displaying at 5. When I then explicitly set them to 11 and restarted, they came back huge. Then resetting them put everything back to normal. shrug
I have a strange issue and possibly a bug. My NSLog statements have stopped working completely, they do not print even in view did load, application didfinishlaunching etc. The have all turned a brown colour (the same colour as a pragma mark in xcode) and they all have a warning saying 'expression result unused'. Has anyone ever seen this before or know what to do? Am i running in some kind of weird mode? Im running xcode 4.0.2.
Many thanks
Jules
for completeness, I had the same problem and the answer was different, hope it helps someone else who bumps into this post:
I had a framework (an Amazon one) redefining NSLog, went there (Cmd+Click on the Brown NSLog) and commented out the redefinition...
The actual problem was the release_build set to 1. So it wasn't recognizing nslog, as you said it was set for a release build.
I had the same issue :
what worked for me is given below:
Remove the derived data folder
After removing derived data perform the clean action (You can see this option in the product menu)
Quit the Xcode and start it again.
And this did the trick all my NSLog were working fine.
Hoep this helps
Ensure that scheme chosen corresponds to Debug mode because sometimes the pch file might have some definitions such that logging is done only in the debug mode
(Scheme is on to the left of the place where you select iPhone Simulator / iOS Device)
In the view select Debug Area
(There are 3 view buttons, on the top right hand corner of Xcode, press the center button)
Select "Show variables view and the console"
(In the debug area (bottom) there are ther 3 buttons, press the center button)
I had the same issue and the problem was that I was building an Ad Hoc version (schema was for Ad Hoc build). The warnings disappeared when I built for debug.
Try changing the dropdown menu at the bottom of the console to 'All Output'.
if you are using libraries like 'KScan' or 'iKEA' or 'kdc-scan', so it can happens that, they will call methods like this one 'redirectNSLogToDocuments'.
in my case the object of 'iKEA' call the method 'CheckIfDeviceConnected' and this one redirect all nslog outputs to documents. after commenting out, all nslogs works again :)
hope this will be useful for some one.
some steps :-
1) "Clean all targets" or delete your build and rebuild again.
2) If step 1 doesnt work , reinstall xcode
Xcode 4 has stopped showing me the locations of build warnings that I have. How can i get it to start showing me them again?
Make sure you're looking in the right place. On the left-hand side of Xcode (4), look for the little error symbol. Click it and enjoy your errors in all their glory.
If you click on the errors and it doesn't take you to the location in code, I think something must be messed up with your Xcode install. I remember you had another question earlier about Xcode problems, so it wouldn't hurt to uninstall & reinstall.
In Xcode 4.3.1. I have one project that doesn't show any warnings, but others do.
So it's not an Xcode issue I guess.
In the Issue Navigator (⌘4) be sure to clear the filter at the bottom left of the screen:
Just click on the x at the right, at the filter will be removed -- worked for me!
Check the below SO post
(iphone) Is there a way to see compile output of xcode4?
press command + 4 for issue navigator. (there are two filter here "By File" and "By Type")
This one's new to me.
I downloaded and installed the VB.Net version 3.5 updates, and got some complaints about my printer drivers, which I ignored. My system auto-rebooted without asking, and then came up with am "Active Desktop Recovery" background screen (everything still works normally). So when I tried to "restore my active desktop" ( a button on the background screen) it claims a script error.
Okay, fine, I wasn't using the active desktop anyhow, so I decided to turn it off. Go to the Display Properties window, and WTF! The Desktop tab is gone!
Anybody know the fix for this, or even a workaround??
Sounds like malware, perhaps trying to hide whatever changes it made to your desktop and prevent you from undoing them. Give your favourite anti-malware a go.
Afterwards, to restore the tab and fix the recover button thingie there's a few MSKBs: 929200 and 929200.
Set the decimal value to 0 under the value DeskHtmlVersion in key HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Desktop\SafeMode\Components.