<?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>CONFIG_DEBUG_OPTIMIZATIONS does not allow setting breakpoints anywhere</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/113624/config_debug_optimizations-does-not-allow-setting-breakpoints-anywhere</link><description>When debugging the exercise 1 application from `Lesson 2 – Reading buttons and controlling LEDs` of `nRF Connect SDK Fundamentals`, I cannot set a breakpoint wherever I want. 
 Somehow it is either not picked up or it gets picked the line below. 
 However</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 19 Sep 2024 07:50:21 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/113624/config_debug_optimizations-does-not-allow-setting-breakpoints-anywhere" /><item><title>RE: CONFIG_DEBUG_OPTIMIZATIONS does not allow setting breakpoints anywhere</title><link>https://devzone.nordicsemi.com/thread/503049?ContentTypeID=1</link><pubDate>Thu, 19 Sep 2024 07:50:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eb7ade7a-46b3-4d3a-9559-588baba466ea</guid><dc:creator>Priyanka</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Apologies for the delay. I was able to replicate it here. I am discussing this with experts in order to find a solution and will keep you updated.&lt;/p&gt;
&lt;p&gt;-Priyanka&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: CONFIG_DEBUG_OPTIMIZATIONS does not allow setting breakpoints anywhere</title><link>https://devzone.nordicsemi.com/thread/501105?ContentTypeID=1</link><pubDate>Wed, 04 Sep 2024 08:53:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:77f9960e-4d74-46c6-b5cf-d71c04bcb9ae</guid><dc:creator>Juju</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/video.zip"&gt;devzone.nordicsemi.com/.../video.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Please try this one, it should work better if you are using Windows.&lt;/p&gt;
&lt;p&gt;To let you know, the other video could be downloaded and watched via VLC application on any OS.&lt;/p&gt;
&lt;p&gt;I am using SDK 2.6.1 with VS Code on Mac.&lt;/p&gt;
&lt;p&gt;The board I am using is:&lt;/p&gt;
&lt;p&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/pastedimage1725439968795v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;PCA10090&lt;br /&gt;1.1.3&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: CONFIG_DEBUG_OPTIMIZATIONS does not allow setting breakpoints anywhere</title><link>https://devzone.nordicsemi.com/thread/501088?ContentTypeID=1</link><pubDate>Wed, 04 Sep 2024 07:53:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2417a642-8892-4d2d-b829-2d62fbd8ede5</guid><dc:creator>Priyanka</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I a unable to view the video that you attached. Would it be possible to zip the view and attach the file?&lt;/p&gt;
&lt;p&gt;I nevertheless tried to reproduce the issue on my DK here and was not successful. It would be great if you could attach the video once again so that I can see what&amp;#39;s happening at your end.&lt;/p&gt;
&lt;p&gt;Could you also tell me which SDK version you are working with? And what is your DK revision?&lt;/p&gt;
&lt;p&gt;-Priyanka&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: CONFIG_DEBUG_OPTIMIZATIONS does not allow setting breakpoints anywhere</title><link>https://devzone.nordicsemi.com/thread/500525?ContentTypeID=1</link><pubDate>Fri, 30 Aug 2024 07:42:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9743f820-472a-4c9f-afc7-de2d63f555a9</guid><dc:creator>Juju</dc:creator><description>&lt;p&gt;I&amp;#39;m sorry but something is wrong with debugging using the dev kit nRF9160 DK.&lt;/p&gt;
&lt;p&gt;This should be straightforward.&lt;/p&gt;
&lt;p&gt;Below a video, please try to reproduce the issue, I&amp;#39;m not doing anything fancy, just using &amp;quot;fund_less2_exer1_solution&amp;quot; sample code and trying to put a breakpoint in the while loop.&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_NO_OPTIMIZATIONS&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_DEBUG_OPTIMIZATIONS&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;Please check the following video and let me know:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/fund_5F00_less2_5F00_exer1_5F00_solution.mov"&gt;devzone.nordicsemi.com/.../fund_5F00_less2_5F00_exer1_5F00_solution.mov&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: CONFIG_DEBUG_OPTIMIZATIONS does not allow setting breakpoints anywhere</title><link>https://devzone.nordicsemi.com/thread/500009?ContentTypeID=1</link><pubDate>Tue, 27 Aug 2024 13:30:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f221c15d-f502-4e1b-ad0f-145457f0b357</guid><dc:creator>Priyanka</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The breakpoint issue you are facing is because of the optimizations that take place. This changes the machine code so that it does not exactly map the C code, so it makes debugging harder. So the only way is to disable all optimizations when debugging. Please take a look at&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/87579/debugging-from-vscode-with-nrf-connect-extension?ReplyFilter=Answers&amp;amp;ReplySortBy=Answers&amp;amp;ReplySortOrder=Descending"&gt; this ticket&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Priyanka&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: CONFIG_DEBUG_OPTIMIZATIONS does not allow setting breakpoints anywhere</title><link>https://devzone.nordicsemi.com/thread/499179?ContentTypeID=1</link><pubDate>Wed, 21 Aug 2024 08:56:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8c2c5346-1099-4ce8-9fb3-86aa185fe1a9</guid><dc:creator>Juju</dc:creator><description>&lt;p&gt;Hello&lt;/p&gt;
&lt;p&gt;Still not able to put breakpoints where I want and also I get the notification &amp;quot;The selected build configuration does not have debugging options enabled&amp;quot; even though I enable either &amp;nbsp;&lt;span&gt;CONFIG_NO_OPTIMIZATIONS or&amp;nbsp;CONFIG_DEBUG_OPTIMIZATIONS in the prj.conf file.&lt;/span&gt;&lt;/p&gt;
&lt;p&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/pastedimage1724230338423v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: CONFIG_DEBUG_OPTIMIZATIONS does not allow setting breakpoints anywhere</title><link>https://devzone.nordicsemi.com/thread/499165?ContentTypeID=1</link><pubDate>Wed, 21 Aug 2024 08:06:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4f0d8d68-30ea-4b95-a818-6ed8636829eb</guid><dc:creator>Priyanka</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Could you tr building with project default ? Does this help?&lt;/p&gt;
&lt;p&gt;-Priyanka&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: CONFIG_DEBUG_OPTIMIZATIONS does not allow setting breakpoints anywhere</title><link>https://devzone.nordicsemi.com/thread/498768?ContentTypeID=1</link><pubDate>Mon, 19 Aug 2024 08:42:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:25881489-c403-451d-aea1-0b46f68b677a</guid><dc:creator>Juju</dc:creator><description>&lt;p&gt;No worries &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;So here I select any since&amp;nbsp;&lt;span&gt;CONFIG_NO_OPTIMIZATIONS is not possible in the drop down list:&lt;/span&gt;&lt;/p&gt;
&lt;p&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/pastedimage1724056594356v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Then in prj.conf I do force &lt;span&gt;CONFIG_NO_OPTIMIZATIONS=y and &lt;/span&gt;CONFIG_DEBUG_OPTIMIZATIONS=n:&lt;/p&gt;
&lt;p&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/pastedimage1724056686000v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Then in &amp;quot;Output files&amp;quot; folder I have .config file with:&lt;/p&gt;
&lt;p&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/pastedimage1724056751771v3.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Somehow I still can&amp;#39;t add a breakpoint anywhere I want.&lt;/p&gt;
&lt;p&gt;Is .config file the final state or is it overridden by prj.conf?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: CONFIG_DEBUG_OPTIMIZATIONS does not allow setting breakpoints anywhere</title><link>https://devzone.nordicsemi.com/thread/497962?ContentTypeID=1</link><pubDate>Tue, 13 Aug 2024 08:22:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:be1d366f-0ca5-4238-b118-2dbe4668b1b5</guid><dc:creator>Priyanka</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Apologies for the delayed response.&lt;/p&gt;
&lt;p&gt;It looks like selecting both&amp;nbsp;&lt;/p&gt;
&lt;p&gt;CONFIG_DEBUG_OPTIMIZATIONS and&amp;nbsp;&lt;/p&gt;
&lt;p&gt;CONFIG_NO_OPTIMIZATIONS&lt;/p&gt;
&lt;p&gt;can cause a conflict. So generally you select any one depending on your needs. So please try choosing CONFIG_NO_OPTIMIZATIONS if you&amp;nbsp;want to ensure absolutely no optimization, which makes debugging straightforward and choose&amp;nbsp;&lt;span&gt;CONFIG_DEBUG_OPTIMIZATIONS&amp;nbsp; if you still want some optimizations but in a way that doesn&amp;#39;t interfere too much with debugging.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Please try this and let me know how it goes.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Priyanka&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: CONFIG_DEBUG_OPTIMIZATIONS does not allow setting breakpoints anywhere</title><link>https://devzone.nordicsemi.com/thread/496976?ContentTypeID=1</link><pubDate>Mon, 05 Aug 2024 12:47:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:636894d0-a0d4-48d6-ac9d-e332cde9d593</guid><dc:creator>Juju</dc:creator><description>&lt;p&gt;I&amp;#39;ve modified the prj.conf file as follows:&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:93px;max-width:350px;" alt=" " height="93" src="https://devzone.nordicsemi.com/resized-image/__size/700x186/__key/communityserver-discussions-components-files/4/pastedimage1722861909785v1.png" width="350" /&gt;&lt;/p&gt;
&lt;p&gt;However it seems that&amp;nbsp;&lt;span&gt;CONFIG_NO_OPTIMIZATIONS is overridden to `n` instead of &amp;#39;y&amp;#39;.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;By the way, I&amp;#39;m using a Mac but it shouldn&amp;#39;t make a difference.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: CONFIG_DEBUG_OPTIMIZATIONS does not allow setting breakpoints anywhere</title><link>https://devzone.nordicsemi.com/thread/496860?ContentTypeID=1</link><pubDate>Fri, 02 Aug 2024 17:41:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c79a1df8-3ccb-4873-b524-f8af90908111</guid><dc:creator>Priyanka</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Did you enable the following on your prj.conf ?&lt;/p&gt;
&lt;p&gt;CONFIG_DEBUG=y&lt;/p&gt;
&lt;p&gt;CONFIG_DEBUG_OPTIMIZATIONS=y&lt;/p&gt;
&lt;p&gt;CONFIG_NO_OPTIMIZATIONS=y&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Priyanka&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>