I have ATmega328pb mini eval board connected with USB to PC running Atmel Studio 7 (7.0.1645).
I can program the part, but debug does not launch.
Debug->Start Debugging and Break
I get the expected "Failed to launch ... Do you want to use SPI to enable the DWEN fuse?"
I say "Yes"
"Setting debugWire fuse seems to have failed. Check your clock and fuse settings."
BTW this does set the DWEN fuse, and "bricks" the part ("Disable debugWire and Close" is greyed out since debug session never got started, and can't program part because DWEN is set).
But I have learned the atprogram method of clearing DWEN (thanks to this forum).
I have verified 16MHz clock (programmed timer to flash light once per sec from 16MHz clock).
I have verified all fuses are set to the correct values per "AT08401 Getting started with ATmega328pb"
I noticed that there is a 3.3K pullup on the Reset line on this kit. Changed it to 20k (did not help either way).
I tried several different new USB cables.
Tried starting from fresh project:
File->New->Project->GCC C Static Library Project->ATmega328PB->and just kept the while (1) in main (void).
Does this work for anyone else?