# Using debugger with Workbench

**URL:** <https://community.particle.io/t/using-debugger-with-workbench/46707>\
**Category:** Particle Workbench\
**Tags:** argon\
**Created:** [January 2, 2019, 8:43pm UTC](https://community.particle.io/t/using-debugger-with-workbench/46707 "2019-01-02T20:43:35Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![iitgrad](https://avatars.discourse-cdn.com/v4/letter/i/9de053/32.png) [@iitgrad](https://community.particle.io/u/iitgrad)\
**Post date:** [January 2, 2019, 8:43pm UTC](https://community.particle.io/t/using-debugger-with-workbench/46707/1 "2019-01-02T20:43:35Z")

</div>

I realize that debugging is not available yet however can Workbench work with the debugger just enough to download new firmware? If not, is their an openocd command that can be entered that will put the argon in DFU mode? I’m trying to avoid having to man handle the device each time I need to load new firmware. My short workaround is the have a function registered to the particle cloud that calls System.dfu() which is cool, but since I have the hardware debugger was wondering if there is a more efficient method.

---

<div class="post-metadata">

**Author:** ![iitgrad](https://avatars.discourse-cdn.com/v4/letter/i/9de053/32.png) [@iitgrad](https://community.particle.io/u/iitgrad)\
**Post date:** [January 2, 2019, 9:02pm UTC](https://community.particle.io/t/using-debugger-with-workbench/46707/2 "2019-01-02T21:02:53Z")

</div>

Just found this post which is pretty good. Just entering:

```auto
stty -f /dev/cu.usbmodem141110 14400

```

with the correct usbmodem number for your device on your mac pops it into dfu mode. Would be great if Workbench integrated this little trick when going to download the firmware. Currently, it errors saying No DFU capable USB device available

---

<div class="post-metadata">

**Author:** ![ninjatill](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/ninjatill/32/17370_2.png) [@ninjatill](https://community.particle.io/u/ninjatill)\
**Post date:** [January 2, 2019, 9:05pm UTC](https://community.particle.io/t/using-debugger-with-workbench/46707/3 "2019-01-02T21:05:45Z")

</div>

You weren't the only one asking for that. Great minds think alike I guess. 😉

> [@Workbench feature suggestion: auto-DFU when flashing locally](https://community.particle.io/t/workbench-feature-suggestion-auto-dfu-when-flashing-locally/46484):
>
> It will be great if we have an option to automatically bring a device into DFU mode without having to perform the hardware button-pressing combination. Opening & closing a serial terminal to the device at 14400 baud will put it into DFU mode. On the mac, I’m using stty to trigger DFU right before flashing: stty -f /dev/cu.usbmodem141110 14400 Hope a cross-platform implementation of this can be Included as part of the local flashing build task in the next alpha release in 2019… slight_smile

---

<div class="post-metadata">

**Author:** ![Erich](https://avatars.discourse-cdn.com/v4/letter/e/ea5d25/32.png) [@Erich](https://community.particle.io/u/Erich)\
**Post date:** [January 3, 2019, 11:53am UTC](https://community.particle.io/t/using-debugger-with-workbench/46707/4 "2019-01-03T11:53:18Z")

</div>

@iitgrad How to debug with VSCode was recently described in another post:

[Debug Guide for VSCode](https://community.particle.io/t/how-to-use-the-debugger-with-xenon-boron/46036/10)

---

<div class="post-metadata">

**Author:** ![iitgrad](https://avatars.discourse-cdn.com/v4/letter/i/9de053/32.png) [@iitgrad](https://community.particle.io/u/iitgrad)\
**Post date:** [January 3, 2019, 12:46pm UTC](https://community.particle.io/t/using-debugger-with-workbench/46707/5 "2019-01-03T12:46:54Z")

</div>

Woohoo, thank @Erich!
