<?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>Not able to debug using VS code.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/103372/not-able-to-debug-using-vs-code</link><description>Hello, 
 I&amp;#39;m using nrf52832 as bluetooth mesh node and programming it through VS code. 
 Im able to build and upload the code but not able to debug. 
 After enabling the debug configuration and running it, im only able to discover it in nrf mesh app but</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 14 Sep 2023 13:01:03 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/103372/not-able-to-debug-using-vs-code" /><item><title>RE: Not able to debug using VS code.</title><link>https://devzone.nordicsemi.com/thread/446066?ContentTypeID=1</link><pubDate>Thu, 14 Sep 2023 13:01:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9f749da0-d0f3-42c7-9ccb-2d7173832ca4</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Thank you for&amp;nbsp;filling in some of the blanks.&lt;/p&gt;
[quote user="98918atul"]&amp;nbsp;which option we should select for debugging out of this four.[/quote]
&lt;p&gt;Based on the four alternatives you list, I would for instance suggest that you build with the one option that explicitly states &amp;quot;Optimize for debugging&amp;quot;&lt;/p&gt;
&lt;p&gt;You can also see in the sample documentation under building and running some more useful links for how to debug an application and/or sample&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/samples/bluetooth/mesh/light_ctrl/README.html#building-and-running"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/samples/bluetooth/mesh/light_ctrl/README.html#building-and-running&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Not able to debug using VS code.</title><link>https://devzone.nordicsemi.com/thread/446033?ContentTypeID=1</link><pubDate>Thu, 14 Sep 2023 10:42:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:17764661-d988-4320-a3c0-34cd63e2cd29</guid><dc:creator>98918atul</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;1)Yes, im using same sample code &amp;quot;light_ctrl&amp;quot;.&lt;/p&gt;
&lt;p&gt;2) I&amp;#39;m using Xiaomi Lite NE 5G phone and nrf mesh app version 3.3.0.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;i didn&amp;#39;t tried with removing build folder but other methods i have tried, still not able to debug it properly.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Not able to debug using VS code.</title><link>https://devzone.nordicsemi.com/thread/445772?ContentTypeID=1</link><pubDate>Wed, 13 Sep 2023 08:18:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:82c4881b-3795-4134-b822-7aaf0a04ae07</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Please answer the previous asked questions.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Not able to debug using VS code.</title><link>https://devzone.nordicsemi.com/thread/445592?ContentTypeID=1</link><pubDate>Tue, 12 Sep 2023 10:36:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:20189d63-e4ba-4499-9f91-cabf4818e9f0</guid><dc:creator>98918atul</dc:creator><description>&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/debugging-option.png" /&gt;&amp;nbsp;which option we should select for debugging out of this four.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Not able to debug using VS code.</title><link>https://devzone.nordicsemi.com/thread/445302?ContentTypeID=1</link><pubDate>Mon, 11 Sep 2023 07:30:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:232856ec-f518-484a-969d-6294edd93e1f</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;By &amp;quot;light_ctrl&amp;quot; sample, do you mean&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/samples/bluetooth/mesh/light_ctrl/README.html"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/samples/bluetooth/mesh/light_ctrl/README.html?&lt;/a&gt;&amp;nbsp;&lt;/li&gt;
&lt;li&gt;Which phone and phone OS are you using?&lt;/li&gt;
&lt;li&gt;Which version of the nRF Mesh app are you using?&lt;/li&gt;
&lt;li&gt;Do you see the same behaviour when using&amp;nbsp;&lt;/li&gt;
&lt;li&gt;Have you tried
&lt;ol&gt;
&lt;li&gt;Remove the build folder&lt;/li&gt;
&lt;li&gt;Build the firmware once more&lt;/li&gt;
&lt;li&gt;Open a terminal and enter&amp;nbsp;&lt;em&gt;nrfjprog -e&lt;/em&gt; to erase all on the chip. You can also do this in VS Code under connected devices&amp;nbsp;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1694417167199v1.png" alt=" " /&gt;&lt;/li&gt;
&lt;li&gt;Flash the new firmware with&amp;nbsp;&lt;em&gt;west flash --recover&amp;nbsp;&lt;/em&gt;or by pressing this button in VS Code&lt;br /&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1694417224128v4.png" alt=" " /&gt;&amp;nbsp;&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Do you still see the same after repeating step 3?&lt;/p&gt;
&lt;p&gt;Do you see the same with other mesh samples?&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Not able to debug using VS code.</title><link>https://devzone.nordicsemi.com/thread/445295?ContentTypeID=1</link><pubDate>Mon, 11 Sep 2023 07:05:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:95323583-6cb9-4f48-9c56-a13c3b4dddc1</guid><dc:creator>98918atul</dc:creator><description>&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/debugging.JPEG" /&gt;I have started debugging, but not able to discover even in nrf connect and same with nrf mesh.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Not able to debug using VS code.</title><link>https://devzone.nordicsemi.com/thread/445285?ContentTypeID=1</link><pubDate>Mon, 11 Sep 2023 06:08:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:28868517-48aa-481e-bb98-9469214eee3f</guid><dc:creator>98918atul</dc:creator><description>&lt;p&gt;Im using v2.3.0 NCS and light_ctrl example without any modification.&amp;nbsp; Initially i was able to discover the device through nrf mesh app and while provisioning it was showing &amp;quot;Initial Configuration failed&amp;quot; during debugging. But now I&amp;#39;m not able to discover even i have erased and the uploaded the firmware. Please give some suggestions on this.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Not able to debug using VS code.</title><link>https://devzone.nordicsemi.com/thread/444089?ContentTypeID=1</link><pubDate>Fri, 01 Sep 2023 12:12:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:981df902-b877-4e97-8f22-71c7c2d425ff</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve picked up your case and will be working on helping you. But I need some more information and clarification.&lt;/p&gt;
[quote user=""]I&amp;#39;m using nrf52832 as bluetooth mesh node and programming it through VS code.[/quote]
&lt;ul&gt;
&lt;li&gt;Which version of NCS are you using?&lt;/li&gt;
&lt;li&gt;Are you running a Nordic sample without modifications? If so, which?&lt;/li&gt;
&lt;/ul&gt;
[quote user=""]After enabling the debug configuration and running it, im only able to discover it in nrf mesh app but able to provision it.[/quote]
&lt;p&gt;I don&amp;#39;t quite understand this. You can both discover it&amp;nbsp;&lt;strong&gt;and&lt;/strong&gt; provision it if debug configuration is enabled? What happens if you disable it?&lt;/p&gt;
&lt;p&gt;Can you provide me with a step-by-step guide for how to recreate what you are observing?&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Andreas&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>