# Building Debug Builds Error. 'doc topic - Debugging with Eclipse'

**URL:** <https://community.particle.io/t/building-debug-builds-error-doc-topic-debugging-with-eclipse/31697>\
**Category:** Firmware\
**Created:** [April 16, 2017, 5:43am UTC](https://community.particle.io/t/building-debug-builds-error-doc-topic-debugging-with-eclipse/31697 "2017-04-16T05:43:01Z")\
**Posts on this page:** 4\
**Page:** 2

<div class="post-metadata">

**Author:** ![rickkas7](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/rickkas7/32/8681_2.png) [@rickkas7](https://community.particle.io/u/rickkas7)\
**Post date:** [May 23, 2017, 10:59am UTC](https://community.particle.io/t/building-debug-builds-error-doc-topic-debugging-with-eclipse/31697/21 "2017-05-23T10:59:36Z")

</div>

I was able to reproduce that error with 0.6.2 for Electron with the options:

```auto
MODULAR=n DEBUG_BUILD=y USE_SWD_JTAG=y

```

I would create a Github issue in the firmware repository for it. It worked properly with 0.5.3.

---

<div class="post-metadata">

**Author:** ![screaming-cockatoo](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/screaming-cockatoo/32/14486_2.png) [@screaming-cockatoo](https://community.particle.io/u/screaming-cockatoo)\
**Post date:** [May 23, 2017, 7:45pm UTC](https://community.particle.io/t/building-debug-builds-error-doc-topic-debugging-with-eclipse/31697/22 "2017-05-23T19:45:03Z")

</div>

@rickkas7 I have opened a github issue regarding this at: [https://github.com/spark/firmware/issues/1339](https://github.com/spark/firmware/issues/1339)

---

<div class="post-metadata">

**Author:** ![screaming-cockatoo](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/screaming-cockatoo/32/14486_2.png) [@screaming-cockatoo](https://community.particle.io/u/screaming-cockatoo)\
**Post date:** [May 23, 2017, 11:59pm UTC](https://community.particle.io/t/building-debug-builds-error-doc-topic-debugging-with-eclipse/31697/23 "2017-05-23T23:59:32Z")

</div>

**UPDATE:**  
I was able to build with MODULAR=n DEBUG\_BUILD=y and USE\_SWD\_JTAG=y against release 0.5.3, as advised by Rick. This allowed me to use SWD debugging using a SEGGER J-Link.

I will build against this for debugging purposes, and compile against latest when I am ready to install my device. Thanks y’all!

---

<div class="post-metadata">

**Author:** ![marshall](https://avatars.discourse-cdn.com/v4/letter/m/58956e/32.png) [@marshall](https://community.particle.io/u/marshall)\
**Post date:** [July 2, 2017, 2:14am UTC](https://community.particle.io/t/building-debug-builds-error-doc-topic-debugging-with-eclipse/31697/24 "2017-07-02T02:14:23Z")

</div>

Hi There

I note that this issue has been fixed? on github, but I have tried pulling the development, and the feature/photon/wiced-3.7.0-7 versions and neither of them compile. it seems that the tls stuff is now broken, I’m just doing a basic build, and nothing flash I was really wanting to debug my own application in eclipse using the 0.6.2 firmware on the electron.

I using the recommended 4.9… Version of GCC

Could someone guide me in the direction that I should head, in order to get it to compile.

Thanks  
Marshall

[Previous page](https://community.particle.io/t/building-debug-builds-error-doc-topic-debugging-with-eclipse/31697.md?page=1)
