Marus / cortex-debug

Visual Studio Code extension for enhancing debug capabilities for Cortex-M Microcontrollers
MIT License
1.01k stars 240 forks source link

Cant' use new pyOCD server because of default arguments #269

Closed parfnick closed 4 years ago

parfnick commented 4 years ago

pyocd-gdbserver.exe is deprecated(but can be used) now. To run new(pyocd.exe) tool, we must use first argument - "gbd"(for example "pyocd.exe gdb ..."). Plugin(cortex-debug) uses default(see. debugadapter.js) arguments("--persist" etc) when launchs tool. So, if I want to use new version in Visual studio Code, and try to set argument "gdb" in settings, plugin places it after default arguments, and server not running. PS: Any programmer can fix problem, if set first default argument "gdb" in "debugadapter.js" file, but it is the the "hacker method":)

haneefdm commented 4 years ago

We know about this. pyocd gdbserver is the same as the pyocd-gdbserver. I contributed to pyocd as well, so I know that they are the same.

Changing the exe name will break things if you set the executable path in your VSCode settings. Yes --persist is not needed. I was waiting for pyocd-gdbserver to be truly removed by the pyocd gang. We will change in a future release perhaps even before they remove it.