SERVER CONSOLE DEBUG: GDBServerConsole: onBackendConnect: gdb-server program client error Error: read ECONNRESET

Hi!

I'm developing a project on visual studio with ncs sdk V1.8.0. For a while, I was able to debug my project with no problem. But out of the blue, I'm no longer able to debug my project. I get the following error:

[2022-08-23T15:57:09.597Z] SERVER CONSOLE DEBUG: GDBServerConsole: onBackendConnect: gdb-server program client error Error: read ECONNRESET

There is the complete log: 


What is the problem? 

Thank you!

  • Hi Emile,

    I have got the same error using the sample code for nrf9160 AWS IoT.

    The build function and flash function work flawlessly though, but just not debug.

    I hope to get support for solving this issue too.

  • Same thing here with an nRF9160 and NCS 2.0.2

    Debugging with Ozone seems to works fine, but debugging with VSCode doesn't.

  • Hi,

    We have been encountering this issue with some customers now. Could you attach the Support Information here?

    -Priyanka

  • Same here with NCS 1.7.0 on nRF52.

    Here's the support information (sensitive information is blanked with _____):

    I guess the problem might be induced by an extension which was recently updated...

  • As expected, it seems as an updated extension caused the Problem in my case: The issue could be solved by downgrading the extension "Cortex-Debug" from 1.6.0 (which was deployed yesterday) to the last version 1.4.4:

1 2 3