Questions tagged [debug-symbols]

A debug symbol is information that expresses which programming-language constructs generated a specific piece of machine code in a given executable module.

A debug symbol is information that expresses which programming-language constructs generated a specific piece of machine code in a given executable module. Sometimes the symbolic information is compiled together with the module's binary file, or distributed in a separate file, or simply discarded during the compilation and/or linking. This information enables a person using a symbolic debugger to gain additional information about the binary, such as the names of variables and routines from the original source code. This information can be extremely helpful while trying to investigate and fix a crashing application or any other fault.

865 questions
49
votes
5 answers

How to tell if a .NET application was compiled in DEBUG or RELEASE mode?

I have an application installed on my computer. How do I find out if it was compiled in DEBUG mode or not? I've tried to use .NET Reflector, but it does not show anything specific. Here is what I see: // Assembly APPLICATION_NAME, Version…
Alex
47
votes
8 answers

C# and ASP.NET MVC: Using #if directive in a view

I've got a conditional compilation symbol I'm using called "RELEASE", that I indicated in my project's properties in Visual Studio. I want some particular CSS to be applied to elements when the RELEASE symbol is defined, and I was trying to do that…
Matt
  • 23,363
  • 39
  • 111
  • 152
40
votes
1 answer

Xcode 4 archive warning to skip copy phase

I have an app for the Mac that I am trying to archive. I have done this in the past with an earlier version of Xcode however when I archive with Xcode 4, I get the following warning: warning: skipping copy phase strip, binary is code signed:…
David
  • 14,205
  • 20
  • 97
  • 144
40
votes
17 answers

Getting rid of "There is no source code available for the current location."

OK, this is my own fault, but I can't seem to rescue myself. Whenever I try to step into a class that has fields with assignments calling into .NET code, I get a dialog box that contains the text "There is no source code available for the current…
Lasse V. Karlsen
  • 380,855
  • 102
  • 628
  • 825
38
votes
2 answers

How do debug symbols affect performance of a Linux executable compiled by GCC?

All other factors being equal (eg optimisation level), how does having debug symbols in an ELF or SO affect: Load time. Runtime memory footprint. Runtime performance? And what could be done to mitigate any negative effects? EDIT I've seen this…
Justicle
  • 14,761
  • 17
  • 70
  • 94
37
votes
1 answer

Getting Symbols from debugged process MainModule

I started writing a debugger in C#, to debug any process on my operating system. For now, it only can handle breakpoints (HW, SW, and Memory), but now I wanted to show the opcode of the process. My first attempt was with nidsasm (NASM), but this is…
Strece
  • 396
  • 2
  • 9
34
votes
3 answers

Xcode: Should I Strip Debug Symbols During Copy?

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?
ma11hew28
  • 121,420
  • 116
  • 450
  • 651
34
votes
2 answers

Why do my PDB's for my VB6 project not match the generated dll?

I have a VB6 project and have enabled it to generate pdb files (this shows how to do that). However I can't debug with them and when I check them with symcheck I get this output: >SYMCHK: MyFile.dll FAILED - MyFile.pdb mismatched or not…
Sam Holder
  • 32,535
  • 13
  • 101
  • 181
32
votes
4 answers

Visual Studio: debug information in release build

I'm tempted to include debug information in my release builds that go out to customers. As far as I see the only down side is 25% increase in the binary file size. The advantage is that I can get an immediately usable crash dump, much easier to…
MK.
  • 33,605
  • 18
  • 74
  • 111
31
votes
2 answers

Visual Studio 2012 Website Publish Not Copying .pdb files

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…
user2823892
  • 313
  • 3
  • 4
29
votes
1 answer

Visual Studio 2010 not generating .pdb files

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…
slemdx
  • 1,055
  • 2
  • 16
  • 19
29
votes
2 answers

dSYM Directories While Compiling C++ Code in MacOS

Why compiling C++ in Mac always create *.dSYM directories? Is there a way to disable that?
neversaint
  • 60,904
  • 137
  • 310
  • 477
29
votes
5 answers

#if DEBUG vs if (env.IsDevelopment())

It seems that Preprocessor Directives (#if DEBUG) and ASP.NET Core Environment Name (IHostingEnvironment.EnvironmentName) both could be used when you want to have different behavior in debug/development and release/production. When is it appropriate…
webwake
  • 1,154
  • 1
  • 13
  • 26
28
votes
8 answers

Xcode 4 Instruments doesn't show source lines

I've just started playing with Xcode 4, and found that, no matter how I setup debugging symbols in the project, Instruments refuses to display source lines for stack trace items that correspond to my code. In only shows hex offsets and identifies my…
Marcelo Cantos
  • 181,030
  • 38
  • 327
  • 365
28
votes
2 answers

Do not show file paths of build machine in stack trace

I am currently developing a C# application which has got it's own logging. When exceptions are thrown, the exception is saved into a list which can be viewed by the user via a list view. When the user clicks on a exception in the list view, the…
Emiswelt
  • 3,909
  • 1
  • 38
  • 56
1
2
3
57 58