# JLink debug. Breakpoint in main

**URL:** <https://forum.amebaiot.com/t/jlink-debug-breakpoint-in-main/1851>\
**Category:** SDK\
**Tags:** rtl872xd\
**Created:** [May 10, 2023, 10:06pm UTC](https://forum.amebaiot.com/t/jlink-debug-breakpoint-in-main/1851 "2023-05-10T22:06:22Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![dakamaster](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.amebaiot.com/dakamaster/32/3588_2.png) [@dakamaster](https://forum.amebaiot.com/u/dakamaster)\
**Post date:** [May 17, 2023, 1:55am UTC](https://forum.amebaiot.com/t/jlink-debug-breakpoint-in-main/1851/6 "2023-05-17T01:55:13Z")

</div>

Hi @Tuxford,

Maybe you can take a look at this [arduino example](https://github.com/ambiot/ambd_arduino/blob/38014dc8c1c9c33d824159f77ceb33d22f5fe8c3/Arduino_package/hardware/libraries/Debugging/examples/ExampleDebug/ExampleDebug.ino#L40) with a software breakpoint code ` __asm__ (null);` added, to confirm whether it can stop at the line you would like to further debug?

For more information, you can refer to another guide [[Tutorial] Debugging RTL8722 with the new Arduino IDE 2.0](https://forum.amebaiot.com/t/tutorial-debugging-rtl8722-with-the-new-arduino-ide-2-0/656) in this forum.

Thank you.

---

_[View the full topic](https://forum.amebaiot.com/t/jlink-debug-breakpoint-in-main/1851)._
