如何查看Visual Studio * .pdb?

编程入门 行业动态 更新时间:2024-10-26 12:33:49
本文介绍了如何查看Visual Studio * .pdb?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

大家好, i知道我项目的文件* .pdb包含有关全局变量地址的所有信息。 i wana要知道并查看这些信息用于某些目的。

解决方案

pdb文件在编译期间创建。我可以问你为什么要这样做?

我需要知道我的全局变量的相对地址,这样当我的程序运行时我可以改变那些地址和控制的值运行我的程序。 ,因为我的程序是嵌入式控制软件的测试版,在完成测试后将加载到芯片,所以我需要提取所有调试信息,我知道这是由visual studio存储在pdb文件中,所以我想知道这个文件的viwer?谢谢

它没有意义.. 如果你想要控制你的记忆地址,然后寻找相对的方式,你寻找的方式是不方便的。 您想要更改的地址将在运行时选择。你与此无关。 我不知道您的嵌入式设备或该设备的操作系统,但如果您想将(不更改)地址设置为全局地址,则必须以编程方式执行此操作。可能是定义一个指针类型变量,然后直接设置地址。 但是如果你想访问其他软件的内存地址,那么按照链接您可能会找到出路。

hi all, i know that the file *.pdb for my project contains all information about global variables address. i wana to know and view those information for some purposes.

解决方案

pdb file get created during compilation time. may I ask why you want to do that??

i need to know the relative addresses of my global variables,so that while my programm running i can change the value of those addresses and control the running of my programm. because my program is a beta for an embeded control software that will be loadded to the chip after completing the testing,so i need to extract all debugging information and i know that is stored in the pdb file by the visual studio,so i wana a viwer for this file?thanks

It does not make sense.. If you want to control your memory address then look for the relative way, the way you are looking for is not convenient. The address you want to change will be chosen in runtime. you have nothing to do with that. I dont know your embedded device or the operating system of that device, but If you want to set(Not change) a address as global address then you will have to do it programmatically. May be defining a pointer type variable and then set the address directly. But If you want to access memory address of other software then Follow the link you might find a way out.

更多推荐

如何查看Visual Studio * .pdb?

本文发布于:2023-11-05 09:07:40,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1560438.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:Visual   Studio   pdb

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!