列出記憶體命令

顯示指定的記憶體範圍的內容。

語法

Debug.ListMemory [/ANSI|Unicode] [/Count:number] [/Format:formattype]
[/Hex|Signed|Unsigned] [expression]

引數

expression

選擇性。 要從其中開始顯示記憶體的記憶體位址。

交換器

/ANSI|Unicode

選擇性。 顯示對應到記憶體位元組的記憶體字元,ANSI 或 Unicode。

/Count:number

選擇性。 決定要顯示多少個位元組的記憶體,從 expression 開始。

/Format:formattype

選擇性。 在 [記憶體] 視窗中檢視記憶體資訊用的格式類型,可能是 OneByte、TwoBytes、FourBytes、EightBytes、Float (32 位元) 或 Double (64 位元)。 如果使用 OneByte,則無法使用 /Unicode

/十六進位|帶正負號|不帶正負號

選擇性。 指定檢視數字的格式:帶正負號、不帶正負號,或十六進位。

備註

您不必寫出完整的 Debug.ListMemory 命令與所有參數,而可以使用預先定義的別名叫用命令,並將特定的參數預設為指定的值。 例如,若不輸入:

>Debug.ListMemory /Format:float /Count:30 /Unicode

您可以撰寫:

>df /Count:30 /Unicode

以下是 Debug.ListMemory 命令可用的別名清單:

Alias 命令和參數
Debug.ListMemory
da Debug.ListMemory /Ansi
db Debug.ListMemory /Format:OneByte
dc Debug.ListMemory /Format:FourBytes /Ansi
dd Debug.ListMemory /Format:FourBytes
df Debug.ListMemory /Format:Float
dq Debug.ListMemory /Format:EightBytes
du Debug.ListMemory /Unicode

範例

>Debug.ListMemory /Format:float /Count:30 /Unicode

另請參閱