# Help with Debugging Unit 5 Lessons 13-17

**URL:** <https://forum.code.org/t/help-with-debugging-unit-5-lessons-13-17/38975>\
**Category:** CS Principles\
**Tags:** csp-unit-5\
**Created:** [February 1, 2024, 7:01pm UTC](https://forum.code.org/t/help-with-debugging-unit-5-lessons-13-17/38975 "2024-02-01T19:01:09Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![drush](https://avatars.discourse-cdn.com/v4/letter/d/9f8e36/32.png) [@drush](https://forum.code.org/u/drush)\
**Post date:** [February 1, 2024, 7:01pm UTC](https://forum.code.org/t/help-with-debugging-unit-5-lessons-13-17/38975/1 "2024-02-01T19:01:09Z")

</div>

Hello, I have a student that is struggling with some debugging issues with her App.  
What is expected to happen: The user selects a song title from the drop down list. The app returns the Artist for the song.

What is happening: The Artist is not being returned and printed in the text area on screen 3.

I have used watchers and the artistsoutput is not being populated, however I cannot figure out why.

Any help you can give me would be appreciated.

> **[Check out what I made](https://studio.code.org/projects/applab/Z3MHhtpo7fgfWV2RB8B9iR3yacjLx-H2qtu-YikBjfA)**
>
> I wrote the code myself with Code.org

---

<div class="post-metadata">

**Author:** ![bhatnagars](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.code.org/bhatnagars/32/4919_2.png) [@bhatnagars](https://forum.code.org/u/bhatnagars)\
**Post date:** [February 1, 2024, 8:42pm UTC](https://forum.code.org/t/help-with-debugging-unit-5-lessons-13-17/38975/2 "2024-02-01T20:42:17Z")

</div>

I see two problems. Firstly, remove the quotation marks from the items in the dropdown menu. Secondly, your comparison of titles[i] to inputTitles should be case insensitive. So convert both strings to either uppercase or lowercase before doing the comparison or make sure the case of the titles in the dropdown menu match the text in the table.

---

<div class="post-metadata">

**Author:** ![drush](https://avatars.discourse-cdn.com/v4/letter/d/9f8e36/32.png) [@drush](https://forum.code.org/u/drush)\
**Post date:** [February 2, 2024, 1:26pm UTC](https://forum.code.org/t/help-with-debugging-unit-5-lessons-13-17/38975/3 "2024-02-02T13:26:29Z")

</div>

Thanks for your reply. We have tried running without quotations in the dropdown menu, and that did not work either. So we added the quotations as the table data has quotations around each title. The student also typed the case titles to match the text in the menu. I’m stumped.

---

<div class="post-metadata">

**Author:** ![bhatnagars](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.code.org/bhatnagars/32/4919_2.png) [@bhatnagars](https://forum.code.org/u/bhatnagars)\
**Post date:** [February 2, 2024, 4:13pm UTC](https://forum.code.org/t/help-with-debugging-unit-5-lessons-13-17/38975/4 "2024-02-02T16:13:13Z")

</div>

I did the changes I suggested on the code you had shared earlier. It works. [Here](https://studio.code.org/projects/applab/ClukvfNsjb6f-WxO8FtrntQG4ygsGPKlwBCYczn6ugc) is the link to the corrected code.

---

<div class="post-metadata">

**Author:** ![drush](https://avatars.discourse-cdn.com/v4/letter/d/9f8e36/32.png) [@drush](https://forum.code.org/u/drush)\
**Post date:** [February 2, 2024, 4:50pm UTC](https://forum.code.org/t/help-with-debugging-unit-5-lessons-13-17/38975/5 "2024-02-02T16:50:51Z")

</div>

Thank you. I wonder if it’s a system error somewhere on my end. I have found that if I remove the quotations, change it back with quotations, and then remove them the second time, it works. I have had similar problems with three other student’s apps not printing. Each time, it takes me changing it twice to get it to work.

Thanks for all your help.
