Hi I made my own PCB board based in arduino leonardo with ATmega32U4 but I connect a digital I/O pin that I should't to VUSB and it causes my uC to heat a lot and USB port malfunction. So I want to know if there is any way to disonnect it with source code like disable the port or something, other way I will have to remove the uC from the PCB and I dont have the tools.
What package is the uC in? If it's TQFP, with great care, good eyesight, and appropriately small cutters, you can cut the pin without removing the chip, then hit the pin with the soldering iron to pull away the remains of the pin. It's tedious, but since you're looking at replacing the uC, it's less tedious than that (unless you have a proper hot-air rework station)