1. A method to facilitate debugging a platform-independent virtual machine, comprising: providing an agent on the platform-independent virtual machine, wherein the agent provides a set of functions for accessing a plurality of variables in the platform-independent virtual machine; adapting the platform-independent virtual machine to call the set of functions within the agent; examining a current state of the plurality of variables in the platform-independent virtual machine using the agent; and communicating the current state of the plurality of variables to a host machine, wherein an operator of the host machine can analyze the current state of the plurality of variables.