Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

JavaScript Asynchronous Programming with JavaScript Asynchronous JavaScript with Callbacks Stepping Through Async Code

James Croxford
James Croxford
12,593 Points

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.