Microsoft SDK for Java

IRemoteMethodField::
GetIndexedField

The GetIndexedField method of the IRemoteMethodField interface can be used by debuggers that understand the local variable slot layouts of Java methods. A method's local variable slots contain the arguments to the method in addition to the local variables.

The local variable slots may be re-used in the method. Therefore, at one computer a slot may contain one local variable, while at another computer it may contain a different local variable.

To determine what the local variable slots in a method are used for, the debugger typically performs bytecode disassembly on the method. Local variable slot indexes are zero-based.

Syntax

HRESULT GetIndexedField(ULONG slot, ULONG offPC, IRemoteField **ppField)

Parameters

[in] slot The slot in this method of the field to be retrieved.
[in] offPC The bytecode offset within this method indicating the given slot's point of execution.
[out] ppField Returns the field contained by the given slot at the given bytecode offset.

Return Value

S_OK Success.

E_FAIL There is no field in the given slot at the given bytecode offset.

© 1999 Microsoft Corporation. All rights reserved. Terms of use.