debug-symbols

Visual Studio 2012 Website Publish Not Copying .pdb files

橙三吉。 提交于 2019-11-30 11:21:35
问题 I have used VS 2010 and VS2008. When I used them with my WCF Service projects, my .PDB files were always copied when I did a Publish Web Site. Now, with VS2012, no PDB files are getting copied when I do a Publish Web Site. The PDB files ARE getting created for both Debug and Release but nothing happens when I do a Publish Web Site (for either Debug or Release). I have searched this forum (and the Internet). My solution is as follows: 1) WCF Service Library project. 2) WCF Service Web Site

dSYM Directories While Compiling C++ Code in MacOS

走远了吗. 提交于 2019-11-30 10:26:38
问题 Why compiling C++ in Mac always create *.dSYM directories? Is there a way to disable that? 回答1: It's because your Xcode project is set up to build debug symbols with an external dSYM file. This is actually very handy for release builds, as it means that you can strip debug symbols from your app, and when a user sends a crashdump to you, you can use the original dSYM file to generate a proper stacktrace for debugging. Anyways, you don't need to disable debug symbol generation in your project.

How do I debug C++0x programs in MacPorts gcc 4.5?

心不动则不痛 提交于 2019-11-30 08:33:43
问题 I have a simple c++ program I am trying to debug, but gdb cannot find the object file for the libraries (or no debug info is available), and it does not seem able to find the debug symbols for my executable either. I am on OSX 10.5.8, with macports, and I compile my code with g++-mp-4.5 -Wall -pedantic -std=c++0x -g -ggdb -I/opt/local/include -L/opt/local/lib -lgsl -static-libstdc++ MCMC-simplex.cpp -o mcmc (there is only one file, and g++-mp-4.5 is the macports executable for gcc/g++ 4.5 )

How to generate PDB's for .net managed projects in release mode?

孤人 提交于 2019-11-30 07:15:48
I know PDBs are generated for managed projects in .NET by giving the compiler the /debug argument. Is there a way to specify this in the VS (2005) GUI? The only way I could get it to generate PDBs in release mode so far is to manually modify the .csproj file and to add : <DebugSymbols>true</DebugSymbols> <DebugType>full</DebugType> under the 'release' settings: <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> Another thing: I learned from MSDN here that the possible values for the DebugType tag are: full pdbonly none How do these values affect the compiler's

Visual Studio 2010 not generating .pdb files

99封情书 提交于 2019-11-30 05:54:13
I was trying to debug a c++ app, but I saw breakpoints show "breakpoint will not be hit", so I checked the modules window and I saw "Binary was not build with debug information" so no symbols are loaded. And the only pdb file on the /debug folder is vc100.pdb, and there are no other pdb files anywhere in the project folders. In properties C/C++ > Debug Information Format, I have set Program Database (/Zi). And runtime library is set to Multi-threaded Debug (/MTd). Am I missing any other setting that's causing not to create the pdb files? You also need to have: Properties > Linker > Debugging >

Visual Studio 2012 Website Publish Not Copying .pdb files

假装没事ソ 提交于 2019-11-29 23:53:52
I have used VS 2010 and VS2008. When I used them with my WCF Service projects, my .PDB files were always copied when I did a Publish Web Site. Now, with VS2012, no PDB files are getting copied when I do a Publish Web Site. The PDB files ARE getting created for both Debug and Release but nothing happens when I do a Publish Web Site (for either Debug or Release). I have searched this forum (and the Internet). My solution is as follows: 1) WCF Service Library project. 2) WCF Service Web Site When I first did a publish, I had to create a profile and I did this. When I right-click on the WCF

Xcode: Should I Strip Debug Symbols During Copy?

╄→尐↘猪︶ㄣ 提交于 2019-11-29 22:59:18
The TestFlight SDK recommends setting Strip Debug Symbols During Copy to YES in Xcode Build Settings to enable the best crash reporting possible. I noticed that it's set to YES by default. Should I change it to YES ? Why or why not? I work at TestFlight. Short answer is: set it to YES . Long answer: @Kerni is correct. Before we started symbolicating server side, we needed that data to symbolicate on device. So if you upload your dSYM to TestFlight, you can strip them. If you don't want to upload your dSYM for some reason, you can leave them in and TestFlight can symbolicate on device.

Creating symbol table for gdb using cmake

只谈情不闲聊 提交于 2019-11-29 22:12:33
Is there any way to create only symbol table using cmake for gdb ? The usual way to produce debugging information for gdb is to pass -g to the gcc or g++ compiler (and also at linking time). Look into the Cmake FAQ for how to get a debuggable executable. Jespa Add this line to the file CMakeLists.txt : set(CMAKE_BUILD_TYPE Debug) compile in Release mode optimized but adding debug symbols, useful for profiling : cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo ... or compile with NO optimization and adding debug symbols : cmake -DCMAKE_BUILD_TYPE=Debug ... 来源: https://stackoverflow.com/questions/7990844

dSYM Directories While Compiling C++ Code in MacOS

只愿长相守 提交于 2019-11-29 20:20:00
Why compiling C++ in Mac always create *.dSYM directories? Is there a way to disable that? It's because your Xcode project is set up to build debug symbols with an external dSYM file. This is actually very handy for release builds, as it means that you can strip debug symbols from your app, and when a user sends a crashdump to you, you can use the original dSYM file to generate a proper stacktrace for debugging. Anyways, you don't need to disable debug symbol generation in your project. Instead, just change the debug symbol type to DWARF (instead of "DWARF with dSYM File"). You can also use

Import class-dump info into GDB

…衆ロ難τιáo~ 提交于 2019-11-29 19:27:23
Is there a way to import the output from class-dump into GDB? Example code: $ cat > test.m #include <stdio.h> #import <Foundation/Foundation.h> @interface TestClass : NSObject + (int)randomNum; @end @implementation TestClass + (int)randomNum { return 4; // chosen by fair dice roll. // guaranteed to be random. } @end int main(void) { printf("num: %d\n", [TestClass randomNum]); return 0; } ^D $ gcc test.m -lobjc -o test $ ./test num: 4 $ gdb test ... (gdb) b +[TestClass randomNum] Breakpoint 1 at 0x100000e5c (gdb) ^D $ strip test $ gdb test ... (gdb) b +[TestClass randomNum] Function "+