Hurrah for "attach" - that is a very useful feature! I can also see it being handy when a project starts correctly when launched by "debug", but doesn't when switched on from cold and allowed to start by itself.
The EMC immunity problems all stem from large inductances being de-energised. If the transformer in a Weller soldering iron on the same bench causes problems, what chance do I stand with the coil in a 160 Amp three-phase contactor? (It's definitely the coil, not the current being switched that causes problems) Both the USB and the SWD connections to the LPC-LINK2 are wound common-mode around a 40mm ferrite toroid, which improves things a lot, but it still fails with "bad ACK" from time to time when the contactor switches off.