<?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>Run twister test in debug mode</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/122496/run-twister-test-in-debug-mode</link><description>Hello, 
 
 I higly need to run twister unit tests in debug mode with breakpoints, step by step, spies and other debug tools in vscode. I did not find a way to do so. 
 
 Is anybody has an idea to run twister tests in debug mode ? 
 
 Many thanks by advance</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 07 Jul 2025 13:49:16 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/122496/run-twister-test-in-debug-mode" /><item><title>RE: Run twister test in debug mode</title><link>https://devzone.nordicsemi.com/thread/541643?ContentTypeID=1</link><pubDate>Mon, 07 Jul 2025 13:49:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d54f5460-34ad-4d40-98f8-7abf62a3ad31</guid><dc:creator>vincent_itk</dc:creator><description>&lt;p&gt;Go it running in debug mode in vscode with such config&amp;nbsp;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="json"&gt;{
				&amp;quot;name&amp;quot;: &amp;quot;Debug test&amp;quot;,
				&amp;quot;type&amp;quot;: &amp;quot;cppdbg&amp;quot;,
				&amp;quot;request&amp;quot;: &amp;quot;launch&amp;quot;,
				&amp;quot;program&amp;quot;: &amp;quot;${workspaceFolder:axi-v7}/twister-out/native_sim_native/host/lib/temp/lib.temp/zephyr/zephyr.exe&amp;quot;,
				&amp;quot;cwd&amp;quot;: &amp;quot;${workspaceFolder:axi-v7}/tests/lib/temp&amp;quot;,
				&amp;quot;stopAtEntry&amp;quot;: true,
			},&lt;/pre&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;Adapt path to project is required.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;Hard to get it working, sometimes vscode is really pain in the ...&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Run twister test in debug mode</title><link>https://devzone.nordicsemi.com/thread/541613?ContentTypeID=1</link><pubDate>Mon, 07 Jul 2025 12:01:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:71dacc45-d817-4c22-be6a-caf4227e30d0</guid><dc:creator>vincent_itk</dc:creator><description>&lt;p&gt;So I was able to compile, but I would like to have the debugging session running in vscode (like debugging on a MCU) rather than a CLI.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Is there a way to do this ?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks by advance.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Run twister test in debug mode</title><link>https://devzone.nordicsemi.com/thread/541581?ContentTypeID=1</link><pubDate>Mon, 07 Jul 2025 09:03:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d4c80653-8554-40e7-bb5f-111249b83207</guid><dc:creator>vincent_itk</dc:creator><description>&lt;p&gt;Gonna try this, thanks for the tip&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Run twister test in debug mode</title><link>https://devzone.nordicsemi.com/thread/540500?ContentTypeID=1</link><pubDate>Wed, 25 Jun 2025 14:38:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:870d1e2f-cb40-489e-a4d7-ba73b66d3853</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;This might depend on the platform you use. For native_sim it is like a normal west application&amp;nbsp;&lt;br /&gt;&lt;span&gt;west build -b native_sim -p -- -DCONFIG_DEBUG_OPTIMIZATIONS=y&lt;/span&gt;&lt;br /&gt;west debug&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>