I have moved your other thread into this here since double posting for basically the same issue is not appreciated - it just scatters the conversation over multiple threads and ties up resources without extra benefit.
I added the path of the openocd executable to my settings.json file by adding a “cortex-debug.openocdPath” and the ENOENT error does not occur anymore. Now however, openocd seems to timeout and shows this error instead:
I have looked at that topic but it does not really help in this case. Also I have downloaded openOCD from that link but there was no difference. I tried earlier versions of it too but nothing changed. Is it possible that my programmer shield is simply broken?
I seem to have fixed the problem with the openOCD server timing out by plugging the programmer shield into a different usb port. Now the debugger will run in workbench but I am getting a hard fault before the program even gets to setup().