# Debugging javascript code within Pinegrow

**URL:** <https://forum.pinegrow.com/t/debugging-javascript-code-within-pinegrow/3970>\
**Category:** Javascript\
**Created:** [April 17, 2020, 2:12am UTC](https://forum.pinegrow.com/t/debugging-javascript-code-within-pinegrow/3970 "2020-04-17T02:12:10Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![dTimony](https://avatars.discourse-cdn.com/v4/letter/d/c4cdca/32.png) [@dTimony](https://forum.pinegrow.com/u/dTimony)\
**Post date:** [April 17, 2020, 2:12am UTC](https://forum.pinegrow.com/t/debugging-javascript-code-within-pinegrow/3970/1 "2020-04-17T02:12:10Z")

</div>

Has anyone figured out how to debug calls to external JavaScript code within Pinegrow? I have external .js files that are called from html and I need to set breakpoints, debug etc…

I really don’t want to go back to using Visual Studio / Mono, but I may have to as debugging JavaScript with alert() and writing to logs is very time consuming.

---

<div class="post-metadata">

**Author:** ![AllMediaLab](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/allmedialab/32/2079_2.png) [@AllMediaLab](https://forum.pinegrow.com/u/AllMediaLab)\
**Post date:** [April 17, 2020, 8:13am UTC](https://forum.pinegrow.com/t/debugging-javascript-code-within-pinegrow/3970/2 "2020-04-17T08:13:47Z")

</div>

Hi @dTimony,

Welcome to this forum!

What about using Chrome, Firefox, Edge or Safari that you use as a browser anyway?  
[Chrome Developer Tools](https://developers.google.com/web/tools/chrome-devtools/javascript)  
[Mozzila Debugging](https://developer.mozilla.org/en-US/docs/Mozilla/Debugging/Debugging_JavaScript)  
[Safari Tools](https://developer.apple.com/safari/tools/)  
[Edge Tools](https://docs.microsoft.com/en-us/microsoft-edge/extensions/guides/debugging-extensions)

There are plenty of tutorials about this subject on YouTube.

Regards,

David

---

<div class="post-metadata">

**Author:** ![Pinegrow\_User](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/pinegrow_user/32/4919_2.png) [@Pinegrow\_User](https://forum.pinegrow.com/u/Pinegrow_User)\
**Post date:** [April 17, 2020, 10:30am UTC](https://forum.pinegrow.com/t/debugging-javascript-code-within-pinegrow/3970/3 "2020-04-17T10:30:15Z")

</div>

Hi @dTimony welcome to the forum.

You can also use the Dev Tools via the apps embedded browser.

The old way used to be accessed via File \> Developer Tools: (was removed for whatever reason)

 ![Pinegrow-Dev-Tools-OLD](https://canada1.discourse-cdn.com/flex036/uploads/pinegrow/original/2X/b/bedaa74f03943e3fabc30b480f7c6829c6fca4c3.png)

But you can still access it by, Right Clicking the Logo \> Inspect

![Pinegrow-Dev-Tools-NEW](https://canada1.discourse-cdn.com/flex036/uploads/pinegrow/original/2X/7/7ed1f24433dc5791377239ea834d5cc46c31b0ac.png)

Of course you will also see everything related to the app itself, however its an option if you prefer.

---

<div class="post-metadata">

**Author:** ![dTimony](https://avatars.discourse-cdn.com/v4/letter/d/c4cdca/32.png) [@dTimony](https://forum.pinegrow.com/u/dTimony)\
**Post date:** [April 17, 2020, 3:00pm UTC](https://forum.pinegrow.com/t/debugging-javascript-code-within-pinegrow/3970/4 "2020-04-17T15:00:47Z")

</div>

Great feedback guys, thanks very much for responding. I’m now using Chrome to debug my JS, works perfect, exactly what I was looking for.

---

<div class="post-metadata">

**Author:** ![dTimony](https://avatars.discourse-cdn.com/v4/letter/d/c4cdca/32.png) [@dTimony](https://forum.pinegrow.com/u/dTimony)\
**Post date:** [April 18, 2020, 1:35am UTC](https://forum.pinegrow.com/t/debugging-javascript-code-within-pinegrow/3970/5 "2020-04-18T01:35:08Z")

</div>

Ok, hate to come across as a novice, but, I am to Unix. How do I get Pinegrow to stop defaulting to SeaMonkey and get it to default to Chrome?

---

<div class="post-metadata">

**Author:** ![schpengle](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/schpengle/32/238_2.png) [@schpengle](https://forum.pinegrow.com/u/schpengle)\
**Post date:** [April 18, 2020, 1:14pm UTC](https://forum.pinegrow.com/t/debugging-javascript-code-within-pinegrow/3970/6 "2020-04-18T13:14:13Z")

</div>

Hi, I’m guessing that in Chromes own preferences, there is a setting to set it as the default browser, and then, PG just opens the default browser, which currently isnt Chrome- or likewise, there is a setting in SM, which checks to see if it is the Default, so deselect this…buuut, this is Unix!  
So i’m not sure if that fine OS would let a mere App make this choice!  
But have a look anyway.
