# Breakpoints do not work

**URL:** <https://forum.sierrawireless.com/t/breakpoints-do-not-work/5297>\
**Category:** Development tools\
**Created:** [October 20, 2011, 6:59am UTC](https://forum.sierrawireless.com/t/breakpoints-do-not-work/5297 "2011-10-20T06:59:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![quimisur](https://avatars.discourse-cdn.com/v4/letter/q/96bed5/32.png) [@quimisur](https://forum.sierrawireless.com/u/quimisur)\
**Post date:** [October 20, 2011, 6:59am UTC](https://forum.sierrawireless.com/t/breakpoints-do-not-work/5297/1 "2011-10-20T06:59:21Z")

</div>

Hi!

I’m testing a library using a testing application which calls library functions one by one. I set a main task as an initialization function the library has, and a task calling the test function in order to be able to set breakpoints and use them. I have a couple of questions about that:

1. Is it dangerous that main task dies after initialization of library?

2. Breakpoints doesn’t work at all. Even if I set them in the middle of the test function to avoid synchronization problem of the debugger.

I’m using DS 2.1.0, OpenAT 2.36, OpenAT OS 6.36, and Firmware 7.46. My library depends on WIP.

May anyone helop with these questions?

Thanks!

---

<div class="post-metadata">

**Author:** ![daav](https://sea1.discourse-cdn.com/flex025/user_avatar/forum.sierrawireless.com/daav/32/2767_2.png) [@daav](https://forum.sierrawireless.com/u/daav)\
**Post date:** [October 20, 2011, 7:23am UTC](https://forum.sierrawireless.com/t/breakpoints-do-not-work/5297/2 "2011-10-20T07:23:39Z")

</div>

> [@quimisur](#):
>
> 1. Is it dangerous that main task dies after initialization of library?
> 2. Breakpoints doesn’t work at all. Even if I set them in the middle of the test function to avoid synchronization problem of the debugger.

1. no; ADL is actually completely event-driven, and task entry points can be considered as “initialization handlers”, which can return.

2. linked to [Cannot debug in Embedded GDB mode - #24 by daav](https://forum.sierrawireless.com/t/cannot-debug-in-embedded-gdb-mode/5088/24) isn’t it?
