debug-symbols

visual studio loading symbols

i'm working on a CF project for a while now, and the VS started to behave starnge for me at least. I observed that when I start debugging, it builds the project, it's starting the deloy, the deploy finishes and it's starting to load symbols for my project. But it is very slow, and I don't know why it started to do this step. I have no ...

How can I debug multiple apps by loading multiple symbol definitions with GDB?

I am doing embedded software development. By nature, I have 3 different applications running simultaneously that are guaranteed to run in different ranges of virtual addresses, e.g. App 1 runs on 0x10000000 - 0x20000000, App2 runs in 0x20000000 - 0x30000000 and so on. Generally GDB seems to accept only one symbol definition file. But i...

How to debug in clr.dll or mscoree.dll

I followed these steps to be able to debug in the .Net framework code. This work well for some parts of the framework (for example for System.Drawing.dll), but not for other parts (clr.dll, mscoree.dll, ...). This seems a bit strange to me since the code in these dlls was released by Microsoft (at least the parts I see in the call stack...

Why are my local dlls taking forever to load after setting _NT_SYMBOL_PATH?

I've setup _NT_SYMBOL_PATH and have pointed it to srv*c:\symbols*http://msdl.microsoft.com/download/symbols When starting the debugger, I notice that the Windows related dlls load quickly. However, our company's dlls are taking a god awful long time to load. When I get rid of _NT_SYMBOL_PATH, restart visual studio, then everything lo...

Embed .pdb debug symbol information into an .exe file in Visual Studio

I am experimenting an analysis tool that can analyze executable files with embedded debug symbol information in Windows. While trying this tool on several open source projects, I realize that most of the builds do not keep symbolic information in executable files. I am able to compile the source code with VS (2008), but the build normall...

Silverlight breakpoints not hit when hosted by an ASP.NET project

Hello. I'm using Visual Web Developer 2008 Express + Silverlight 3 Tools + Silverlight 3 Developer runtime, debugging in Firefox 3.6.8. When I create a Silverlight project and let the IDE set up an ASP.NET site to host it, the breakpoints will not be hit. If I create a single Silverlight project it will be fine. Something must be wrong...

Exception text in crash log?

I have received a crash log from a beta tester. The crash log was only partially symbolicated (don't know why), but it is caused by an exception: 9 libobjc.A.dylib 0x000048cc objc_exception_throw + 64 10 CoreFoundation 0x0009be8a +[NSException raise:format:arguments:] + 62 11 CoreFoundation ...

How do I get the line number and path of a method from a pdb using .Net?

Given an assembly and its pdb, how do I get the line number and path to a method using .Net? ...

Debugging NET Framework source code not available

I am having trouble setting up Microsoft .NET Framework source code debugging for both Visual Studio 2008 and 2010 on Windows 7 x64 (I am having similar trouble on Vista x86 too). I have followed instructions from this blog post as well as some other resource but without much success. I have also downloaded and installed all symbols fro...

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

Hi all 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 tried: devenv /resetuserdata Tools > Options > Debugging > Symbols (I can't remove ...

How to get SLC.pdb to analyze memory dump

I am using windbg 6.12.0002.633 X86 on Windows Vista to analyze memory dumps for memory leaks. I'm trying to use the command `dumpheap -stat to determine the quantities of objects in the heap. Unfortunately, I'm getting the error *** ERROR: Symbol file could not be found. Defaulted to export symbols for SLC.dll. I have activated !sym no...

About executable with debug information in windows

PointerToSymbolTable: The file offset of the COFF symbol table, or zero if no COFF symbol table is present. It is 0 for PE image files, since debugging information is depreciated. Why it says debugging information is depreciated for PE image? AFIAK, executables in windows can also carry debug information,isn't that the case...

Why might the Visual Studio 2005 debugger fail to retrieve symbols for Windows 7 x64 from the Microsoft symbol server or my local cache?

I have just been issued with a Windows 7 (64 bit) machine at my code shop. We run Visual Studio 2005. I filled out the Tools|Options|Debugging|Symbols panel, pointing to the Microsoft Symbol Server and caching to C:\windows\symbols, and started a new instance of our app. There was a pause as the MS symbol server was contacted, then th...

Is there a way to access debug symbols at run time?

Here's some example code to give an idea of what I want. int regular_function(void) { int x,y,z; /** do some stuff **/ my_api_call(); return x; } ... void my_api_call(void) { char* caller = get_caller_file(); int line = get_caller_line(); printf("I was called from %s:%d\n", caller, line); } Is there a w...

#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) { ... } ...

What's the difference in debug information between gcc with and without "-ggdb1" option?

By default, gcc will add symbol table to the executable, so gdb will get a readable stack trace. Documentation for -ggdb1 option in gcc man page says: Level 1 produces minimal information, enough for making backtraces in parts of the program that you don't plan to debug. This includes descriptions of functions and external variables...

how do I load debug symbols for Android Froyo (using Eclipse)?

I need to set a break point in code that is handling an exception inside Froyo. I am using Eclipse and have built a local copy (not customized) of Froyo so it should line up for my device. Is there a way to tell ADB and/or Eclipse to load symbols so I can step into the code? ...

JavaScript debugging symbols

When using minified or generated javascript I would like to be able to see the original source an step through the original rather than the generated output. This would be in much the same way debugging symbols for compiled binary files let you see the original source. The original source might not even be javascript but some equivalen...

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 callstack, but that's not what I want. But is it possible for me to get the source code ...