# How to debug the Kotlin native iOS with a break point?

**URL:** https://discuss.kotlinlang.org/t/how-to-debug-the-kotlin-native-ios-with-a-break-point/5842
**Category:** Native
**Created:** [December 15, 2017, 11:55am UTC](https://discuss.kotlinlang.org/t/how-to-debug-the-kotlin-native-ios-with-a-break-point/5842 "2017-12-15T11:55:00Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![albertgao](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.kotlinlang.org/albertgao/32/3656_2.png) [@albertgao](https://discuss.kotlinlang.org/u/albertgao)
#### Post date: [December 15, 2017, 11:55am UTC](https://discuss.kotlinlang.org/t/how-to-debug-the-kotlin-native-ios-with-a-break-point/5842/1 "2017-12-15T11:55:00Z")

</div>

Everythings just works, but how to debug via break point?

I use IDEA(Gradle) to build and Xcode to deploy.

Don’t know where to put the break point.

---

<div class="post-metadata">

### Author: ![darksnake](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.kotlinlang.org/darksnake/32/2479_2.png) [@darksnake](https://discuss.kotlinlang.org/u/darksnake)
#### Post date: [December 15, 2017, 3:02pm UTC](https://discuss.kotlinlang.org/t/how-to-debug-the-kotlin-native-ios-with-a-break-point/5842/2 "2017-12-15T15:02:46Z")

</div>

It was discussed some time ago. IDEA does not support native debugging for now, so you will have to do it in [Clion](https://blog.jetbrains.com/kotlin/2017/11/kotlinnative-ide-support-preview/).

Though I have [tried](https://discuss.kotlinlang.org/t/kotin-native-and-clion-problems/5262) it and it still is not very convenient. For example, Clion does not support gradle.

---

<div class="post-metadata">

### Author: ![albertgao](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.kotlinlang.org/albertgao/32/3656_2.png) [@albertgao](https://discuss.kotlinlang.org/u/albertgao)
#### Post date: [December 18, 2017, 10:52am UTC](https://discuss.kotlinlang.org/t/how-to-debug-the-kotlin-native-ios-with-a-break-point/5842/3 "2017-12-18T10:52:09Z")

</div>

Thanks, saw that. But no iOS only template but a full stack one which has too much information there.

Could we just use CLion for debug and IDEA for building and Xcode for building UI?

---

<div class="post-metadata">

### Author: ![msink](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.kotlinlang.org/msink/32/3336_2.png) [@msink](https://discuss.kotlinlang.org/u/msink)
#### Post date: [December 18, 2017, 11:08am UTC](https://discuss.kotlinlang.org/t/how-to-debug-the-kotlin-native-ios-with-a-break-point/5842/4 "2017-12-18T11:08:01Z")

</div>

In master branch, and in upcoming 0.5 release there are `calculator` sample.

---

<div class="post-metadata">

### Author: ![albertgao](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.kotlinlang.org/albertgao/32/3656_2.png) [@albertgao](https://discuss.kotlinlang.org/u/albertgao)
#### Post date: [December 18, 2017, 11:32am UTC](https://discuss.kotlinlang.org/t/how-to-debug-the-kotlin-native-ios-with-a-break-point/5842/5 "2017-12-18T11:32:07Z")

</div>

Thanks, found it.  
Glad that we can use `swift` in conjunction with `kotlin`.  
And by using swift, we can debug the UI part easily!
