开发者

problems in starting a script in WinDbg

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 开发者_如何学Gothe 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 ***


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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜