# Unbound breakpoint issue when I try to add phone number support

**URL:** <https://community.parseplatform.org/t/unbound-breakpoint-issue-when-i-try-to-add-phone-number-support/2038>\
**Category:** Parse Server 📡\
**Created:** [September 30, 2021, 8:48pm UTC](https://community.parseplatform.org/t/unbound-breakpoint-issue-when-i-try-to-add-phone-number-support/2038 "2021-09-30T20:48:50Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![hkblue](https://community.parseplatform.org/letter_avatar_proxy/v4/letter/h/f14d63/32.png) [@hkblue](https://community.parseplatform.org/u/hkblue)\
**Post date:** [September 30, 2021, 8:48pm UTC](https://community.parseplatform.org/t/unbound-breakpoint-issue-when-i-try-to-add-phone-number-support/2038/1 "2021-09-30T20:48:50Z")

</div>

Hi, I have an unbound breakpoint issue. I tried to add a phone number validation function to [parse-server/RestWrite.js at master · parse-community/parse-server · GitHub](https://github.com/parse-community/parse-server/blob/master/src/RestWrite.js#L628)

So, I followed this.\_validateEmail() example and created `this._validatePhoneNumber()` here [phonecall\_temp/RestWrite.js at main · hkbluesky/phonecall\_temp · GitHub](https://github.com/hkbluesky/phonecall_temp/blob/main/private/var/www/parse_server_example/parse_server_src/parse-server/src/RestWrite.js#L630)

However, when I tried to set a breakpoint in line 630 or line 631 in my RestWrite.js. The breakpoint becomes unbound. It is very strange and I don’t know why. Could anyone explain to me why this happens? BTW, I am using Visual Studio Code. Thanks

---

<div class="post-metadata">

**Author:** ![davimacedo](https://community.parseplatform.org/user_avatar/community.parseplatform.org/davimacedo/32/316_2.png) [@davimacedo](https://community.parseplatform.org/u/davimacedo)\
**Post date:** [October 1, 2021, 5:44pm UTC](https://community.parseplatform.org/t/unbound-breakpoint-issue-when-i-try-to-add-phone-number-support/2038/2 "2021-10-01T17:44:41Z")

</div>

I think it is happening because we use Babel on Parse Server to generate the lib folder. I am not sure how breakpoints work exactly on VS Code in a project with Babel but you probably need to run `npm run build` before starting the tests.

---

<div class="post-metadata">

**Author:** ![hkblue](https://community.parseplatform.org/letter_avatar_proxy/v4/letter/h/f14d63/32.png) [@hkblue](https://community.parseplatform.org/u/hkblue)\
**Post date:** [October 2, 2021, 7:08pm UTC](https://community.parseplatform.org/t/unbound-breakpoint-issue-when-i-try-to-add-phone-number-support/2038/4 "2021-10-02T19:08:01Z")

</div>

@davimacedo yes. This solves the unbound breakpoint issue. But why do we need the lib folder when all the source code is in /src ? Is this because parse server actually reads code from /lib folder?

---

<div class="post-metadata">

**Author:** ![davimacedo](https://community.parseplatform.org/user_avatar/community.parseplatform.org/davimacedo/32/316_2.png) [@davimacedo](https://community.parseplatform.org/u/davimacedo)\
**Post date:** [October 4, 2021, 4:47am UTC](https://community.parseplatform.org/t/unbound-breakpoint-issue-when-i-try-to-add-phone-number-support/2038/5 "2021-10-04T04:47:14Z")

</div>

Yes. Babel “compiles” the code from src folder and generates the lib, which is the one actually executed.
