<?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 can&amp;#39;t I set breakpoints elsewhere in this function?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/67522/why-can-t-i-set-breakpoints-elsewhere-in-this-function</link><description>I have build a project, and it has been running normally. Now, I want to test a font data, so I created a function. But strangely, although the compilation has been successful, I can&amp;#39;t set breakpoints in this function. As a result, I can&amp;#39;t perform step</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 23 Oct 2020 14:01:50 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/67522/why-can-t-i-set-breakpoints-elsewhere-in-this-function" /><item><title>RE: Why can't I set breakpoints elsewhere in this function?</title><link>https://devzone.nordicsemi.com/thread/276663?ContentTypeID=1</link><pubDate>Fri, 23 Oct 2020 14:01:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:64b11e8e-1a6f-4adc-a202-c418ed95616b</guid><dc:creator>tesc</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I would expect that code to be heavily optimized by the compiler, so that you end up with machine code that do not correspond directly to lines. Code may have been heavily modified, or removed completely. In that case you cannot put breakpoints at any particular line within that area.&lt;/p&gt;
&lt;p&gt;Try building a debug build, or otherwise disable optimization. Then all lines (with code on them) should be available for putting a breakpoint.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Terje&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>