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
28
votes
3 answers

Import class-dump info into GDB

Is there a way to import the output from class-dump into GDB? Example code: $ cat > test.m #include #import @interface TestClass : NSObject + (int)randomNum; @end @implementation TestClass + (int)randomNum { …
Tyilo
  • 28,998
  • 40
  • 113
  • 198
26
votes
5 answers

Visual Studio 2010 takes too long loading symbols, symbol file location cannot be removed

Visual Studio takes a lot of extra time loading symbols for external dlls which I'd rather not load. I have fiddled with my symbol settings in VS2008 and these settings seem to be affecting VS2010 How do I stop it loading 3rd party symbols? I've…
Myster
  • 17,704
  • 13
  • 64
  • 93
25
votes
3 answers

Where to get iOS system symbols for other iOS versions

Please note: I am asking for a place I can download the symbols, or for a conclusive answer that such a site is prohibited by Apple. The "duplicate" question is similar to the one I linked in my question: the only suggested answer is to get access…
Arkaaito
  • 7,347
  • 3
  • 39
  • 56
25
votes
7 answers

Xcode archive not creating DSYM file

For most of my projects, I setup an "archive" scheme to archive my project, creating an IPA and DSYM that I can upload to TestFlight. However, I'm working on a more complicated project that has several targets within the project workspace, quite a…
belsokar
  • 391
  • 1
  • 6
  • 8
23
votes
1 answer

Source Link with an Azure DevOps Symbol Server

There are several documented ways on internet on how to use Symbols Source files and Source Link to debug inside a Nuget Package but it's honestly hard to understand what is the good way for me. We have an Azure DevOps Server on which we generate…
23
votes
4 answers

gcc : Is using -Werror and -pedantic considered good practice?

I'm just digging into the gcc manual and some things are still unclear to me: When specifying a std, should I always use -pedantic in conjunction? When using -g, it the standard level sufficient or should I specify level 3, i.e. -g3? Is it good…
helpermethod
  • 59,493
  • 71
  • 188
  • 276
23
votes
4 answers

Getting the original variable name for an LLVM Value

The operands for an llvm::User (e.g. instruction) are llvm::Values. After the mem2reg pass, variables are in SSA form, and their names as corresponding to the original source code are lost. Value::getName() is only set for some things; for most…
Will
  • 73,905
  • 40
  • 169
  • 246
23
votes
3 answers

Hosting your own NuGet and Symbol Source server?

I know that we can host our own private / internal NuGet server, but is there a way to also hosting your own Symbol Source server that links to your private NuGet packages? My company's policy doesn't allow publishing source code, even to…
Saxman
  • 5,009
  • 11
  • 51
  • 72
22
votes
2 answers

How do I debug .NET 4.6 framework source code in Visual Studio 2017?

Here's what I've tried: Made a new Console App (.NET Framework) in Visual Studio 2017. Added the following code: static void Main(string[] args) { new Dictionary().TryGetValue(3, out int x); //I want to step into TryGetValue() (this is…
Jon
  • 5,275
  • 5
  • 39
  • 51
22
votes
4 answers

How can I inspect a static library to see if the debug symbols are being exported?

I have a static library I'm building in debug mode, but when I step into it I still get disassembly. I want to know how to use nm or another tool to ensure that the debug symbols are not being stripped.
Spilly
  • 1,069
  • 2
  • 9
  • 16
21
votes
3 answers

Debug Symbols not loading

I am trying to configure visual studio to enable me to step into the .net framework source code when I am debugging. I have tried with both Visual Web-Developer-Express-2010 and Visual-Studio-2011-Express-For-Web as well as…
Duncan Gravill
  • 4,552
  • 7
  • 34
  • 51
21
votes
3 answers

Make gcc put relative filenames in debug information

The project I'm compiling uses CMake, which loves absolute pathnames. When I compile with debugging information enabled, gcc puts those long names into .debug_str sections, which is bad for debugging. I'd like to have short relative-to-project-root…
drdaeman
  • 11,159
  • 7
  • 59
  • 104
21
votes
5 answers

How to check if an executable or DLL is build in Release or Debug mode (C++)

I need to find the mode EXE/DLL was build looking at its headers. (Using C++ only without any external tools) There is an old discussion on how to determine if DLL was built in Release or Debug…
ChatCloud
  • 1,152
  • 2
  • 8
  • 22
20
votes
1 answer

Why does a 2-stage command-line build with clang not generate a dSYM directory?

I have a simple project I want to debug want to produce dSYM folder with debugging symbols. Running: clang++ -std=c++14 -stdlib=libc++ -g -o Lazy Lazy.cpp Creates Lazy.dSYM as I expect. However: clang++ -std=c++14 -stdlib=libc++ -g -c…
jbcoe
  • 3,611
  • 1
  • 30
  • 45
20
votes
2 answers

Why are some java libraries compiled without debugging information

I've noticed recently that there's a few java libs (the JDK, joda time, iText) that compile without some/all of the debugging information. Either the local variable info is missing, or the both the local variable info and line numbers are…
Mike Q
  • 22,839
  • 20
  • 87
  • 129
1 2
3
57 58