# Does anyone have any tips how I can "debug" my app?

**URL:** <https://community.thunkable.com/t/does-anyone-have-any-tips-how-i-can-debug-my-app/1253687>\
**Category:** Questions about Thunkable X\
**Created:** [April 29, 2021, 10:18pm UTC](https://community.thunkable.com/t/does-anyone-have-any-tips-how-i-can-debug-my-app/1253687 "2021-04-29T22:18:38Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![andreas.sjdtomypv](https://avatars.discourse-cdn.com/v4/letter/a/e5b9ba/32.png) [@andreas.sjdtomypv](https://community.thunkable.com/u/andreas.sjdtomypv)\
**Post date:** [April 29, 2021, 10:18pm UTC](https://community.thunkable.com/t/does-anyone-have-any-tips-how-i-can-debug-my-app/1253687/1 "2021-04-29T22:18:38Z")

</div>

Hi  
Sometimes when I am about to keep my coding after a day or so, I meet with a crashing app, even though I haven’t done anything. As today, that happened, and even my backup for that project is crashing. (I wouldn’t have done any backup if the app was crashing, so it once have been all good).

Now I am trying to see what it can be, so I have removed everything (out from the blocks, the code are still there but greyed out at the side of the blocks (when screen starts etc)), But still the app is crashing.  
Wouldn’t that be a safe way to debug ?? …end then just drag the parts back until it crashes again…

How are you doing to “debug” your apps?

---

<div class="post-metadata">

**Author:** ![andreas.sjdtomypv](https://avatars.discourse-cdn.com/v4/letter/a/e5b9ba/32.png) [@andreas.sjdtomypv](https://community.thunkable.com/u/andreas.sjdtomypv)\
**Post date:** [April 29, 2021, 10:24pm UTC](https://community.thunkable.com/t/does-anyone-have-any-tips-how-i-can-debug-my-app/1253687/2 "2021-04-29T22:24:13Z")

</div>

ok, an update… It looks like it was the “live test” function that was f\*\*ed up…  
I got it working again by, as I said, drag all codes out from the blocks and back again.

But still, how do you do??

---

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [April 29, 2021, 11:03pm UTC](https://community.thunkable.com/t/does-anyone-have-any-tips-how-i-can-debug-my-app/1253687/3 "2021-04-29T23:03:53Z")

</div>

This is how I do it:

> [@Debugging in Thunkable X (Video)](https://community.thunkable.com/t/debugging-in-thunkable-x-video/849471):
>
> I thought I’d share a process I use for debugging my projects. It involves creating a function that can be used over and over throughout the code blocks in order to help determine where things are going wrong, whether or not certain blocks are ever triggering, and what the values of several variables are. Here’s a screenshot of what I’ve set up: The real power comes from being able to quickly change the delay (and even set it to 0 seconds) or just remo…

There are some common things that can cause an app to crash such as using the wrong property when calling an API, or assigning an incorrect type to a variable (such as making a variable text and then assigning a list to it), or referencing a list item that doesn’t exist (item #5 of a list with 3 items).

---

<div class="post-metadata">

**Author:** ![andreas.sjdtomypv](https://avatars.discourse-cdn.com/v4/letter/a/e5b9ba/32.png) [@andreas.sjdtomypv](https://community.thunkable.com/u/andreas.sjdtomypv)\
**Post date:** [April 30, 2021, 10:10pm UTC](https://community.thunkable.com/t/does-anyone-have-any-tips-how-i-can-debug-my-app/1253687/4 "2021-04-30T22:10:08Z")

</div>

Hi. Thanks! This is really helpful! I will try to implement this in my project somehow!

---

<div class="post-metadata">

**Author:** ![andreas.sjdtomypv](https://avatars.discourse-cdn.com/v4/letter/a/e5b9ba/32.png) [@andreas.sjdtomypv](https://community.thunkable.com/u/andreas.sjdtomypv)\
**Post date:** [May 11, 2021, 11:15am UTC](https://community.thunkable.com/t/does-anyone-have-any-tips-how-i-can-debug-my-app/1253687/5 "2021-05-11T11:15:03Z")

</div>

Hi all,

again… How do you guys debug your apps?  
@Tatiang, your way is awesome. I have used it some times now, and also simply displayed my different steps in labels just to make sure averything I expect to be in my variables etc actually are there.

I am trying to build carefully, step by step, view the results in labels as I said, but then the app is crashing, and that’s fine, its my bad coding. So I step back to how it was before I added this code block that Made it crash, but it still crashes, then I go back even further, but it still crashes…

And quite often I simply run-force quit-run-force quit a couple of times and then it works again, without having done anything in the code. I am guessing that if I have run the app earlier the code should be ok? So, when it crashes it’s caused by something I recently added in the code…?  
So, by go back the app _Should_ be working again, as it previously did, right?

Is this a common behaviour for Thunkable? Is this something you experienced guys are meeting sometimes as well? If so, how do you do to come back and keep coding?

Tatiangs recommandation is great, but it requires that the app is starting 😊

I am running:  
Mac OS Mojave (and sometime Catalina)  
Safari 12.1.2 (at least for Mojave, I am not sure which version on Catalina right now)  
iPhone XR  
IOS 14.4.2  
Thunkable test app 267-2

I often clear cache for Safari on my Mac.  
quite often I force quit the app on my phone as well.  
Sometimes it works, sometimes not…

Thanks all!

---

<div class="post-metadata">

**Author:** ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)\
**Post date:** [November 8, 2024, 1:22pm UTC](https://community.thunkable.com/t/does-anyone-have-any-tips-how-i-can-debug-my-app/1253687/6 "2024-11-08T13:22:52Z")

</div>


