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
19
votes
7 answers

How to get source file-name/line-number from a java.lang.Class object

Is it possible, given a java.lang.Class object, to get the source file name and the line number at which the class was declared? The data should be available in the .class file's debug info. The only place I know of, where the JDK returns such…
Saintali
  • 4,482
  • 2
  • 29
  • 49
18
votes
10 answers

"No symbols have been loaded for this document." But they have!

As you can notice Symbols are been correctly loaded. I just created a view GetCompanies.cshtml using the AddView shortlink But, no matter what I do, I can't debug in the View. What I did so far: Close and Open Solution Close and open Visual…
balexandre
  • 73,608
  • 45
  • 233
  • 342
18
votes
5 answers

Debugging .NET code with MS's Symbol Server - VS does not show variable's values

When I debug my ASP.NET web site code using the Microsoft debug symbol's for .NET .. I keep getting this silly 'result' for most of the variables when I'm debugging .NET framework code (which of course is provided by the Microsoft Symbol Server,…
Pure.Krome
  • 84,693
  • 113
  • 396
  • 647
18
votes
2 answers

Python extension debugging

I'm trying to debug an extension module for python that I wrote in C. I compiled it using the following: python setup.py build -g install --user I then debug with: gdb python ... b py_node_make run test.py It breaks at py_node_make (one of the…
CrazyCasta
  • 26,917
  • 4
  • 45
  • 72
17
votes
3 answers

Light-weight Stand-Alone C# Debugger

I've been searching around the internet - and StackOverflow - for some recommendations on some lightweight .NET debuggers, but so far I haven't had a lot of luck. Some articles/posts are either pretty dated, or otherwise don't exactly suit me…
AlishahNovin
  • 1,904
  • 3
  • 20
  • 37
17
votes
1 answer

How to emit debug information through LLVMs C bindings?

I'm currently toying around with a simple LLVM frontend written in Rust. I'm now trying to emit debug information. How can I emit this debug information (source locations and variables) through the C bindings? Is it even possible? Do I need to…
dotjpg3141
  • 305
  • 1
  • 10
17
votes
3 answers

How to avoid "skipping copy phase strip" warning (because "binary is code signed”) without setting "strip debug symbols during copy" to NO?

When performing an archive build with "strip debug symbols during copy" set to YES, I get the warning "skipping copy phase strip, binary is code signed". The generally suggested solution on threads regarding this issue is to set "strip debug…
JensD
  • 253
  • 2
  • 9
17
votes
9 answers

Xcode Archive debug strip errors

I am trying to integrate a large legacy C++ library with an iOS app. We are able to build and run on device but we are not able to archive the app. Archiving fails with the following error. Command…
HatAndBeard
  • 1,416
  • 3
  • 18
  • 31
16
votes
1 answer

Enabling debug symbols in shared library using GCC

I am creating a shared library using gcc and suspect that there may be some memory leaks from the shared library. To debug, I need to enable debug symbols when creating the shared library. To build, I am using gcc -g ... (-g is for enabling debug…
Alphaneo
  • 12,079
  • 22
  • 71
  • 89
16
votes
3 answers

How can I know what type of debug info is in an ELF object file?

I have an ELF object file. I want to know which type of debugging info it contains. It was compiled with the Diab compiler (C source) for the PPC architecture. I'm pretty sure it was built with debugging symbols. I have tried extracting the…
johnj33
  • 161
  • 1
  • 1
  • 3
16
votes
0 answers

Why can't I find System.Web.pdb on referencesource.microsoft.com?

SYMSRV: http://referencesource.microsoft.com/symbols/System.Web.pdb/E6EBD6B61CEA407591438CC4E48036891/System.Web.pdb not found http://referencesource.microsoft.com/symbols: Symbols not found on symbol server. SYMSRV: System.Web.pdb from…
Micah Zoltu
  • 6,764
  • 5
  • 44
  • 72
15
votes
2 answers

How to setup/using GDB 7 on MacOS Lion with MacPorts

I run into trouble using GDB 7 (7.3) on MacOS Lion. What I did was: $ sudo port install gdb After that GDB was installed to: /opt/local/bin/ggdb But when I try to execute GDB I always receive the following at start: BFD: unable to read unknown…
calquin
  • 421
  • 1
  • 4
  • 10
15
votes
2 answers

Tool to clearly visualize Memory Layout of a C Program

Suppose I am having this code: int main() { int var1; char *ptr = malloc(5 * sizeof(char)); //........... do_something(); //........... return 0; } We know that the actual memory layout will be divided into…
Sandeep Singh
  • 4,941
  • 8
  • 36
  • 56
15
votes
2 answers

Are debug versions of (or symbol files for) the ATI/NVIDIA drivers available?

I don't even care if they are true "debug" versions, all I really want are the symbol files so that my callstack isn't rendered invalid when I break into the debugger.
moswald
  • 11,491
  • 7
  • 52
  • 78
15
votes
2 answers

Why does gcc add symbols to non-debug build?

When I do a release build with gcc (i.e. I do not specify -g), I still seem to end up with symbols in the binary, and have to use strip to remove them. In fact, I can still breakpoint functions and get backtraces in gdb (albeit without line…
Matt Holgate
  • 533
  • 1
  • 4
  • 10