# \[ISSUE\] Debugging BSom (B404) using VSCode

**URL:** <https://community.particle.io/t/issue-debugging-bsom-b404-using-vscode/64309>\
**Category:** Particle Workbench\
**Created:** [April 4, 2023, 8:39pm UTC](https://community.particle.io/t/issue-debugging-bsom-b404-using-vscode/64309 "2023-04-04T20:39:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![cjh](https://avatars.discourse-cdn.com/v4/letter/c/2acd7d/32.png) [@cjh](https://community.particle.io/u/cjh)\
**Post date:** [April 4, 2023, 8:39pm UTC](https://community.particle.io/t/issue-debugging-bsom-b404-using-vscode/64309/1 "2023-04-04T20:39:37Z")

</div>

Using VSCode on Windows 11. Had no problem doing local debug using Particle Debugger with Boron module.  
Switched to B404 module and can’t start debugging session. This window pops up:  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/particle/original/3X/f/d/fd468fad13b16ff73d5c681306f5a2b582fc4c71.png)  
and debug console reports:  
Reading symbols from C:/Users/chida/.particle/toolchains/gcc-arm/10.2.1/bin/arm-none-eabi-objdump.exe --syms -C -h -w c:/MyData/EQR/Particle/B40x/alertv2\_3/target/5.3.0/bsom/alertv2\_3.elf  
Reading symbols from c:/users/chida/.particle/toolchains/gcc-arm/10.2.1/bin/arm-none-eabi-nm.exe --defined-only -S -l -C -p c:/MyData/EQR/Particle/B40x/alertv2\_3/target/5.3.0/bsom/alertv2\_3.elf  
Launching GDB: “C:\Users\chida\.particle\toolchains\gcc-arm\10.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\chida\.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\chida\.particle\toolchains\openocd\0.11.0-particle.4\share\openocd\scripts” -f “c:/Users/chida/.vscode/extensions/marus25.cortex-debug-1.10.0/support/openocd-helpers.tcl” -f “interface\cmsis-dap.cfg” -f “target\nrf52-particle.cfg”  
Please check TERMINAL tab (gdb-server) for output from C:\Users\chida.particle\toolchains\openocd\0.11.0-particle.4\bin\openocd.exe  
Finished reading symbols from objdump: Time: 53 ms  
Finished reading symbols from nm: Time: 76 ms  
OpenOCD: GDB Server Quit Unexpectedly. See gdb-server output in TERMINAL tab for more details.

Terminal tab shows:  
Waiting for gdb server to start…[2023-04-04T19:17:21.688Z] SERVER CONSOLE DEBUG: onBackendConnect: gdb-server session connected. You can switch to “DEBUG CONSOLE” to see GDB interactions.  
“C:\Users\chida\.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\chida\.particle\toolchains\openocd\0.11.0-particle.4\share\openocd\scripts” -f “c:/Users/chida/.vscode/extensions/marus25.cortex-debug-1.10.0/support/openocd-helpers.tcl” -f “interface\cmsis-dap.cfg” -f “target\nrf52-particle.cfg”  
xPack OpenOCD x86\_64 Open On-Chip Debugger 0.11.0+dev (2022-03-25-17:32)  
Licensed under GNU GPL v2  
For bug reports, read  
[OpenOCD: Bug Reporting](http://openocd.org/doc/doxygen/bugs.html)  
CDRTOSConfigure  
Info : auto-selecting first available session transport “swd”. To override use ‘transport select ’.  
DEPRECATED! use ‘adapter speed’ not ‘adapter\_khz’  
Info : Listening on port 50001 for tcl connections  
Info : Listening on port 50002 for telnet connections  
Error: unable to find a matching CMSIS-DAP device  
[2023-04-04T19:17:21.815Z] SERVER CONSOLE DEBUG: onBackendConnect: gdb-server session closed  
GDB server session ended. This terminal will be reused, waiting for next session to start…

Is there any tutorial on how to debug a B40x module? The only one I’ve found is for a Boron, and that was very old…
