pdb-ms

VS2008 ASP.net Where are .PDB created?

I have a website in vs2008. I cannot find my .pdb files anywhere after I build. My build configuration is set to debug. <compilation debug="true"> is in the web config. Where is my .pdb? There is nothing in my app_code or bin folder. How do I generate these files? ...

Generate PDB files when compilation debug="false" for ASP.NET files?

I want to set compilation debug="false" to get release mode dll's compiled on the fly from aspx files. However, I still want line numbers and such on errors as you find when you compile a DLL project with pdbonly set. If you're looking to do that, you can find a great answer on this question: http://stackoverflow.com/questions/6285...

Can I use pdb files to step through a 3rd party assembly?

Hi folks, my friend has made a really helpful class library which I use all the time. I usually use Reflector to see what his code does. What I really wanted to do was to step through his code while I'm debugging. So he gave me his .pdb file. Foo.dll (release configuration, compile) Foo.pdb Now, I'm not sure how I can get it to aut...

xperf can't load my DLL's symbols

I'm trying to use xperf to profile my DLL, but it refuses to use my DLL's PDB file. Running xperf on the .etl with -symbols, I get: DBGHELP: mydll- private symbols & lines C:\mydll\debugu\mydll.pdb - unmatched Which leads me to believe it thinks my PDB doesn't match the DLL the application is using. This is wrong; it does mat...

Advantages and disadvantages of including PDB files with your release application

I've got a VB.net application. Currently the release version of the application is produced without a PDB file. This gives me error logs lacking useful details such as line numbers. I'm looking at including the PDB files with future builds but i'd like to know what the advantages and disadvantages of this are (performance wise, size wise...

Generate PDB from .NET DLL file ?

I need something that can generate a PDB from a DLL file (C# .NET code), is there any free program to do that? ...

HRESULT of 0x806D0005 from Microsoft's Dia2Lib

I'm trying to read a PDB file into a C# application. When I call loadDataFromPdb or loadAndValidateDataFromPdb with a file that I know exists, I get an HRESULT of 0x806D0005. Unfortunately, I have no idea what that means. I have the list of possible results [here](http://msdn.microsoft.com/en-us/library/2008hf0e(v=VS.80).aspx) but I'm af...

Can I correctly debug assemblies loaded with the 'AssemblyResolve' event?

I'm experimenting with the AppDomain's 'AssemblyResolve' event by hidding the depedencies for an executable file in another folder. The assemblies seem to beloading and executing fine, however debugging seems to be crazy, sometimes it hits my break points, sometimes it doesnt , and sometimes it hits the same code twice(It seems absurd bu...

Obsolete PDB Files generated by DDK

Hi Guys, I have a very simple application in VS.NET 2002 (C++) that calls a function from a DLL. The DLL is built with WINDDK and MSC_OPTIMIZATION is set to /Od /Oi When I try to step into the exported function from the DLL it fails. I then tried to load the symbols from the PDB file generated by WINDDK (XP Checked environment), but I ...

Downloading PDB file for machine not connected to the internet

For deubgging some process I will need to download the PDB files for some operating system dll files (OLE32, NTDLL, etc.) That server is not connected to the internet. I know the following method to get the PDB. Get full dump of the process Copy the dump to another machine where internet connection is available Use .reload to downlo...

How can specific type details be filtered from Dia2Dump ?

Hello, I need to filter details of specific Type(i.e Custom Type) . DIA2Dump blindly dump everything as type. I need to give it specific custom type as string and as result need all data members(i.e data section of that class). Is there any specific function available in DIA SDK for this. say I have Custom type MyClass and it has 4 v...

Precompiled headers question

Hello! I am right now reorganizing my project and what recently was a simple application now became a pair of C++ projects - static library and real application. I would like to share one precompiled header between two projects, but face some troubles with setting up the .pdb file paths. Assume my first project is called Library and b...

How to get field names and offsets of a struct using dbghlp and pdb

I would like to dump the fields and offsets of structures in the same way as windbg's dt command. Let's say for example I would like to dump the _PEB structure which is in the Microsoft Public symbols (since windbg's DT command works). From MSDN documentation I understood that the SymFromName function should be able to do this, below th...

Difficulty getting IDiaSymbol::findChildren to return symbols matching wildcard expression

I am struggling to get the ms-pdb Dia interface to return all the symbols matching a wildcard pattern ( i.e. nsRegularExpression in dia2.h - although documentation implies they are not true regular expressions ). However a call like: hr = diaGlobal->findChildren( SymTagUDT, OLESTR("MyNameSpace::*"), nsRegularExpression, &diaSymbols ); ...

Do Pdb files contains public function's arguments name?

Hello, I need to look up function argument names of public methods. Types are easily available from PDB symbols or DIA symbols. But Is there any way out by which we can trace and pull out function arguments names as well? I am concirned with native pdb symbols. Regards Usman ...

Change name of generated PDB file to include .exe or .dll extension of it's executable.

Hi In Visual Studio 2010, is it possible to change the naming of the .pdb file to include the full name of the executable, including it's extension, and that debugging will still work? For example, suppose I have an executable myprogram.exe, I want the pdb to be myprogram.exe.pdg rather than myprogram.pdb. Similarly I want mylibrary.dl...

PDB files with .EXE or .DLL extension

I have a .net 4.0 web project which is running in debug mode. This was running perfectly until recently. Now it errors saying it can't fine various PDB files. The PDB files it is looking for is are all present. However looking at the trace .NET is trying to find them with either a .pdb.exe or .pdb.dll extension. Why is it looking for the...

debug nhibernate original release

I downloaded the binaries of nhibernate from their original site, if i get the source code, can i debug their binaries?? what I mean : I don't want to rebuild the source code and take the binaries to the project and then debug them. BTW they don't provide a pdb files with their binaries. i just want to link my source code to the already ...

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? ...

Missing PDB file and referenced output

My .Net Application, A, has a reference to library B. Library B has a reference to Library C. When I rebuild A (in debug mode), its output directory contains me the B.DLL and B.PDB files, but only the C.DLL file. C.PDB is missing, or rather it is not being copied from its project's debug folder. In fact, looking at B's output directory,...