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 Asynchronous Programming with JavaScript Asynchronous JavaScript with Callbacks Stepping Through Async Code

Using the debugger on Firefox (and Chrome), the debugger jumps into the file retrieving JSON data from Wikipedia?

Per the title, in the debugging tools for both browsers, as I follow the logic of the JavaScript file step by step, the debugger 'jumps' into the JavaScript file pulling the JSON data after the XMLHttpRequest is opened. Whilst I'm sure this is useful, in terms of purely following the file that I've written, is there any way to 'hide' these jumps from view so that I can focus on following the callbacks.js file?

1 Answer

I think you're thinking about the button next to it: step over. This will not take you through all the process, but only show you the steps in your current scope. You explore all the options and jump in and out of whatever scope you want. It's quite interesting to follow this process.