Hello,

Hello,

Hi Rahul,
We at Nordic do not officially support VScode or debugging in VScode, you can try the feather community also, might have more luck there.
Another thing would be to ask the author of the VScode extension maybe.
Some questions I have tough. What debugger are you using? Do you have a j-link or a DK ?
https://imgur.com/undefined (link of error image)
Cant see any image. Could you provide a new picture or a description of error codes and log.
Regards,
Jonathan
Hi Jonathan,
I have already posted the query on the feather community. I was using nRF5340-PDK to debug the feather. (https://docs.jaredwolff.com/nrf9160-programming-and-debugging.html)
See the image of error below:

Regards,
Rahul Kidecha
Hi Rahul,
Try to set "cortex-debug.JLinkGDBServerPath" in your VS Code settings (File -> Preferences -> Settings, use search window in the top of the settings window)
Regards,
Jonathan
Hi Jonathon,
I never used visual code to debug any microcontroller. I do not understand where exactly you want to add path.OR else you can let me know how to debug the feather using external board with other software.
Can you be more specific ?
I am sharing the location which you mentioned and made same changes as per my understanding but still giving me same error.



Question:
setting in launch.jason are correct ?
Hi,
Here is a link to a similar case using GDB, look at the jason file provided there as a guide
Link: https://devzone.nordicsemi.com/f/nordic-q-a/66825/jlinkgdbserver-could-not-connect-to-target
Here is a link to the segger wiki: https://wiki.segger.com/J-Link_Visual_Studio_Code
and maybe take a look at this https://github.com/Marus/cortex-debug/wiki, and see the ..examples you may find useful.
I have not tried this personally for the time being, but i will try to figure out the problem and test it myself some time.
Regards,
Jonathan