# Having trouble with particle debug

**URL:** <https://community.particle.io/t/having-trouble-with-particle-debug/66954>\
**Category:** Developer Tools\
**Tags:** electron\
**Created:** [May 31, 2024, 8:48pm UTC](https://community.particle.io/t/having-trouble-with-particle-debug/66954 "2024-05-31T20:48:41Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Punkster81](https://avatars.discourse-cdn.com/v4/letter/p/50afbb/32.png) [@Punkster81](https://community.particle.io/u/Punkster81)\
**Post date:** [May 31, 2024, 8:48pm UTC](https://community.particle.io/t/having-trouble-with-particle-debug/66954/1 "2024-05-31T20:48:41Z")

</div>

Hi i was having trouble using the particle debugger in the VS ide, when running it tells me these errors

```auto
Launching GDB: "C:\\Users\\name\\.particle\\toolchains\\gcc-arm\\9.2.1\\bin\\arm-none-eabi-gdb.exe" -q --interpreter=mi2
    IMPORTANT: Set "showDevDebugOutput": "raw" in "launch.json" to see verbose GDB transactions here. Very helpful to debug issues or report problems
Launching gdb-server: "C:\\Users\\name\\.particle\\toolchains\\openocd\\0.11.0-particle.4\\bin\\openocd.exe" -c "gdb_port 50000" -c "tcl_port 50001" -c "telnet_port 50002" -s "C:\\Users\\name\\.particle\\toolchains\\openocd\\0.11.0-particle.4\\share\\openocd\\scripts" -f "c:/Users/name/.vscode/extensions/marus25.cortex-debug-1.12.1/support/openocd-helpers.tcl" -f "interface\\cmsis-dap.cfg" -f "target\\stm32f2x.cfg" -c "CDRTOSConfigure FreeRTOS"
    Please check TERMINAL tab (gdb-server) for output from C:\Users\name\.particle\toolchains\openocd\0.11.0-particle.4\bin\openocd.exe
Finished reading symbols from objdump: Time: 109 ms
C:\Users\name\.particle\toolchains\gcc-arm\9.2.1\bin\arm-none-eabi-gdb.exe: warning: Couldn't determine a path for the index cache directory.
ERROR: GDB major version should be >= 9, yours is 8
GDB session ended. exit-code: 0
GDB could not start as expected. Bad installation or version mismatch. See if you can start gdb from a shell prompt and check its version (Must be >= 9)

```

Im pretty sure it has something to do with my version of gdb off the last couple of lines of errors, but everywhere i look online leads me to a dead end, Im doing this on windows if that is at all relevant it seemed like alot of the solution online were suggesting using linux

Thanks for any help

---

<div class="post-metadata">

**Author:** ![rickkas7](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/rickkas7/32/8681_2.png) [@rickkas7](https://community.particle.io/u/rickkas7)\
**Post date:** [June 1, 2024, 10:31am UTC](https://community.particle.io/t/having-trouble-with-particle-debug/66954/2 "2024-06-01T10:31:29Z")

</div>

The most likely reason is that there is a copy of GDB 8 in your path from a different build tool or possibly an older version. The easiest solution is to search for "arm-none-eabi-gdb.exe". The copies in .particle/toolschains/gcc-arm are fine, there could be 9.2.1 and a 10.something version in that directory, but pay attention to anything that's in a different directory.

Some possibilities include bin directories for Cygwin, mingw, wsl, or a toolchain for a non-Particle board. First try renaming suspect binaries, such as by renaming the file by adding an 8 at the end of the filename. You could also try reordering your environment include paths.

---

<div class="post-metadata">

**Author:** ![Punkster81](https://avatars.discourse-cdn.com/v4/letter/p/50afbb/32.png) [@Punkster81](https://community.particle.io/u/Punkster81)\
**Post date:** [June 3, 2024, 1:41pm UTC](https://community.particle.io/t/having-trouble-with-particle-debug/66954/3 "2024-06-03T13:41:07Z")

</div>

I think i have the correct path at the top of my env

 ![image](https://us1.discourse-cdn.com/flex026/uploads/particle/original/3X/5/d/5dee67a7c30fd9e7bb8aa42a69f04f3c46f675c7.png)  
but i'm still getting the same error

 ![image](https://us1.discourse-cdn.com/flex026/uploads/particle/original/3X/1/9/1981cc7e83283cf3460ae1a0536962444272c06a.png)

---

<div class="post-metadata">

**Author:** ![rickkas7](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/rickkas7/32/8681_2.png) [@rickkas7](https://community.particle.io/u/rickkas7)\
**Post date:** [June 3, 2024, 2:17pm UTC](https://community.particle.io/t/having-trouble-with-particle-debug/66954/4 "2024-06-03T14:17:41Z")

</div>

That's weird. If you use **Particle: Launch CLI** to open a CLI window, what happens when you do:

```auto
arm-none-eabi-gdb --version

```

---

<div class="post-metadata">

**Author:** ![Punkster81](https://avatars.discourse-cdn.com/v4/letter/p/50afbb/32.png) [@Punkster81](https://community.particle.io/u/Punkster81)\
**Post date:** [June 3, 2024, 2:19pm UTC](https://community.particle.io/t/having-trouble-with-particle-debug/66954/5 "2024-06-03T14:19:36Z")

</div>

![image](https://us1.discourse-cdn.com/flex026/uploads/particle/original/3X/a/b/aba589fc8258442df4d4c6ba389b4802930e2cd2.png)

---

<div class="post-metadata">

**Author:** ![Punkster81](https://avatars.discourse-cdn.com/v4/letter/p/50afbb/32.png) [@Punkster81](https://community.particle.io/u/Punkster81)\
**Post date:** [June 3, 2024, 2:24pm UTC](https://community.particle.io/t/having-trouble-with-particle-debug/66954/6 "2024-06-03T14:24:36Z")

</div>

my path mightve not saved after i took the photo it is currently this,  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/particle/original/3X/5/6/5667bdf9719f4bceb76bbc0fcafb7c516b86dbd9.png)

this is the reponse i got with my path being this

 ![image](https://us1.discourse-cdn.com/flex026/uploads/particle/original/3X/0/6/0639074abc520b961d52f1b20adfe0dafa151888.png)

---

<div class="post-metadata">

**Author:** ![Punkster81](https://avatars.discourse-cdn.com/v4/letter/p/50afbb/32.png) [@Punkster81](https://community.particle.io/u/Punkster81)\
**Post date:** [June 3, 2024, 2:53pm UTC](https://community.particle.io/t/having-trouble-with-particle-debug/66954/7 "2024-06-03T14:53:16Z")

</div>

ok it seems that the 9.2.1 doesnt have the arm-none-eabi-gdb file in it  
its in 10.2.1  
but when i try to debug it uses the 9.2.1 route

 ![image](https://us1.discourse-cdn.com/flex026/uploads/particle/original/3X/f/6/f60b8d977f60d0f168a295c2b26a87ab06117e80.png)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/particle/original/3X/3/2/3291e3c9351789fe8620ae5bcec8d3fec67ff221.png) [@system](https://community.particle.io/u/system)\
**Post date:** [December 3, 2024, 2:54am UTC](https://community.particle.io/t/having-trouble-with-particle-debug/66954/8 "2024-12-03T02:54:08Z")

</div>

Closed on December 3, 2024, 2:54am UTC

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.
