pdb-files

How do I change the locations of source files in a symbols file (pdb)

谁说我不能喝 提交于 2019-11-27 14:33:07
问题 Basically what I want to do it this: a pdb file contains a location of source files (e.g. C:\dev\proj1\helloworld.cs ). Is it possible to modify that pdb file so that it contains a different location (e.g. \more\differenter\location\proj1\helloworld.cs )? 回答1: You can use the source indexing feature of the Debugging Tools for Windows, which will save references to the appropriate revisions of the files in your source repository as an alternate stream in the PDB file. 回答2: If you're looking to

Are there any security issues leaving the PDB debug files on the live servers?

会有一股神秘感。 提交于 2019-11-27 12:09:46
问题 Are there any security issues keeping the .NET PDB files on the real server? I know that throwing exceptions might take a bit longer , but who throws exceptions during normal execution anyway? :-) But from a security perspective? any issues? 回答1: Hmm - I'd lean on the side of security caution on this. I think you should have PDBs, but not on production servers. Besides, you should have Debug turned off on any live system. Debug is nasty, and you just don't want it when you don't need it. From

Symbol status showing “Skipped Loading” for dll in modules window?

て烟熏妆下的殇ゞ 提交于 2019-11-27 06:13:21
问题 I've recently upgraded some solution(s) to Visual studio 2013. All went OK apart from one which now generates the: Symbol for the modules 'name' were not loaded. ...error every time I run it. When I look in the modules debug window I can see against the dll (It's a web service dll) Name Path Optimised User Code Symbol Status dllName.dll Tempoary ASP.Net...etc. Yes No Skipped Loading... If I look in the \bin I see the dll and it's coresponding .pdb file. Checking the build menu for the project

How can you change an age-mismatched PDB to match properly?

若如初见. 提交于 2019-11-27 04:15:37
问题 Our nightly build process was broken for a long time, such that it generated PDB files that were a few hours different in age than the corresponding image files. I have since fixed the problem. However, I would like to start using a symbol server, but cannot due to having to use these age-mismatched pdb files. I work around this issue by using the .symopt +0x40 method in windbg. That means I have to organize all my pdb files by hand, and after years upon years of releases, that adds up. I am

How do I use PDB files

梦想与她 提交于 2019-11-27 03:19:50
I have heard using PDB files can help diagnose where a crash occurred. My basic understanding is that you give Visual studio the source file, the pdb file and the crash information (from Dr Watson?) Can someone please explain how it all works / what is involved? (Thank you!) roo PDB files are generated when you build your project. They contain information relating to the built binaries which Visual Studio can interpret. When a program crashes and it generates a crash report, Visual Studio is able to take that report and link it back to the source code via the PDB file for the application. PDB

C# release version has still .pdb file

南楼画角 提交于 2019-11-27 03:03:37
I want to deploy the release version of my application done in C#. When I build using the Release config, I still can see that .pdb files are produced, meaning that my application can be still debugged. This also means that some debug information is present somewhere in my code, slowing it down a little bit. If this is true, how can I completely suppress any debug information produced in the binaries? Do you also know the reason of for having release .pdb ? The Release configuration has the Optimize code checked, and only the TRACE constant is defined, not DEBUG . Thank you for assisting. If

Can optimizations affect the ability to debug a VC++ app using its PDB?

▼魔方 西西 提交于 2019-11-27 02:05:25
问题 In order to be able to properly debug release builds a PDB file is needed. Can the PDB file become less usable when the compiler uses different kinds of optimizations (FPO, PGO, intrinsic functions, inlining etc.)? If so, is the effect of optimization severe or merely cause adjacent lines of code to get mixed up? (I'm using VC2005, and will always choose debugability over optimized performance - but the question is general) 回答1: Yes, optimized code is less debuggable. Not only is some

How can I include line numbers in a stack trace without a pdb?

心不动则不痛 提交于 2019-11-27 00:57:33
We are currently distributing a WinForms app without .pdb files to conserve space on client machines and download bandwidth. When we get stack traces, we are getting method names but not line numbers. Is there any way to get the line numbers without resorting to distributing the .pdb files? You can't get a stack trace with line numbers directly from your application unless you bundle the PDB. However , if you have the PDB files for the same version of the app that you ship to your customers, and you don't mind some light scripting, then you can turn the .NET stack trace and IL offsets back

How to remove warning LNK4099: PDB 'lib.pdb' was not found

和自甴很熟 提交于 2019-11-27 00:02:32
问题 LNK4099 warnings can occur when building on Windows during the link phase of a static compilation. E.g. when building using nmake and VC10 I get a stream of LNK4099 warnings like: libcurl_a_debug.lib(rc2_cbc.obj) : warning LNK4099: PDB 'lib.pdb' was not found with 'libcurl_a_debug.lib(rc2_cbc.obj)' or at 'C:\dev\scaler\center\dlux\lib.pdb'; linking object as if no debug info StackOverflow gives a good overview of the problem, but not the detail required to understand it. Rather than ignore

Reading a .pdb file

我只是一个虾纸丫 提交于 2019-11-26 19:36:35
问题 I have a lot of files in .pdb format, some of them downloaded, but until now I can't use or read what's inside, so I'm looking for how to read and view the .pdb file format from MS Windows XP. Any of you that may know how to open it? 回答1: If you mean PDB as in a "program database" that the debugger uses: PDB files contain data about a file such as an EXE or DLL that is used to aid in debugging. There are public interfaces that allow you to extract data from the file. See examples here: http:/