Results 1 to 3 of 3
  1. #1

    Member Since
    Jul 31, 2013
    Debugging JavaScript in Safari

    I'm trying to troubleshoot some problems my website has with Safari. I have Safari 6.0.2 running on a Mac that I'm remoted into via iRAPP. I'm not sure what version of the OS this Mac is using.

    From the research I've done, I should be able to step through my JavaScript by going to the Menu and choosing Develop->Start Debugging JavaScript. I've added the Develop menu to my Safari, but I don't see that option, just Start Profiling JavaScript and Start Timeline Recording.

    I've added a debugger statement to my JavaScript, but Safari acts as if it isn't there. I've debugged in Chrome, Dragonfly (pre-webkit Opera), FireBug, Venkman, and IE Developer Tools (IE6-10); this is my first time in Safari.


  2. #2

    vansmith's Avatar
    Member Since
    Oct 19, 2008
    2012 13" MBP (2.5 i5, 8GB)
    Take a look at this document.
    Important Links: Community Guidelines : Use the reputation system if you've been helped.
    M-F Blog :: Write for the blog
    Writing a Quality Post

  3. #3

    Member Since
    Jul 31, 2013
    Quote Originally Posted by vansmith View Post
    Take a look at this document.
    Thanks, that had some useful information, but the only method I saw for stepping into your JavaScript (Putting a breakpoint next to the line of code), didn't really make sense in the context I'm in. I don't have a big block of JavaScript, like a standalone .js file, but instead have a block that's onclick attribute of an anchor tag.

    I did figure out how to get it to break though. I found in the little icon bar at the top of the Web Inspector, to the right of "Issue" (Exclamation Point) icon, I found a debug icon. The icon looks kind of like two horizontal parallel lines with a dashed line in the middle. I clicked on that and the next time I clicked on my anchor, it "saw" the debugger statement and stopped there.


Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Javascript problems in safari
    By pandora_dora in forum Web Design and Hosting
    Replies: 1
    Last Post: 09-27-2011, 10:59 PM
  2. Safari Javascript Help
    By bluecollar01 in forum Web Design and Hosting
    Replies: 0
    Last Post: 04-12-2011, 09:13 AM
  3. Safari and javascript problem.
    By DaveDawn in forum Web Design and Hosting
    Replies: 3
    Last Post: 06-28-2008, 12:55 PM
  4. How do I debug javascript in Safari?
    By Srikanth.S in forum Web Design and Hosting
    Replies: 3
    Last Post: 08-05-2005, 11:40 AM
  5. Safari Javascript problem
    By babszem in forum Web Design and Hosting
    Replies: 0
    Last Post: 02-26-2004, 03:21 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts