Debugging method and system for heterogeneous processor systems

A program debugging method and system for heterogeneous processor systems. The debugging method comprising: a debugger program and the main core from the core set according to user settings are user program break; operating system debug exception, the debug exception by the master from the nuclear core or based on user break generating; operating system recognizes the debug exception or a debug exception-based nuclear core from the debug exception and debug exception of the site of the primary core and / or a mapping from the nucleus to the debugger site accessible address space, then the wakeup said debugger; debugger is awakened, the primary core recorded query field and / or from a nuclear site. Technical Solution The present invention provides a general scheme for heterogeneous parallel program debugging parallel program to support the heterogeneous processor debugging system of two kinds of components.