1. A method for simulating modeled components in a virtual platform with global identifiers, the method comprising: on a computer device having a single interface, running on a single control thread, to access all modeled components, including at least one modeled hardware component and at least one modeled software component, in the virtual platform: implementing a hardware model simulating a processor in the virtual platform; simulating an operating system (OS) operating in conjunction with the hardware model; executing an application on the OS; and simulating the modeled components using an event-driven simulator; upon detecting a breakpoint in source code of the application for a modeled component of the modeled components during the simulation, transferring control of the simulation to the control thread, wherein the control thread accesses state information for the modeled component by utilizing a global identifier to retrieve the state information from a memory, wherein the breakpoint occurs at least at a domain context switch in the source code, and wherein the domain context switches occur when the source code being processed switches from being: (i) the source code of the modeled hardware component to the source code of the modeled software component or (ii) the source code of the modeled software component to the source code of the modeled hardware component.