pdbstr 无法从安装文件夹外部运行
我尝试在没有 SVC 的情况下设置源服务器 - 我想使用简单的 UNC 路径作为源存储。
我用一个文件制作了小型控制台项目,并尝试对其进行源索引。
我有以下流文件:
SRCSRV: ini ------------------------------------------------
VERSION=1
INDEXVERSION=2
VERCTRL=Test
DATETIME=Mon, 04 October 2010
SRCSRV: variables ------------------------------------------
SRCSRVTRG=
SRCSRVCMD=cmd /c "copy" %var2 %targ%
SRCSRV: source files ---------------------------------------
C:\Users\mb\Documents\Visual Studio 2010\Projects\TestSymbolServer\Program.cs*\\mbvirt-pc\symserver\source\Program.cs
SRCSRV: end ------------------------------------------------
当我尝试使用 pdbstr 写入我的 pdb 时,如下所示:
pdbstr -w -p:"C:\Users\mb\Documents\Visual Studio 2010\Projects\TestSymbolServer\bin\Release\TestSymbolServer.pdb" -i:srcsrv -s:"C:\Users\mb\Documents\Visual Studio 2010\Projects\TestSymbolServer\bin\Release\symbols.txt"
我只得到以下响应:
C:\Users\mb\Documents\Visual Studio 2010\Projects\TestSymbolServer\bin\Release>p
dbstr -w -p:"C:\Users\mb\Documents\Visual Studio 2010\Projects\TestSymbolServer\
bin\Release\TestSymbolServer.pdb" -i:srcsrv -s:"C:\Users\mb\Documents\Visual Stu
dio 2010\Projects\TestSymbolServer\bin\Release\symbols.txt"
pdbstr -r/w -p:PdbFileName -i:StreamFileName -s:StreamName
当我使用 srctool 检查 pdb 时,我可以看到没有写入任何内容。而且,当我尝试像这样从 pdb 读取流时,我得到了相同的响应
"C:\Program Files\Debugging Tools for Windows (x64)\srcsrv\pdbstr" -r -p:"C:\Users\mb\Documents\Visual Studio 2010\Projects\TestSymbolServer\bin\Release\TestSymbolServer.pdb" -i:srcsrv
这可能是 pdbstr 或我的环境中的问题吗?我可以以某种方式从 pdbstr 获取日志吗?
I try to setup source server without SVC- I want to use a simple UNC path as a source storage.
I made small console project with a single file and try to make it source indexed.
I have following stream file:
SRCSRV: ini ------------------------------------------------
VERSION=1
INDEXVERSION=2
VERCTRL=Test
DATETIME=Mon, 04 October 2010
SRCSRV: variables ------------------------------------------
SRCSRVTRG=
SRCSRVCMD=cmd /c "copy" %var2 %targ%
SRCSRV: source files ---------------------------------------
C:\Users\mb\Documents\Visual Studio 2010\Projects\TestSymbolServer\Program.cs*\\mbvirt-pc\symserver\source\Program.cs
SRCSRV: end ------------------------------------------------
When I try to write to my pdb with use of pdbstr like this:
pdbstr -w -p:"C:\Users\mb\Documents\Visual Studio 2010\Projects\TestSymbolServer\bin\Release\TestSymbolServer.pdb" -i:srcsrv -s:"C:\Users\mb\Documents\Visual Studio 2010\Projects\TestSymbolServer\bin\Release\symbols.txt"
I getting only this response:
C:\Users\mb\Documents\Visual Studio 2010\Projects\TestSymbolServer\bin\Release>p
dbstr -w -p:"C:\Users\mb\Documents\Visual Studio 2010\Projects\TestSymbolServer\
bin\Release\TestSymbolServer.pdb" -i:srcsrv -s:"C:\Users\mb\Documents\Visual Stu
dio 2010\Projects\TestSymbolServer\bin\Release\symbols.txt"
pdbstr -r/w -p:PdbFileName -i:StreamFileName -s:StreamName
When I check pdb with srctool I can see that nothing was written. And moreover- I'm getting the same response when I try to read stream from the pdb like this
"C:\Program Files\Debugging Tools for Windows (x64)\srcsrv\pdbstr" -r -p:"C:\Users\mb\Documents\Visual Studio 2010\Projects\TestSymbolServer\bin\Release\TestSymbolServer.pdb" -i:srcsrv
Could this be an issue with pdbstr or in my environment? Can I somehow get logs from pdbstr?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我的懒惰似乎是万恶之源。
我已将“C:\Program Files\Debugging Tools for Windows (x64)\srcsrv”添加到系统路径变量,并从本地项目所在的文件夹运行 pdbstr。看起来 pdbstr 在安装文件夹中有一些依赖项。
所以应该从原来的位置调用。
短路径长问题列表:-(
My laziness is appeared to be the root of all evil.
I have added "C:\Program Files\Debugging Tools for Windows (x64)\srcsrv" to system path variables and run pdbstr from folder were my local project resides. Looks like pdbstr has some dependencies in install folder.
So it should be called from the original location.
Short path long problems list :-(