In one embodiment, the present invention is a port-sharing device for testing an integrated circuit having a plurality of functional blocks, wherein the port-sharing device comprises (a) an on-chip interface port configured to be connected to a pin on the integrated circuit; and (b) at least two debugger ports, each configured to be connected to at least one debugger device to enable the at least