An embedded Universal Serial Bus debug in an electronic system, comprising: a USB hub (42), comprising: at least one upstream interface coupled to a USB physical in the electronic system; and a plurality of downstream interfaces communicatively coupled to the at least one upstream interface; and a debug peripheral coupled to one of the plurality of downstream interfaces, wherein the debug peripheral is configured to exchange USB formatted data packets with the USB hub over the one of the plurality of downstream interfaces; wherein the debug peripheral is communicatively coupled to at least one debug function among a plurality of debug functions in the electronic system to receive debugging information from the at least one debug function; wherein the debug peripheral is configured to convert the debugging information received from the at least one debug function into the USB formatted data packets to be provided to the USB hub; wherein the USB hub is configured to provide the USB formatted data packets to the USB PHY over the at least one upstream interface; and wherein the EUD comprises a bypass switch configured to enable a debugging mode for the electronic system, the bypass switch comprising: a first bypass switch coupled to the at least one upstream interface and the USB PHY; and a second bypass switch coupled to a USB controller in the electronic system and one of the plurality of downstream interfaces, and further comprising a disconnect switch configured to detach the electronic system from the USB hub by keeping the disconnect switch open. at least one upstream interface coupled to a USB physical in the electronic system; and a plurality of downstream interfaces communicatively coupled to the at least one upstream interface; and a debug peripheral coupled to one of the plurality of downstream interfaces, wherein the debug peripheral is configured to exchange USB formatted data packets with the USB hub over the one of the plurality of downstream interfaces; wherein the debug peripheral is communicatively coupled to at least one debug function among a plurality of debug functions in the electronic system to receive debugging information from the at least one debug function; wherein the debug peripheral is configured to convert the debugging information received from the at least one debug function into the USB formatted data packets to be provided to the USB hub; wherein the USB hub is configured to provide the USB formatted data packets to the USB PHY over the at least one upstream interface; and wherein the EUD comprises a bypass switch configured to enable a debugging mode for the electronic system, the bypass switch comprising: a first bypass switch coupled to the at least one upstream interface and the USB PHY; and a second bypass switch coupled to a USB controller in the electronic system and one of the plurality of downstream interfaces, and further comprising a disconnect switch configured to detach the electronic system from the USB hub by keeping the disconnect switch open. a first bypass switch coupled to the at least one upstream interface and the USB PHY; and a second bypass switch coupled to a USB controller in the electronic system and one of the plurality of downstream interfaces, and further comprising a disconnect switch configured to detach the electronic system from the USB hub by keeping the disconnect switch open.