Debugging Javascript in Aptana Studio 3

Posted on 2011-10-22
Last Modified: 2012-05-12

I'm using Aptana Studio 3 as my IDE for web development (HTML, CSS, PHP and Javascript) but cannot get anything related to debugging to work.

I've setup a debug configuration to open my page using a specific server. I've added a small script to my page, and set several breakpoints.

When I click the debug button (either the config for Firefox or IE), the page loads in my browser, and Aptana switches to the Debug view. It shows the main thread running.

It never stops at any breakpoint - it simply ignores them. It isn't showing a list of variables either. There seems to be no connection whatsoever between Aptana and my browser.

I can't figure out whether I'm doing something fundamentally wrong or this is a bug in the program.

Tried for hours searching the 'net but the docs are pretty useless. A lot of the links to aptana documentation now lead straight to the titanium homepage :(

Question by:Chris Stanyon
    LVL 81

    Expert Comment

    LVL 42

    Author Comment

    by:Chris Stanyon
    Although it's based on Eclipse, it's the stand alone version I've installed which is supposed to have the javascript debugger built in - no need for plugins.

    LVL 11

    Expert Comment

    you can still use the built-in console in firebug, which is a firefox addon for webdevelopers.
    LVL 42

    Accepted Solution

    I already use Firebug extensively. I'm looking at debugging in Aptana.

    I may have made some progress on this. It seems that Aptana won't debug javascript in a file with a php extension, even if there's no php in it !! Changing the extension to .html seems to work, but I'm still looking into it.

    Many of my development projects are written with php, so I need to be debugging the javascript within these files.
    LVL 42

    Author Closing Comment

    by:Chris Stanyon
    Uninstalled and reinstalled the latest version. And I can now now debug my Javascript OK. <br /><br />Figured it all out with some trial and error. Thanks for the answers but none gave me a solution.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Maximize Your Threat Intelligence Reporting

    Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

    This article will give core knowledge of JavaScript and will head in to your first JavaScript program. I am Durvesh Naik and I am here to deal with this series of JavaScript. I will teach you JavaScript in part wise , as its quite boring to read big…
    Read about why website design really matters in today's demanding market.
    The viewer will learn how to count occurrences of each item in an array.
    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)

    759 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

    Need Help in Real-Time?

    Connect with top rated Experts

    10 Experts available now in Live!

    Get 1:1 Help Now