Debugging Javascript in Aptana Studio 3

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

LVL 46
Chris StanyonAsked:
Who is Participating?
 
Chris StanyonConnect With a Mentor Author Commented:
@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
 
leakim971PluritechnicianCommented:
0
 
Chris StanyonAuthor Commented:
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
 
mcnuteCommented:
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
 
Chris StanyonAuthor Commented:
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.