Solved

loop debug in javascript and safari

Posted on 2014-04-02
1
285 Views
Last Modified: 2014-04-05
Hi,

Is there a way to inspect a javascript loop using safari, i am getting an error, but i don't know where in the loop is the error! Any idea?
0
Comment
Question by:joyacv2
1 Comment
 
LVL 38

Accepted Solution

by:
Tom Beck earned 500 total points
ID: 39973071
Sure, Safari has Developer tools. Click the Web Inspector under Develop.
Web Inspector1. Click the Debugger. Navigate to the Javascript.
2. Click Pause (Pause becomes Play).
3. Use the Step Out, Step Over, Step Into buttons to navigate through the Javascript.
4. Current position in the code.
5. Variable values show up on the right.
6. Set Breakpoints and press the Play button to advance the cursor to that point.
0

Featured Post

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question