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
7
votes
1 answer

warning message RTTI symbol not found when using boost::iostreams

I use Boost::iostreams to write simultaneously to my console and a file. When i use eclipse to debug(with gdb of course), i receive a warning which says RTTI symbol not found for one of the classes that i am using from Boost::iostreams. Here is the…
hAcKnRoCk
  • 1,118
  • 3
  • 16
  • 30
6
votes
3 answers

Why isn't LocalBuilder.SetLocalSymInfo emitting variable names?

I tried running the sample code which appears on the documentation page for the System.Reflection.Emit.LocalBuilder class but it appears that the calls to LocalBuilder.SetLocalSymInfo(string, int, int) aren't doing anything since the IL Dissasembler…
Wesley Wiser
  • 9,491
  • 4
  • 50
  • 69
6
votes
1 answer

VS Studio 2010 Symbol Server Does Not Include Source Code

I have VS Studio 2010 SP1 installed and there was a time when source stepping was working great. Something has changed and now when the pdb files are downloaded they are the version that has the source code stripped out. What I can't figure out is…
Tyler Carver
  • 163
  • 1
  • 9
6
votes
1 answer

View source code from a "Symbols Server" without debugging?

I know it's possible to publish our source/symbols to a symbol server, or use something like SymbolSource.org to allow us to step into the code when we are referencing a DLL. But I have found no way to access this same code when we are not in a…
chrismay
  • 1,384
  • 2
  • 15
  • 25
6
votes
3 answers

I want to debug (set a breakpoint in) System.Web.Mvc.DefaultControllerFactory, is that possible?

I have a project that references the System.Web.Mvc assembly in the GAC. I also have the ASP.NET MVC source code from Codeplex. I want to get a better understanding of the DefaultControllerFactory by stepping through its methods. How could I set…
Michiel van Oosterhout
  • 22,839
  • 15
  • 90
  • 132
6
votes
1 answer

How to see useful information (filename, line no) in stacktrace of C++ program

This is a complicated one since depends on Boost version and platform too. I'm using boost stacktrace to print backtrace where some assertions fail. There are some external compile-time and run-time deps, depending on what mode you use (the link…
haelix
  • 4,245
  • 4
  • 34
  • 56
6
votes
2 answers

Cannot load symbols, or break in core assemblies, loading Symbols option grayed out

I've set the options "Use symbol server" and just to be certain the correct symbols were loaded, I removed the symbol cache. When running my ASP.NET application I saw the popup telling me the symbols were being downloaded. I've disabled "Just my…
Abel
  • 56,041
  • 24
  • 146
  • 247
6
votes
2 answers

How can I build project, dependent on opencv 3.4.0 in RelWithDebInfo mode

Here is my main cmake file: project( reconstructor ) cmake_minimum_required(VERSION 3.1) set(CMAKE_SUPPRESS_REGENERATION true) include(ExternalProject) set(Boost_INCLUDE_DIR c:/boost_1_66_0) set(Boost_LIBRARY_DIR…
Stepan Yakovenko
  • 8,670
  • 28
  • 113
  • 206
6
votes
3 answers

Can you retrieve source from a debug-compiled binary?

I was digging around and found an executable for something I wrote in Visual C++ 6.0 about 8 years ago. I never backed up the source code, but I think I always compiled everything in debug mode. I also vaguely remember hearing somewhere that "you…
6
votes
0 answers

xcodebuild build action to distribute a dynamic framework with stripped dSYM

I used to build our dynamic frameworks for internal development using xcodebuild -workspace build -configuration "Release" now that we are shipping frameworks to 3rd party developers we want to remove symbols from framework…
Lubbo
  • 1,030
  • 1
  • 10
  • 18
6
votes
3 answers

Get source code filename of file from a type in debug build

Given a Type object in .NET, is it possible for me to get the source code filename? I know this would only be available in Debug builds and that's fine, I also know that I can use the StackTrace object to get the filename for a particular frame in a…
Einar Egilsson
  • 3,438
  • 9
  • 36
  • 47
6
votes
3 answers

Symbols for "ntdll.dll" could not be downloaded from Microsoft Symbol Servers

I am trying to port my Windows Phone 8 app to Windows 10. I am able to build my app. When I try to deploy my app in Release x86 on a Mobile emulator, it fails & gives the following msg: Symbols for ntdll.dll could not be downloaded from Microsoft…
6
votes
4 answers

How to debug (step into) BinaryFormatter.Deserialize()?

My app tries to deserialize data sent by client and it fails with the following error: Exception thrown: 'System.Runtime.Serialization.SerializationException' in mscorlib.dll Additional information: Cannot get the member '<.ctor>b__0'. googling…
avs099
  • 10,937
  • 6
  • 60
  • 110
6
votes
1 answer

Set a breakpoint into LibC with gdb

Why I cannot set a breakpoint (using gdb) in an exported function within LibC? As being Libc dynamically linked, it must contains the symbols of the functions it exports. Shouldn't I be able to set a breakpoint to any of these functions? I merely…
badnack
  • 737
  • 1
  • 11
  • 20
6
votes
2 answers

What is the proper "Strip Debug Symbols" settings in iOS for release versions?

I've been getting a bunch of crash logs for my (largely c++) app on iOS. My problem is I can't seem to ever symbolicate these crash reports properly. What is the "proper" setting for stripping debug symbols for release on iOS? I get that you'd want…
kamziro
  • 7,882
  • 9
  • 55
  • 78