Stuck in DFU mode attempting to debug Electron

thanks for giving it a try :+1:

if you haven’t already, spend some time familiarizing yourself with VSCode’s basic debugging UX and options: docs

in the meantime, let’s try a few things. when you click the debugging start button (green button at the top of the debugging sidebar), we’ll automatically try to flash your device with your current firmware (using the Particle: Flash application for Debug (local) task).

so your steps should be

  1. put device into DFU mode
  2. click debugging start
  3. device will be flashed
  4. “Debug Console” panel is focused, device is paused
  5. click the continue (f5) button in the debug controls (pause, step over, in, out, etc)

you can tune this workflow via the ./.vscode/launch.json file we’ve created for you. we pull in the cortex-debug extension to facilitate debugging so atm docs are here, repo here

there are a couple of places to look for errors:

  • in the terminal panel (local compilation task output goes here - so if there was a problem compiling or flashing, it’d be here)
  • in the Debug Console’s output
  • in the Output panel (to the left of Debug Console) when you select the “Adapter Output” in the drop-down menu to the right.

i suspect there’s something a bit more interesting over in the Adapter Output log - can you share that here?

lastly, it’s helpful to provide the non-sensitive portions of the report that is generated when you run the Particle: Audit Environment command - can you share that as well?

thanks :pray:

1 Like