<?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>Why the location of breakpoint moved and whether it will effect the debug process?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/112852/why-the-location-of-breakpoint-moved-and-whether-it-will-effect-the-debug-process</link><description>I&amp;#39;m debugging the project that nrf_dm to learn how it work. 
 The build configuration as the picture: 
 
 I add my breakpoint as follow: 
 
 However,when I start to debug,the location of breakpoint moved. 
 
 So,if I need to accept it? And it will work</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 11 Jul 2024 08:43:55 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/112852/why-the-location-of-breakpoint-moved-and-whether-it-will-effect-the-debug-process" /><item><title>RE: Why the location of breakpoint moved and whether it will effect the debug process?</title><link>https://devzone.nordicsemi.com/thread/493330?ContentTypeID=1</link><pubDate>Thu, 11 Jul 2024 08:43:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:90373624-8fae-47ac-abb7-275364d84fa4</guid><dc:creator>Priyanka</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Yo are working on the nRF Connect SDK, right? Which version of the SDK are you working on?&lt;/p&gt;
&lt;p&gt;Please try the &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.7.0/kconfig/index.html#CONFIG_NO_OPTIMIZATIONS"&gt;CONFIG_NO_OPTIMIZATIONS&lt;/a&gt; in your prj.conf.&lt;/p&gt;
&lt;p&gt;-Priyanka&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Why the location of breakpoint moved and whether it will effect the debug process?</title><link>https://devzone.nordicsemi.com/thread/493052?ContentTypeID=1</link><pubDate>Wed, 10 Jul 2024 00:50:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f58c9f69-214d-47dd-a530-a197cb137d9d</guid><dc:creator>Chaoyue Ying</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;You suggest that try disabling the optimizations.I check the options,there only for size,for speed,for debugging and default.&lt;/p&gt;
&lt;p&gt;Whether&amp;nbsp;I need to select the default one?&lt;/p&gt;
&lt;p&gt;If so,I add CONFIG_DEBUG and CONFIG_DEBUG_THREAD_INFO to prj.config then rebuild and debug again.&lt;/p&gt;
&lt;p&gt;I still can not put my breakpoint in line 234.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Why the location of breakpoint moved and whether it will effect the debug process?</title><link>https://devzone.nordicsemi.com/thread/492961?ContentTypeID=1</link><pubDate>Tue, 09 Jul 2024 12:26:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:faabf4e8-f602-4500-b09e-f658f5b2a5d0</guid><dc:creator>Priyanka</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;This can happen sometimes when you enable optimizations, because then when you compile your code, the compiler rearranges instructions etc. in order to optimize ad improve performance.&amp;nbsp;Please try disabling the optimizations and then try his again.&lt;/p&gt;
&lt;p&gt;Mostly the compiler will place he breakpoint at a position logically similar to your request, so if you need to enable the optimizations, then you could verify&amp;nbsp;whether this is correct too.&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>