¼ÐÃD:
·L³n¤@Ó¨u¬°¤Hª¾ªºµL¼Ä©R¥O
[¥´¦L¥»¶]
§@ªÌ:
wen
®É¶¡:
2007-12-30 20:13
¼ÐÃD:
·L³n¤@Ó¨u¬°¤Hª¾ªºµL¼Ä©R¥O
·L³n¤@Ó¨u¬°¤Hª¾ªºµL¼Ä©R¥O
¡@¡@°Ý:«ç»ò¤~¯àÃö±¼¤@ӥΥô°ÈºÞ²z¾¹Ãö¤£¤Fªº¶iµ{¡H§Ú«e¬q®É¶¡µo²{§Úªº¾÷¤lùئh¤F¤@Ó¶iµ{¡A¥un¶}¾÷´N¦b¡A§Ú¥Î¥ô°ÈºÞ²z¾¹«o«ç»òÃö¤]Ãö¤£¤F
¡@¡@µª1:±þ¶iµ{«Ü®e©ö¡AÀH«K§äÓ¤u¨ã³£¦æ¡C¤ñ¦pIceSword¡CÃöÁä¬O§ä¨ì³oÓ¶iµ{ªº±Ò°Ê¤è¦¡¡A¤£µM¤U¦¸«±Ò¥¦¤S¥X¨Ó¤F¡C¶¶«K±Ð¤j®a¤@©Û¬½ªº¡C¨ä¹ê¥ÎWindows¦Û±aªº¤u¨ã´N¯à±þ¤j³¡¤À¶iµ{¡G
¡@¡@c:\>ntsd -c q -p PID
¡@¡@¥u¦³System¡BSMSS.EXE©MCSRSS.EXE¤£¯à±þ¡C«e¨âÓ¬O¯Â¤º®ÖºAªº¡A³Ì«á¨ºÓ¬OWin32¤l¨t²Î¡Antsd¥»¨»Ýn¥¦¡Cntsd±q2000¶}©l´N¬O¨t²Î¦Û±aªº¥Î¤áºA½Õ¸Õ¤u¨ã¡C³Q½Õ¸Õ¾¹ªþµÛ(attach)ªº¶iµ{·|ÀH½Õ¸Õ¾¹¤@°_°h¥X¡A©Ò¥H¥i¥H¥Î¨Ó¦b©R¥O¦æ¤U²×¤î¶iµ{¡C¨Ï¥Întsd¦Û°Ê´NÀò±o¤Fdebug³\¥iÅv¡A±q¦Ó¯à±þ±¼¤j³¡¤Àªº¶iµ{¡Cntsd·|·s¶}¤@Ó½Õ¸Õµøµ¡¡A¥»¨Ó¦b¯Â©R¥O¦æ¤UµLªk±±¨î¡A¦ý¦pªG¥u¬O²³æªº©R¥O¡A¤ñ¦p°h¥X(q)¡A¥Î-c°Ñ¼Æ±q©R¥O¦æ¶Ç»¼´N¦æ¤F¡CNtsdNtsd «ö·ÓºD¨Ò¤]¦V³nÅéµo®i¤Hû´£¨Ñ¡C¥u¦³¨t²Î¶}µo¤Hû¨Ï¥Î¦¹©R¥O¡C¦³Ãö¸Ô²Ó¸ê°T¡A½Ð°Ñ¾\ NTSD ¤¤©ÒªþªºÀ°§UÀÉ¡C¥Îªk:¶}Ócmd.exeµøµ¡¡A¿é¤J¡G
¡@¡@ntsd -c q -p PID
¡@¡@§â³Ì«á¨ºÓPID¡A§ï¦¨§An²×¤îªº¶iµ{ªºID¡C¦pªG§A¤£ª¾¹D¶iµ{ªºID¡A¥ô°ÈºÞ²z¾¹¡Ð>¶iµ{¿ï¶µ¥d¡Ð>¬d¬Ý¡Ð>¿ï¾Ü¦C¡Ð>¤Ä¤W"PID¡]¶iµ{ÃѧO¦r¡^"¡AµM«á´N¯à¬Ý¨£¤F¡C
¡@¡@µª2¡Gxp¤UÁÙ¦³¨âÓ¦nªFªFtasklist©Mtskill¡Ctasklist¯à¦C¥X©Ò¦³ªº¶iµ{¡A©M¬ÛÀ³ªº¸ê°T¡Ctskill¯à¬d±þ¶iµ{¡A»yªk«Ü²³æ¡Gtskill µ{¦¡¦W¡I¡I
°Ñ¦Ò¸ê®Æ¡G
NTSD ªºÀ°§UÀÉ
usage: ntsd [-?] [-2] [-d] [-g] [-G] [-myob] [-lines] [-n] [-o] [-s] [-v] [-w]
[-r BreakErrorLevel] [-t PrintErrorLevel]
[-hd] [-pd] [-pe] [-pt #] [-pv] [-x | -x{e|d|n|i} ]
[-- | -p pid | -pn name | command-line | -z CrashDmpFile]
[-zp CrashPageFile] [-premote transport] [-robp]
[-aDllName] [-c "command"] [-i ImagePath] [-y SymbolsPath]
[-clines #] [-srcpath SourcePath] [-QR \\machine] [-wake ]
[-remote transport:server=name,portid] [-server transport:portid]
[-ses] [-sfce] [-sicv] [-snul] [-noio] [-failinc] [-noshell]
where: -? displays this help text
command-line is the command to run under the debugger
-- is the same as -G -g -o -p -1 -d -pd
-aDllName sets the default extension DLL
-c executes the following debugger command
-clines number of lines of output history retrieved by a remote client
-failinc causes incomplete symbol and module loads to fail
-d sends all debugger output to kernel debugger via DbgPrint
-d cannot be used with debugger remoting
-d can only be used when the kernel debugger is enabled
-g ignores initial breakpoint in debuggee
-G ignores final breakpoint at process termination
-hd specifies that the debug heap should not be used
for created processes. This only works on Windows Whistler.
-o debugs all processes launched by debuggee
-p pid specifies the decimal process Id to attach to
-pd specifies that the debugger should automatically detach
-pe specifies that any attach should be to an existing debug port
-pn name specifies the name of the process to attach to
-pt # specifies the interrupt timeout
-pv specifies that any attach should be noninvasive
-r specifies the (0-3) error level to break on (SeeSetErrorLevel)
-robp allows breakpoints to be set in read-only memory
-t specifies the (0-3) error level to display (SeeSetErrorLevel)
-w specifies to debug 16 bit applications in a separate VDM
-x sets second-chance break on AV exceptions
-x{e|d|n|i} sets the break status for the specified event
-2 creates a separate console window for debuggee
-i ImagePath specifies the location of the executables that generated
the fault (see _NT_EXECUTABLE_IMAGE_PATH)
-lines requests that line number information be used if present
-myob ignores version mismatches in DBGHELP.DLL
-n enables verbose output from symbol handler
-noio disables all I/O for dedicated remoting servers
-noshell disables the .shell (!!) command
-QR <\\machine> queries for remote servers
-s disables lazy symbol loading
-ses enables strict symbol loading
-sfce fails critical errors encountered during file searching
-sicv ignores the CV record when symbol loading
-snul disables automatic symbol loading for unqualified names
-srcpath specifies the source search path
-v enables verbose output from debugger
-wake wakes up a sleeping debugger and exits
-y specifies the symbol search path (see _NT_SYMBOL_PATH)
-z specifies the name of a crash dump file to debug
-zp specifies the name of a page.dmp file
to use with a crash dump
-remote lets you connect to a debugger session started with -server
must be the first argument if present
transport: tcp | npipe | ssl | spipe | 1394 | com
name: machine name on which the debug server was created
portid: id of the port the debugger server was created on
for tcp use: port=
for npipe use: pipe=
for 1394 use: channel=
for com use: port=,baud=,
channel=
for ssl and spipe see the documentation
example: ... -remote npipe:server=yourmachine,pipe=foobar
-server creates a debugger session other people can connect to
must be the first argument if present
transport: tcp | npipe | ssl | spipe | 1394 | com
portid: id of the port remote users can connect to
for tcp use: port=
for npipe use: pipe=
for 1394 use: channel=
for com use: port=,baud=,
channel=
for ssl and spipe see the documentation
example: ... -server npipe:pipe=foobar
-premote transport specifies the process server to connect to
transport arguments are given as with remoting
Environment Variables:
_NT_SYMBOL_PATH=[Drive:][Path]
Specify symbol image path.
_NT_ALT_SYMBOL_PATH=[Drive:][Path]
Specify an alternate symbol image path.
_NT_DEBUGGER_EXTENSION_PATH=[Drive:][Path]
Specify a path which should be searched first for extensions dlls
_NT_EXECUTABLE_IMAGE_PATH=[Drive:][Path]
Specify executable image path.
_NT_SOURCE_PATH=[Drive:][Path]
Specify source file path.
_NT_DEBUG_LOG_FILE_OPEN=filename
If specified, all output will be written to this file from offset 0.
_NT_DEBUG_LOG_FILE_APPEND=filename
If specified, all output will be APPENDed to this file.
_NT_DEBUG_HISTORY_SIZE=size
Specifies the size of a server's output history in kilobytes
Control Keys:
Quit debugger
Break into Target
Force a break into debuggee (same as Ctrl-C)
Debug Current debugger
Toggle Verbose mode
Print version information
ntsd: exiting - press enter ---
½Æ»s¥N½X
Åwªï¥úÁ{ x2bbs (http://wen-jos.idv.tw/)
Powered by Discuz! 7.0.0