To debug an application with SoftICE, you will need to load the application's symbol information first, and then launch the application from Windows.
1.Right-click on NMS files,and select Load into SoftICE from the pop-up menu.
Now you must set a breakpoint so SoftICE will pop-up when the application is started.
1.Press <CTRL>-D to pop-up the SoftICE window.
2.Use the SET MAXIMIZE command to fully expand it.
: SET MAXIMIZE on
3.Issue the TABLE command.
4.Issue the FILE * command.
such as
: TABLE nmdemo1a
:FILE nmdemo1app
5.Jump to the WinMain function using the U command.
:U winmain
6.Set a breakpoint on WINMAIN by issuing the BPX command.
:BPX winmain
7.Enter the X(exit) command,or press F5 to pop-down SoftICE.
8.Start the application such as NMdemo1a by double-clicking on the executable.
SoftICE pops up when the breakpoint you set on WINMAIN is hit.
本文介绍了如何使用SoftICE加载应用程序的符号信息,并设置断点来调试应用程序。首先需要加载NMS文件,然后通过一系列SoftICE命令如U和BPX设置断点于WinMain函数上,最后启动应用程序进行调试。
3980

被折叠的 条评论
为什么被折叠?



