<?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>watching variables during run time</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/107388/watching-variables-during-run-time</link><description>Hi 
 in NRF connect SDK is it possible to watch variable during run time? 
 In STM32 CUBE IDE this is called live view of variables. 
 Thx</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 08 May 2025 20:41:43 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/107388/watching-variables-during-run-time" /><item><title>RE: watching variables during run time</title><link>https://devzone.nordicsemi.com/thread/534531?ContentTypeID=1</link><pubDate>Thu, 08 May 2025 20:41:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d06b0f48-f16c-4674-8dde-1e2a656d9107</guid><dc:creator>jay</dc:creator><description>[quote userid="106736" url="~/f/nordic-q-a/107388/watching-variables-during-run-time/464301"]Is there any specific use-case you need this feature for?&lt;br /&gt;Maybe there is another way to solve that.[/quote]
&lt;p&gt;is it possible to&amp;nbsp; watch value of variable live without holding program while debugging ?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: watching variables during run time</title><link>https://devzone.nordicsemi.com/thread/464341?ContentTypeID=1</link><pubDate>Tue, 16 Jan 2024 10:02:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0a7eed78-6764-4ad5-85b2-e25f7b5cf9d6</guid><dc:creator>klaus1234</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Well, this is a basic debugging feature, which is missing. I will you use logging instead.&lt;/p&gt;
&lt;p&gt;Just wanted to make sure that my setup is fine.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: watching variables during run time</title><link>https://devzone.nordicsemi.com/thread/464301?ContentTypeID=1</link><pubDate>Tue, 16 Jan 2024 07:55:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fe3a8337-8f02-4c27-9f17-1ce4f9a28e12</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>[quote user="klaus1234"]So in general NRF connect SDK does not support live view of variables?[/quote]
&lt;p&gt;That is correct.&lt;/p&gt;
&lt;p&gt;Is there any specific use-case you need this feature for?&lt;br /&gt;Maybe there is another way to solve that.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: watching variables during run time</title><link>https://devzone.nordicsemi.com/thread/464234?ContentTypeID=1</link><pubDate>Mon, 15 Jan 2024 15:07:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2fde2d01-2720-4601-b534-4debdda66000</guid><dc:creator>klaus1234</dc:creator><description>&lt;p&gt;So in general NRF connect SDK does not support live view of variables? This is when processor is running , but the debugger keeps updating the value of the variables in watch window.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: watching variables during run time</title><link>https://devzone.nordicsemi.com/thread/464221?ContentTypeID=1</link><pubDate>Mon, 15 Jan 2024 14:28:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:81efab80-b871-4ad2-8807-9aecb24c836c</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>[quote user="klaus1234"]As far as I see in the video, the value of the counter is only shown when the processor is halted, not when the processor is running. Correct???[/quote]
&lt;p&gt;Correct, you halt to see what the variable is.&lt;/p&gt;
[quote user="klaus1234"]IN the example in the video watch variable rx_data is a local variable, so I assume thats why it says &amp;quot;invalid&amp;quot; .[/quote]
&lt;p&gt;You must be in the scope of the variable to see the variable.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: watching variables during run time</title><link>https://devzone.nordicsemi.com/thread/464218?ContentTypeID=1</link><pubDate>Mon, 15 Jan 2024 14:25:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f2bd0534-4e81-4fa0-b6ad-8c05d55248a6</guid><dc:creator>klaus1234</dc:creator><description>&lt;p&gt;As far as I see in the video, the value of the counter is only shown when the processor is halted, not when the processor is running. Correct???&lt;/p&gt;
&lt;p&gt;When the processor is running the value of a global variable is shown as &amp;quot;not available&amp;quot;.&lt;/p&gt;
&lt;p&gt;IN the example in the video watch variable rx_data is a local variable, so I assume thats why it says &amp;quot;invalid&amp;quot; .&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: watching variables during run time</title><link>https://devzone.nordicsemi.com/thread/464216?ContentTypeID=1</link><pubDate>Mon, 15 Jan 2024 14:15:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4ae8b6ee-bae1-4327-824a-c6e5aa9c7156</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;This can be done using Debugging. See &lt;a href="https://www.youtube.com/watch?v=IDC2m91xMb0"&gt;https://www.youtube.com/watch?v=IDC2m91xMb0&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Sigurd Hellesvik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>