Solved

loop debug in javascript and safari

Posted on 2014-04-02
1
286 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…
Use these top 10 tips to master the art of email signature design. Create an email signature design that will easily wow recipients, promote your brand and highlight your professionalism.
In this tutorial viewers will learn how to style transparent/translucent elements using alpha transparency in CSS Start with a normal styled element, such as a div.: Define its "background-color" property as "rgba (255, 255, 255, .5): The numbers in…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

839 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