I am writing some firmware for the atmega16u2 and have noticed that the usb device hardware does not work correctly if debugwire is enabled. The usb device does not enumerate. Disabling debugwire immediately causes the usb device hardware to work as expected (enumerates correctly). Debugwire debuggin works correctly except for the functionality of the usb device hardware.
Is there a way to allow/make the usb device to work correctly with debugwire?