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
494
votes
8 answers

#if DEBUG vs. Conditional("DEBUG")

Which is better to use, and why, on a large project: #if DEBUG public void SetPrivateValue(int value) { ... } #endif or [System.Diagnostics.Conditional("DEBUG")] public void SetPrivateValue(int value) { ... }
Lucas B
  • 11,793
  • 5
  • 37
  • 50
309
votes
9 answers

Release generating .pdb files, why?

Why does Visual Studio 2005 generate the .pdb files when compiling in release? I won't be debugging a release build, so why are they generated?
m.edmondson
  • 30,382
  • 27
  • 123
  • 206
186
votes
18 answers

Visual Studio loading symbols

I'm working on a ColdFusion project for a while now, and Visual Studio started to behave strange for me at least. I observed that when I started debugging, it built the project, it started the deploy, and the deploy finished and it was starting to…
arnoldino
  • 1,969
  • 2
  • 13
  • 15
142
votes
9 answers

Xcode 4.2 debug doesn't symbolicate stack call

I have a problem with Xcode 4.2 debugging in an iOS 5 simulator/device. The following code crashes, as expected: NSArray *arr=[NSArray array]; [arr objectAtIndex:100]; In iOS 4, I get a useful stack trace of hex numbers. But in iOS 5, it just gives…
cekisakurek
  • 2,474
  • 2
  • 17
  • 28
126
votes
4 answers

Should I compile release builds with debug info as "full" or "pdb-only"?

In Visual Studio for a C# project, if you go to Project Properties > Build > Advanced > Debug Info you have three options: none, full, or pdb-only. Which setting is the most appropriate for a release build? So, what are the differences between full…
RationalGeek
  • 9,425
  • 11
  • 62
  • 90
124
votes
8 answers

How can I tell if a library was compiled with -g?

I have some compiled libraries on x86 Linux and I want to quickly determine whether they were compiled with debugging symbols.
Dan Hook
  • 6,769
  • 7
  • 35
  • 52
114
votes
11 answers

How to disassemble one single function using objdump?

I've got a binary installed on my system, and would like to look at the disassembly of a given function. Preferrably using objdump, but other solutions would be acceptable as well. From this questions I've learned that I might be able to disassemble…
MvG
  • 57,380
  • 22
  • 148
  • 276
106
votes
2 answers

How do you extract local variable information (address and type) from a Delphi program or the compiler-generated debug info?

My goal is: Given a suspended thread in a Delphi-compiled 32 or 64-bit Windows program, to walk the stack (doable) Given stack entries, to enumerate the local variables in each method and their values. That is, at the very least, find their address…
David
  • 13,360
  • 7
  • 66
  • 130
86
votes
4 answers

What's the risk of deploying debug symbols (pdb file) in a production environment?

I have an application that logs exception strack traces and I wanted those stack traces to include file names and line numbers when deployed in production. I figured out how to deploy the debug symbols w/ the assembly, but in the process of…
Matt
  • 5,052
  • 4
  • 36
  • 54
84
votes
10 answers

Prevent Visual Studio from trying to load symbols for a particular DLL

I have Visual Studio 2005 set up to use Microsoft's symbol servers. I also have UltraMon installed, which injects a hook DLL into every process. Whenever I start debugging my MFC application, Visual Studio says: "Loading symbols for C:\Program…
RichieHindle
  • 272,464
  • 47
  • 358
  • 399
74
votes
5 answers

Creating symbol table for gdb using cmake

Is there any way to create only symbol table using cmake for gdb ?
Vivek Goel
  • 22,942
  • 29
  • 114
  • 186
73
votes
2 answers

How to use debug version of libc

Short version of question: How can I get gdb to use the debugging symbols for libc? Longer version: I am debugging a program with gdb and I want to see information about a futex used by libc. However, at some point during debugging I get output such…
Gabriel Southern
  • 9,602
  • 12
  • 56
  • 95
62
votes
2 answers

How to set up symbols in WinDbg?

I am using Debugging Tools for Windows and I get the following error message when starting WinDbg / cdb or ntsd: Symbol search path is: *** Invalid *** **************************************************************************** * Symbol loading may…
Thomas Weller
  • 55,411
  • 20
  • 125
  • 222
58
votes
9 answers

Warning during archive App with iOS 8 Extension in Xcode 6

I have a problem while archiving my app. I created a new target for an iOS 8 extension. When I archive the app, I receive a warning. The warning is "PBXCp Warning", "warning: skipping copy phase strip, binary is code signed: …
gianpispi
  • 611
  • 1
  • 5
  • 10
50
votes
15 answers

Visual Studio breakpoints break in the wrong source file (or multiple files simultaneously) if multiple files have the same name

In a team project I'm working on, setting a breakpoint in a file (say IdeasController.cs) will lead to erratic debugger behaviour if there's another file with the same name in the solution. I've reproduced the problem on several developers'…
1
2 3
57 58