# Debugging in Thunkable X (Video)

**URL:** <https://community.thunkable.com/t/debugging-in-thunkable-x-video/849471>\
**Category:** Tutorials and DIY Guides\
**Tags:** community, tips, debug\
**Created:** [September 25, 2020, 6:25pm UTC](https://community.thunkable.com/t/debugging-in-thunkable-x-video/849471 "2020-09-25T18:25:50Z")\
**Posts on this page:** 20\
**Page:** 3

<div class="post-metadata">

**Author:** ![andos-avlog](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/andos-avlog/32/122340_2.png) [@andos-avlog](https://community.thunkable.com/u/andos-avlog)\
**Post date:** [December 19, 2022, 9:41pm UTC](https://community.thunkable.com/t/debugging-in-thunkable-x-video/849471/42 "2022-12-19T21:41:57Z")

</div>

Hi @tatiang, I’ve deleted all the blocks shown in the previous screenshot.

> [@tatiang](#):
>
> And the link to the updated project?

I am not sure what you mean by this.

Here is an image of my blocks:

 ![Login Page blocks-Screenshot 2022-12-19 21.42.45](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/7/4/74703a8f94ec1d142d3fd0d85d8a5340e673857b.png)

Andos.

---

<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:** [December 19, 2022, 10:02pm UTC](https://community.thunkable.com/t/debugging-in-thunkable-x-video/849471/43 "2022-12-19T22:02:35Z")

</div>

But you removed all of the debugging call blocks from the login process! Have you solved the problem? Because without them, it’s very difficult to know why the project stops at the loading icon.

I was trying to help you determine if the Firebase login is verified or not. We still don’t know.

---

<div class="post-metadata">

**Author:** ![andos-avlog](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/andos-avlog/32/122340_2.png) [@andos-avlog](https://community.thunkable.com/u/andos-avlog)\
**Post date:** [December 19, 2022, 10:18pm UTC](https://community.thunkable.com/t/debugging-in-thunkable-x-video/849471/44 "2022-12-19T22:18:23Z")

</div>

Hi @tatiang, when I dragged the **Debug Click** and **Run Debug** blocks to the bin. All the other **Run Debug** blocks disappeared also. I presumed that was supposed to happen.

I shall recreate them…

Andos.

---

<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:** [December 19, 2022, 10:37pm UTC](https://community.thunkable.com/t/debugging-in-thunkable-x-video/849471/45 "2022-12-19T22:37:49Z")

</div>

That happened because you deleted the Run Debug function definition blocks. _Sigh_ I didn’t realize that the function definition (Run\_Debug with report) blocks were part of the screenshot. Sorry about that! Yes, you need that function definition and then you need to add the “Run\_Debug” blocks with text strings to the “when LoginButton click” blocks.

---

<div class="post-metadata">

**Author:** ![andos-avlog](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/andos-avlog/32/122340_2.png) [@andos-avlog](https://community.thunkable.com/u/andos-avlog)\
**Post date:** [December 19, 2022, 10:39pm UTC](https://community.thunkable.com/t/debugging-in-thunkable-x-video/849471/46 "2022-12-19T22:39:20Z")

</div>

Hi @tatiang, I have now recreated the **Run Debug** function and placed **Debug** back in the **Login** process. See my blocks now:

 ![New DebugFunctions-Screenshot 2022-12-19 22.35.33](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/a/5/a5491666bf2d09d7649ae7df44301b7faa60681a.png)

What should I do now?

Andos.

---

<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:** [December 19, 2022, 11:14pm UTC](https://community.thunkable.com/t/debugging-in-thunkable-x-video/849471/47 "2022-12-19T23:14:14Z")

</div>

I made a screen capture where I explain the next step. Sorry that the audio quality is poor.

[https://watch.screencastify.com/v/RDa8EbTNbt2GjqdF5jSp](https://watch.screencastify.com/v/RDa8EbTNbt2GjqdF5jSp)

---

<div class="post-metadata">

**Author:** ![andos-avlog](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/andos-avlog/32/122340_2.png) [@andos-avlog](https://community.thunkable.com/u/andos-avlog)\
**Post date:** [December 19, 2022, 11:37pm UTC](https://community.thunkable.com/t/debugging-in-thunkable-x-video/849471/48 "2022-12-19T23:37:15Z")

</div>

Hi @tatiang, the video helps.

Here is a video of what happens now when I click the **Login** button:

[![](https://img.youtube.com/vi/t-9hlLVTMZ4/hqdefault.jpg "AvLog Group Video") ](https://www.youtube.com/watch?v=t-9hlLVTMZ4)

It appears as though the Login stages are still not being reported.

Andos.

---

<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:** [December 20, 2022, 12:23am UTC](https://community.thunkable.com/t/debugging-in-thunkable-x-video/849471/49 "2022-12-20T00:23:14Z")

</div>

Can you share a new link to your project?

![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/5/c/5cdff1eb656e0b962753677bed943260f90c18d9.png)

---

<div class="post-metadata">

**Author:** ![andos-avlog](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/andos-avlog/32/122340_2.png) [@andos-avlog](https://community.thunkable.com/u/andos-avlog)\
**Post date:** [December 20, 2022, 12:30am UTC](https://community.thunkable.com/t/debugging-in-thunkable-x-video/849471/50 "2022-12-20T00:30:12Z")

</div>

Hi @tatiang, as requested, here is a link to my project:

[https://x.thunkable.com/copy/90971b34624937f12f4c7d1dc8b6b755](https://x.thunkable.com/copy/90971b34624937f12f4c7d1dc8b6b755)

Andos.

---

<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:** [December 20, 2022, 2:04am UTC](https://community.thunkable.com/t/debugging-in-thunkable-x-video/849471/51 "2022-12-20T02:04:23Z")

</div>

That link doesn’t work:

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/2/5/254bc09b7c3e95e7fe7a684c96e2511fe788a8ce.png)

---

<div class="post-metadata">

**Author:** ![andos-avlog](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/andos-avlog/32/122340_2.png) [@andos-avlog](https://community.thunkable.com/u/andos-avlog)\
**Post date:** [December 20, 2022, 1:54pm UTC](https://community.thunkable.com/t/debugging-in-thunkable-x-video/849471/52 "2022-12-20T13:54:04Z")

</div>

Hi @tatiang, try this link:

[https://x.thunkable.com/copy/dc85470d7088944d140ee2889cec638d](https://x.thunkable.com/copy/dc85470d7088944d140ee2889cec638d)

Andos.

---

<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:** [December 20, 2022, 5:56pm UTC](https://community.thunkable.com/t/debugging-in-thunkable-x-video/849471/53 "2022-12-20T17:56:10Z")

</div>

That one doesn’t work for me either. It’s possible that my account is full.

**Edit:** that one works. I had to delete projects in order to open it.

---

<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:** [December 20, 2022, 8:07pm UTC](https://community.thunkable.com/t/debugging-in-thunkable-x-video/849471/54 "2022-12-20T20:07:57Z")

</div>

Remember that your debug function should look like this:

![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/5/e/5e27f59997d00c12d39e7f7f1c25ec6f7b1e8128.png)

Also, please add this “Navigating to LandingScreen” debug function call:

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/3/0/30302f5b8b8313dfa97188d0b1731c1a9d4bf03a.png)

Can you try again and share a video of the results?

---

<div class="post-metadata">

**Author:** ![andos-avlog](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/andos-avlog/32/122340_2.png) [@andos-avlog](https://community.thunkable.com/u/andos-avlog)\
**Post date:** [December 20, 2022, 8:43pm UTC](https://community.thunkable.com/t/debugging-in-thunkable-x-video/849471/55 "2022-12-20T20:43:46Z")

</div>

Hi @tatiang, I have amend both **Run Debug** function and the **Login Click** as you suggested. See below:

 ![Run Debugwithout Uael#Values Label blok-creenshot 2022-12-20 20.20.27](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/7/d/7d0fb2c725a2dfccd30f5edda54bf9c0ab8ab8c7.png)

 ![Login Click Btn with Debug added to Navigate to LandingScreen-Screenshot 2022-12-20 20.22.53](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/1/b/1be463ba87701a82d9f9cfaf15b569a075cf96e1.png)

The video below shows the outcome:

[![](https://img.youtube.com/vi/1rDAwJOg-oQ/hqdefault.jpg "AvLog Group Video") ](https://www.youtube.com/watch?v=1rDAwJOg-oQ)

There must be a reason why messages aren’t displaying. Although I don’t fully understand it, the error msg keeps mentioning **API**. I definitely have an **API key** Could this be relevant?

 ![ErrorMsgAPI-Screenshot 2022-12-20 20.42.34](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/b/0/b067b7b1c828ca73cca97ba76059013afa386994.png)

Andos.

---

<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:** [December 20, 2022, 8:57pm UTC](https://community.thunkable.com/t/debugging-in-thunkable-x-video/849471/56 "2022-12-20T20:57:04Z")

</div>

> [@andos-avlog](#):
>
> There must be a reason why messages aren’t displaying. Although I don’t fully understand it, the error msg keeps mentioning **API**. I definitely have an **API key** Could this be relevant?

Yep! I just assumed that was text from a `list of values` block but now that I look at it closer, it’s an error message. You can set a text input’s text to the green `error` block and then copy and paste it so that you can read the whole thing.

You’ll need to figure out why the API is returning an error. You can Google keywords from the error. It’s probably related to settings preventing your Firebase sign in from working.

---

<div class="post-metadata">

**Author:** ![andos-avlog](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/andos-avlog/32/122340_2.png) [@andos-avlog](https://community.thunkable.com/u/andos-avlog)\
**Post date:** [December 20, 2022, 9:04pm UTC](https://community.thunkable.com/t/debugging-in-thunkable-x-video/849471/57 "2022-12-20T21:04:23Z")

</div>

Hi @tatiang, I shall try this tomorrow as we are about to go out this evening.

Could you send me an image of how to set my blocks to display the **API error msg** clearly pls?

Andos.

---

<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:** [December 20, 2022, 9:26pm UTC](https://community.thunkable.com/t/debugging-in-thunkable-x-video/849471/58 "2022-12-20T21:26:05Z")

</div>

Like this:

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/6/8/68d5c6d401a13696d6130c19306cf954a5197696.png)

You can use any Text Input component… it doesn’t have to be the EmailText\_Input. And the wait block is just there so you have time to copy the result.

---

<div class="post-metadata">

**Author:** ![andos-avlog](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/andos-avlog/32/122340_2.png) [@andos-avlog](https://community.thunkable.com/u/andos-avlog)\
**Post date:** [December 21, 2022, 2:42pm UTC](https://community.thunkable.com/t/debugging-in-thunkable-x-video/849471/59 "2022-12-21T14:42:26Z")

</div>

Hi @tatiang, I followed your instructions and copied out the following error message:

 ![LoginErrorMsg-Screenshot 2022-12-21 13.59.12](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/6/a/6ac98d5d8cb6508f7d5af14d91dd12c75be25c81.png)

I then went to the link in the error message and clicked “Enable” for the API

![Enabled API-Screenshot 2022-12-21 14.33.07](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/c/0/c0130c401617e26154529cade7c88cf49e018055.png)

It suggested that I ‘might’ have to wait 24 hours for propagation. I started to look at other things associated with the API and didn’t understand any of it.

I tried running the Live Test of my project. See the video below:

[![](https://img.youtube.com/vi/_DSJgLYcioo/hqdefault.jpg "AvLog Group Video") ](https://www.youtube.com/watch?v=_DSJgLYcioo)

I shall leave it for 24 hours and then try again. I shall then forward to you my findings.

Andos.

---

<div class="post-metadata">

**Author:** ![andos-avlog](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/andos-avlog/32/122340_2.png) [@andos-avlog](https://community.thunkable.com/u/andos-avlog)\
**Post date:** [December 23, 2022, 10:16pm UTC](https://community.thunkable.com/t/debugging-in-thunkable-x-video/849471/60 "2022-12-23T22:16:51Z")

</div>

Hi @tatiang, I’ve set up my blocks as per your previous image and I have left enabling of the API for 48 hours instead of 24 hours as a precaution. Unfortunately, there doesn’t appear to be any improvement.

See video below:

[![](https://img.youtube.com/vi/fv9qKeoN6Xo/hqdefault.jpg "AvLog Group Video") ](https://www.youtube.com/watch?v=fv9qKeoN6Xo)

Should I use a new API key? I really don’t want to as I found it harrowing the first time.

Andos.

---

<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:** [December 23, 2022, 10:38pm UTC](https://community.thunkable.com/t/debugging-in-thunkable-x-video/849471/61 "2022-12-23T22:38:35Z")

</div>

I don’t think a new API key is going to help.

This is for Firebase sign-in, right? Because usually, you can test an API by entering the full url you plan to use in a browser. But with Firebase, I’m not even sure how you would do that. I guess you’d need to contact Firebase support to find out why your sign in API access isn’t working.

Under Authentication in your Firebase Console, do you have Email/Password enabled as a Sign-in method? Or something else? Here’s what mine looks like and it works with Thunkable:

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/6/9/69d78dd4e3e11c08684d0225ca44da7e9bd345e8.png)

[Previous page](https://community.thunkable.com/t/debugging-in-thunkable-x-video/849471.md?page=2)

[Next page](https://community.thunkable.com/t/debugging-in-thunkable-x-video/849471.md?page=4)
