在 WinDbg 中启动脚本时出现问题
我正在尝试运行 WinDebug 脚本,但不能。 我的脚本非常简单,名为 DBG_SCRIPT.txt
,位于 WinDbg 所在的同一文件夹中。 它具有以下基本上启动调试会话的代码。
.echo "hi I am starting debugging" g
我尝试了以下命令行,但它没有启动。
windbg c:\myapp.exe" -c "$$><$c:\Program Files\Debugging Tools for Windows (x86)\DBG_SCRIPT.txt windbg c:\myapp.exe" -c "$$><$DBG_SCRIPT.txt windbg c:\myapp.exe" -c "$$><$.\DBG_SCRIPT.txt
这是正确的吗? 我根本没有看到调试开始。 我有以下错误,我也怀疑与使用的 pdb 符号有关。
CommandLine: "c:\myapp.exe" -c "$$><$c:\Program Files\Debugging Tools for Windows (x86)\DBG_SCRIPT.txt" Symbol search path is: *** Invalid ***
I am trying to run a WinDebug script but I cannot.
The script I have is preatty simple and called DBG_SCRIPT.txt
in the same folder where WinDbg is located.
It has the following code that basically starts a debug session.
.echo "hi I am starting debugging" g
I tried the following command line but it doesn't start.
windbg c:\myapp.exe" -c "$><$c:\Program Files\Debugging Tools for Windows (x86)\DBG_SCRIPT.txt windbg c:\myapp.exe" -c "$><$DBG_SCRIPT.txt windbg c:\myapp.exe" -c "$><$.\DBG_SCRIPT.txt
is this correct?
I don't see the debugging starting at all.
I have the following error that I also suspect related to pdb symbols used.
CommandLine: "c:\myapp.exe" -c "$><$c:\Program Files\Debugging Tools for Windows (x86)\DBG_SCRIPT.txt" Symbol search path is: *** Invalid ***
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
你的命令行有两个问题,命令需要出现在 EXE 之前,并且你有一个额外的 $。试试这个:
windbg -c "$$>< DBG_SCRIPT.txt" c:\myapp.exe
-scott
Your command line has two problems, the command needs to come before the EXE and you have an extra $. Try this:
windbg -c "$$>< DBG_SCRIPT.txt" c:\myapp.exe
-scott