?
Solved

Debugging Javascript in Aptana Studio 3

Posted on 2011-10-22
5
Medium Priority
?
2,374 Views
Last Modified: 2012-05-12
Hi,

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 :(

0
Comment
Question by:Chris Stanyon
  • 3
5 Comments
 
LVL 83

Expert Comment

by:leakim971
ID: 37011468
0
 
LVL 45

Author Comment

by:Chris Stanyon
ID: 37011522
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.

0
 
LVL 11

Expert Comment

by:mcnute
ID: 37013657
you can still use the built-in console in firebug, which is a firefox addon for webdevelopers.

https://addons.mozilla.org/de/firefox/addon/firebug/
0
 
LVL 45

Accepted Solution

by:
Chris Stanyon earned 0 total points
ID: 37013965
@mcnute
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.
0
 
LVL 45

Author Closing Comment

by:Chris Stanyon
ID: 37646060
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.
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying 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

Originally, this post was published on Monitis Blog, you can check it here . It goes without saying that technology has transformed society and the very nature of how we live, work, and communicate in ways that would’ve been incomprehensible 5 ye…
Ready to get certified? Check out some courses that help you prepare for third-party exams.
This tutorial walks through the best practices in adding a local business to Google Maps including how to properly search for duplicates, marker placement, and inputing business details. Login to your Google Account, then search for "Google Mapmaker…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
Suggested Courses
Course of the Month16 days, 2 hours left to enroll

850 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