<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Setup launch config for JLink remote debug in VS Code</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/92862/setup-launch-config-for-jlink-remote-debug-in-vs-code</link><description>I have a problem to configure JLink remote client in VS Code IDE to remote debug nrf9160 dk. There is no examples of exactly remote config on Segger and VS Code docs, so it&amp;#39;s not clear how to setup it. 
 There is launch.json file in VS Code, that contains</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sat, 22 Oct 2022 12:59:46 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/92862/setup-launch-config-for-jlink-remote-debug-in-vs-code" /><item><title>RE: Setup launch config for JLink remote debug in VS Code</title><link>https://devzone.nordicsemi.com/thread/391979?ContentTypeID=1</link><pubDate>Sat, 22 Oct 2022 12:59:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:75a0c3c0-a171-4d2e-b5ea-3b2851446263</guid><dc:creator>Tox!c</dc:creator><description>&lt;p&gt;Hi Michael,&lt;/p&gt;
&lt;p&gt;The configuration below runs fine for me:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="json"&gt;{
    &amp;quot;name&amp;quot;: &amp;quot;(remote cortex-debug) Launch&amp;quot;,
    &amp;quot;type&amp;quot;: &amp;quot;cortex-debug&amp;quot;,
    &amp;quot;request&amp;quot;: &amp;quot;launch&amp;quot;,
    &amp;quot;executable&amp;quot;: &amp;quot;${command:cmake.buildDirectory}/zephyr/zephyr.elf&amp;quot;,
    &amp;quot;cwd&amp;quot;: &amp;quot;${workspaceFolder}&amp;quot;,
    &amp;quot;servertype&amp;quot;: &amp;quot;external&amp;quot;,
    &amp;quot;interface&amp;quot;: &amp;quot;swd&amp;quot;,
    &amp;quot;gdbPath&amp;quot;: &amp;quot;/usr/bin/gdb-multiarch&amp;quot;,
    &amp;quot;gdbTarget&amp;quot;: &amp;quot;${env:TARGET_GDB_IP}:2331&amp;quot;,
    &amp;quot;armToolchainPath&amp;quot;: &amp;quot;/opt/gnuarmemb/bin&amp;quot;,
    &amp;quot;rtos&amp;quot;: &amp;quot;GDBServer/RTOSPlugin_Zephyr&amp;quot;
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;In this example, I am using the environment variable &lt;em&gt;TARGET_GDB_IP&lt;/em&gt; to define the IP address of the server. You can of course also set the address directly in the field &amp;quot;&lt;strong&gt;gdb_target&lt;/strong&gt;&amp;quot;.&lt;/p&gt;
&lt;p&gt;As you are on Windows, you will also have to adapt (or remove) &amp;quot;&lt;strong&gt;gdbPath&lt;/strong&gt;&amp;quot; and &amp;quot;&lt;strong&gt;armToolchainPath&lt;/strong&gt;&amp;quot; to your setup.&lt;/p&gt;
&lt;p&gt;Best regards&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>