Debug: S (Search)
Page updated January 21, 2005
Syntax
Parameters
Remarks
- Windows XP and the Windows Server 2003 family of products do not use this command. It is included only to preserve compatibility with existing MS-DOS files, but it has no effect at the command line because the functionality is automatic.
-
Use Range with a debug subcommand to specify a range of memory. You can choose one of the following formats for Range: a starting address and an ending address, or a starting address and the length (denoted by l) of the range. For example, both of the following syntaxes specify a 16-byte range beginning at CS:100:
cs:100 10f
cs:100 l 10
- When you use the List parameter, separate each byte value with a space or comma and enclose string values in quotation marks (that is, "String"). If List contains more than one byte value, Debug.exe displays the first address where the byte value occurs only. If List contains one byte value, Debug.exe displays all addresses where the value occurs in the specified range.
Examples
scs:100 110 41
Debug.exe displays the results in the following format:
04BA:0104
04BA:010D-
To search for the string "Ph" in the range CS:100 through CS:1A0, type:
scs:100 1a0 "Ph"
Formatting legend
Format | Meaning |
Italic | Information that the user must supply |
Bold | Elements that the user must type exactly as shown |
Ellipsis (...) | Parameter that can be repeated several times in a command line |
Between brackets ([]) | Optional items |
Between braces ({}); choices separated by pipe (|). Example: {even|odd} | Set of choices from which the user must choose only one |
Courier font | Code or program output |
Some of these terms may be the same or similar to DOS commands. For information on DOS Commands, click here