Getting rid of “There is no source code available for the current location.”
See if some source files are accidentally excluded. Do properties of the solution and look at the Debug Source Files section under Common Properties.
The solution would be to go to the build settings of your application target (not the help tool target) and set “Strip Debug Symbols During Copy” to “No”. This is the key COPY_PHASE_STRIP. Activating this setting causes binary files which are copied during the build (e.g., in a Copy Bundle Resources or Copy Files build … Read more
I recently discovered that you can simply test: HttpContext.Current.IsDebuggingEnabled in Views, which saves you checking symbols in other parts of your app.
I blogged this a long time ago, and I don’t know if it still valid or not, but the code is something like… private void testfile(string file) { if(isAssemblyDebugBuild(file)) { MessageBox.Show(String.Format(“{0} seems to be a debug build”,file)); } else { MessageBox.Show(String.Format(“{0} seems to be a release build”,file)); } } private bool isAssemblyDebugBuild(string filename) { return … Read more
If no better alternatives exist, you could put the breakpoint in code: System.Diagnostics.Debugger.Break(); Just don’t forget to remove it afterwards…
Check the “Strip Debug Symbols During Copy” option in your Xcode target’s build settings. Its saying that it cant strip debug symbols because the extension was already signed.
Symbols can be set up correctly in various different ways. WARNING: The examples here use \\server\symbols which is typically a network storage that is not available. Adapt it to your local server or leave that part out completely if you don’t have one. A non-existent server may cause delays etc. TLDR version for 80% of … Read more
Add this line to the file CMakeLists.txt: set(CMAKE_BUILD_TYPE Debug)
I think that the version of libc with debug symbols is in /usr/lib/debug/lib. I tried setting my LD_LIBRARY_PATH variable to have this at the front of the path but that did not seem to make a difference. These are not the droids you are looking for. The libraries in /usr/lib/debug are not real libraries. Rather, … Read more
You can’t do this in a very fine grained fashion but you can disable automatic symbol loading and then manually choose the symbols to load via the Modules window (Debug -> Windows -> Modules). To Disable Automatic Symbol loading Tools -> Options -> Debugging -> Symbols Check “Search the above locations only when symbols are … Read more