Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript Debugging Functions

Michael Actkinson
Michael Actkinson
6,614 Points

An inserted javascript file 5600 lines long pops up in console instead of going to line 59 as shown in video above.

Hello,

When following along with this video, I set my event listener breakpoint for 'submit,' and hit the submit button on the app only for this inserted javascript file to pop up in a new tab on my console after I hit the submit button. It starts with

(function() {
      'use strict';
      ...

and then proceeds to go on for about 5600 lines. I don't have a clue what it says or its purpose. I tried sharing it here but there's no room for it. I tried CodePen as suggested by Treehouse but it seems they only allow sharing for pro members. So then my questions are

  1. Does anyone have any idea of what this file is and why it pops up in my console when I hit the submit button?
  2. If no one has any idea does anyone know a way for me to share this large file so that way someone can look it over?

I'd greatly appreciate it if you could help explain what this file is to me.

Here is the link to the Github Repo https://github.com/mhactkinson/Inserted-JS-on-Treehouse-Lesson.git

1 Answer

Lee Vaughn
seal-mask
STAFF
.a{fill-rule:evenodd;}techdegree seal-36
Lee Vaughn
Treehouse Teacher

Hi Michael Actkinson!

If you are using Workspaces, you can share a link to your code by sharing a Snapshot of your Workspace using the camera icon towards the top right. Another option for sharing your code is to create a GitHub repo and then share a link to that.

I hope that helps!

Michael Actkinson
Michael Actkinson
6,614 Points

Hi Lee,

Thanks for responding. Here is the link to the Github Repo. This file also only appears in my Google Chrome console, and not in the Workspaces app. https://github.com/mhactkinson/Inserted-JS-on-Treehouse-Lesson.git