dump file and pdb file

pdb file:

只是一个映射表,不包含源码内容。

存储的内容:

1.maps the identifiers that you create in source files for classes, methods, and other code to the identifiers that are used in the compiled executables of your project.

    The .pdb file also maps the statements in the source code to the execution instructions in the executables.

  The debugger uses this information to determine two key pieces of information:

    the source file and line number that are displayed in the Visual Studio IDE

    the location in the executable to stop at when you set a breakpoint.

标识符的映射,代码的映射。

 

2.A symbol file also contains the original location of the source files, and optionally, the location of a source server where the source files can be retrieved from.

  pdb同样存储着编译时源代码的原始路径。

Using Dump Files:

  .dmp:

  1.存储的内容:

      Dump files with heaps:

       If you load a dump file that was saved with a heap, Visual Studio can load the symbols even if the application binary is not found. Visual Studio also saves the binaries of loaded native modules in the dump file, which can make debugging much easier.

      存储了二进制文件,所以缺了调试机器没有二进制文件也可以调试。

    Dump files without heaps: 

      are much smaller than dumps with heap information.

      要调试一定要指定二进制文件。

  2.调试要的文件:

    二进制,源,pdb,缺一不可。如果是heap,二进制存在dump文件里,所以不需要自己准备。

  3.调试的时候,vs debugger从哪里找文件

  Default search paths for executable files

  Visual Studio automatically searches these locations for executable files that aren’t included in the dump file:

  1. The directory that contains the dump file.(dump文件所在的路径)
  2. The path of the module that is specified in the dump file. This is the module path on the machine where the dump was collected.(如果是dump的机器,dump文件会存着路径)
  3. The symbol paths specified in the DebuggingOptionsSymbols page of the Visual Studio ToolsOptions dialog box. You can add more locations to search on this page.(debugger里指定的pdb的路径)。
时间: 2024-08-25 15:56:58

dump file and pdb file的相关文章

解决Cannot find or open the PDB file问题

今天使用opencv里的mat想要保存数据里边的像素的平均值和标准差: 但是编程好了之后会出现下面的问题,不能找到pdb file .下面将提供三种解决方法以及产生问题的原因. 程序也运行不出来,整个人都不好了.后来上贴吧和网上搜,有很多种解决办法,但是对我最用的是第1个: 方法1.首先确认是不是建立的空项目而不是win32位控制台项目,如果建立的是空项目,建议把空项目改成win32位控制台项目,问题一下子就解决了. 方法2.还有种说法是其实问题在于,在空项目中不生成调试文件pdb,所以无法调试

warning: Cannot find or open the PDB file

visual studio 2010 正常运行后在output window 跳出一堆warnings 'Shaders.exe': Loaded 'C:\Documents and Settings\User\My Documents\Visual Studio 2010\Projects\Shaders\Win32\Debug\Shaders.exe', Symbols loaded. 'Shaders.exe': Loaded 'C:\WINDOWS\system32\ntdll.dll'

Cannot find or open the PDB file

Cannot find or open the PDB file 分类: vc++ 2013-08-19 16:48 672人阅读 评论(0) 收藏 举报 2012OpenCVWindows调试win32 vs2012运行程序时出现以下的情况: 'surfmatch.exe' (Win32): Loaded 'F:\opencv\cv图像匹配\cv匹配6\surfmatch\Release\surfmatch.exe'. Symbols loaded. 'surfmatch.exe' (Win3

VS2010,Cannot find or open the PDB file

http://blog.163.com/chenpeijie0_0/blog/static/1830945712011780275118/ 用vs2010写程序时,经常遇到:想查看输出结果,但是提示命令符却老是一闪而过,有什么好的解决办法呢?貌似还跟64位的win7系统有关.. 在网上找到了如下解决办法: ①目前为止最好的解决办法:(来自:CSDN论坛.新浪博客) 运行按:Ctrl+F5 (根本原因:程序输出的地方是系统而不是vs2010.你所点的按钮(或者按快捷键F5)的结果是启动调试.你所想

TFS Build Error: CSC : fatal error CS0042: Unexpected error creating debug information file 'xxxx.PDB'

CSC : fatal error CS0042: Unexpected error creating debug information file 'xxxx.PDB' -- 'c:\Builds\xxxx.pdb: The process cannot access the file because it is being used by another process. 查看了详细的Build Log, 发现了同样的一文件被build了两次. 原因是 Solution 中的 Project

VS2010下Cannot find or open the PDB file 问题的解决

如果不是想debug,则该问题可以无视 如果确定要debug,请按该流程操作: 1.工具->选项->调试->符号: 2.勾选Microsoft符号服务器,点击确定,然后按照第一步步骤再次点开该对话框,这时下面一栏的"在此目录下缓存符号"中会自动填充一个目录路径,复制该路径, 3.在"Microsoft符号服务器"所在列表中添加一项,内容是上一步复制到路径,点击确定 4.debug,系统会从官方服务器下载符号缓存 5.完成后按照第一步步骤再次打开对话

Oracle 12c ORA-01516: nonexistent log file, data file, or temporary file "10"

执行alter database move操作报错ORA-01516: SQL> alter database move datafile '/u01/app/oracle/oradata/cdb/pdb/pdb_users01.dbf' to '/u01/app/pdb_user01.dbf'; alter database move datafile '/u01/app/oracle/oradata/cdb/pdb/pdb_users01.dbf' to '/u01/app/pdb_user

error opening trace file: No such file or directory (2)

1.问题描述: 运行报错: 12-25 13:35:32.286: E/Trace(1202): error opening trace file: No such file or directory (2) 注:虽然报错,但程序仍然能运行..... 2.问题分析: (1)网上的一些说法: 很多人在编写Android代码的时候都会遇到这个错误,按照字面翻译是“没有这类文件或者是目录”很多人不解为什么系统会提示这样的错误呢?明明就有啊.其实系统是找不到文件或者是目录! 很多人在写了很多class文

libuuid.so: cannot open shared object file: No such file or directory

在玩ngx-lua时候有个 resty-uuid 需要引用 libuuid.so 动态库 打印log提示信息是这样的: libuuid.so: cannot open shared object file: No such file or directory 解决方案: [[email protected] ~]#yum install libuuid libuuid-devel [[email protected] ~]#ln -s /lib64/libuuid.so.1.3.0 /usr/l