XCode 9.4.1 breakpoint doesn't hit when release build scheme - xcode

I'm using XCode 9.4.1.
I need to hide print log when release mode, so I add #if-#endif conditions and want to check if these working correctly.
So I change my build scheme to release but breakpoint not wroking.
I found some answers on StackOverflow, and try any method that I can, but That's not working either.
Is there something else that I can try more?

Go to your build Setting set optimization level none for release.
Set Build Active Arch to Yes for release.
Set Debug information format to DWARF for release

Related

GPU Compute unavailable in wsl2 in new build?

I’m in the windows insider program to utilize the gpu-compute features that were implemented last summer. Things have worked great. However, after updating to the most recent build, nvidia-smi no longer works. I get an error saying “your operating system doesn’t allow it”
https://blogs.windows.com/windows-insider/2021/04/07/announcing-windows-10-insider-preview-build-21354/
This is the release doc. I’m unsure whether my error is a result of the last bullet point in the known issues section, or if my driver has somehow been corrupted, or if something needs to be toggled back on in windows.
Correct, it not working in this build (21354).
If you have already updated you can try to rollback to the last build. Go to Settings -> Update&Security -> Recovery and select "Go back to the previous version of Windows 10".
Known issue. Should be resolved in next build. The issue can be tracked here:
https://github.com/microsoft/WSL/issues/6773
Update: It has been resolved as of build 21359

xcode product clear not clearing the issue viewer

On XCode I do a build and it adds issues in the issue viewer, with warnings and error(s).
In the past I did Product | Clean and my issues list was cleared (made empty). But now it shows a message "Clean succeeded" and the warnings are still there!
Is this a bug, or is there some setting?
I'm using XCode Version: 9.4.0 according to the help/XCode-help.
OK. It was a list of problems with the current versions of the build, after upgrading the XCODE which now works only with more advanced versions of Android.
I followed the recommendations (and ruined my project which cannot be built) but that cleared all the issues. I then returned with an old batch, ignore all the warnings and build happily ever after.

QtCreator: Configure default build types

(Disclaimer: I'm not sure if SO is the right place to ask this. If not I'd appreciate pointing me to a better place.)
Whenever I open a new cmake project in QtCreator (basically all newer versions, let's say 4.3+) my default kit is select with the following build types:
Default
Debug
Release
Release with Debug Information
Minimum Size Release
All these options are enabled by default and I have to manually disable them (I only want Debug and Release most of the time).
Is there a way to configure this?
(I've looked through the kit configuration pages and tried to consult google/qtcreator help topics.)

Xcode 4.6 Strange issues with Debugger."po" command does not work

I just recently upgraded to xcode 4.6 and strange things are happening to the debugger. "po" command ceases to work some times. Also step by step debugging sometimes does not work. Is anybody else having the same issues
I have found the issue with this. I checked the Optimization Level for your Apple LLVM Compiler code compilation in target settings, changed it to None and now the debugging works as it should
Just try to clean up everything from Project menu, delete derived data folder from organizer. Exit and restart XCode. It may clean up some garbage memory and set things up. I have experienced that it improves po a bit.

Clang Analyzer in Xcode 4.4 not showing any issues

Running Analyze on my project in Xcode 4.4 shows no issues. To test this I commented out some release statements and still clang does not show anything. It used to show a handful of issues from 3rd party libs and now, nada. What can I do to get it working again?
I fixed this by going into Xcode -> Preferences -> Locations and changing the location of derived data to Default. (Not sure how it became undefaulted)

Resources