pdb-files

C# project won't load debugging symbols from VB6 DLL

本秂侑毒 提交于 2019-12-11 15:56:23
问题 I have a VB6 DLL which I have compiled with debugging symbols turned ON. A PDB file is created alongside the DLL. However in the C# project which references this DLL, it is refusing to load the PDB file. In the VS modules window it states "Binary was not built with debug information" for this DLL. This is incorrect... If I right click in the Modules window and select "Load Symbols", and then manually select the PDB file, I get the error "A matching symbol file was not found in this folder."

How to take out certain elements from a pdb file

蓝咒 提交于 2019-12-11 15:04:45
问题 I am trying to take out certain columns from a pdb file. I already have taken out all lines that start out with ATOM in my code. For some reason my sub functions are not working and I do not know where or how to call them. My code is: open (FILE, $ARGV[0]) or die "Could not open file\n"; my @newlines; while ( my $line = <FILE> ) { if ($line =~ m/^ATOM.*/) { push @newlines, $line; } } my $atomcount = @newlines; #print "@newlines\n"; #print "$atomcount\n"; ######################################

LNK4099 in GLFW console project with debug configuration

帅比萌擦擦* 提交于 2019-12-11 12:26:50
问题 When compiling a win32 console project with GLFW in Visual Studio 2010 SP1, I am getting the following warning for debug configuration: Warnung 1 warning LNK4099: PDB "vc100.pdb" wurde nicht mit "GLFW.lib(enable.obj)" oder an "C:\path-to-project with-spaces\World\Debug\vc100.pdb" gefunden; Objekt wird verknüpft, als ob keine Debuginformationen vorhanden wären. C:\path-to-project with-spaces\World\World\GLFW.lib(enable.obj) World 13 more for GLFW.lib(enable.obj), GLFW.lib(glext.obj), GLFW.lib

Why does IDiaEnumSymbolsByAddr::Next crash?

时光总嘲笑我的痴心妄想 提交于 2019-12-11 10:08:26
问题 I wanted to enumerate symbols by address but it seems IDiaEnumSymbolsByAddr::Next crash when I call it. The documentation doesn't say anything extra about it. Minimal code to reproduce: int main() { IDiaDataSource *ds; IDiaSession *session; IDiaEnumSymbolsByAddr *symbolEnum; IDiaSymbol *symbol; HRESULT hr; ULONG fetched; CoInitialize(NULL); hr = makeDiaDataSource(&ds); assert(SUCCEEDED(hr)); hr = ds->loadDataForExe(L"readpdb.exe", NULL, NULL); assert(SUCCEEDED(hr)); hr = ds->openSession(

How to include source code location information (file/line/column) in .NET assembly?

倖福魔咒の 提交于 2019-12-11 06:47:36
问题 I need to be able to get from .NET assembly a class/struct/interface definition location (filename,begin_line,begin_column,end_line,end_column) in my source files. First solution that came to my mind was using some pdb quering api, but it seems that I can obtain such info only for method definition this way. Or maybe I'm wrong... To provide the context, i'm trying to build an add-in to VS 2008 which compiles all solution projects through VS automation model, takes assemblies and using

Does winbase::LoadLibrary() load .pdbs?

好久不见. 提交于 2019-12-11 06:33:18
问题 I have issues with debugging of a library loaded at runtime, and an unknown is: Does winbase::LoadLibrary() load the .pdb in debugging mode? Because if it doesn't, that would explain why I cannot use any debugging in my DLL, and if it does, that would at least tell me to search for the problem somewhere else. Obvious follow-up: If it does not, how do I get VS2010 to load the pdb anyway? [1] http://msdn.microsoft.com/en-us/library/ms684175(VS.85).aspx 回答1: The symbol file search is conducted

Removing .pdb from ASP.NET app on IIS breaks application

蹲街弑〆低调 提交于 2019-12-11 00:35:38
问题 I'm trying to deploy an ASP.NET MVC 4 application to IIS 8. When built with Debug mode selected in VS 2012, the application runs fine on IIS. However, when Release mode is selected, the application gives a yellow screen with a 404 error and something about the path not implementing IController. I found out that adding the .pdb debug symbols to the bin/ folder on IIS, the application starts working fine. Does anyone know why this is happening? I've played around with the Release mode build

Mono Cecil error generating PDB

天涯浪子 提交于 2019-12-10 16:48:05
问题 The code below allows me to change methods body and save back the assembly. // Recreate PDB var assemblyResolver = new DefaultAssemblyResolver(); var assemblyLocation = Path.GetDirectoryName(pathBin); assemblyResolver.AddSearchDirectory(assemblyLocation); /*if (!string.IsNullOrEmpty(HintPath)) { assemblyResolver.AddSearchDirectory(HintPath); }*/ var silverlightAssemblyPath = Environment.ExpandEnvironmentVariables(@"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\"); assemblyResolver

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

岁酱吖の 提交于 2019-12-10 11:13:35
问题 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 the is the code I've tried that fails on SymFromName with LastError 126 (The specified module could not be found). From the registered Callback I get the

Breakpoint in ASP.NET MVC Razor view will not be hit. No symbols have been loaded for this document

折月煮酒 提交于 2019-12-10 02:51:55
问题 I can't get a breakpoint in a Razor view to be hit in Visual Studio 2013 while debugging in IIS Express. This is the view and unreachable breakpoint: Looking at the modules I see that the latest PDB file has been loaded: And the folder C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\53ff8402\967c7053\assembly\dl3\f3c59a34\6698ffde_b452cf01 has the latest version of the DLL and PDF files: ITVizion.VizionLogs.WeeklyLogs.Web.DLL ITVizion.VizionLogs.WeeklyLogs.Web.PDB I