Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

'Socket connection error' when debugging PHP/JS on Aptana 3

I'm having a problem debugging PHP with JS code through Aptana Studio. Although there were a few people that are having similar problems. I still couldn't figure out the solution.

Aptana Studio Version is 3, build 3.1.3.2

I have MAMP installed on my Mac and I was able to run (not debug) my PHP website from Aptana (I needed to change the Server to 'Use base URL: http://localhost' for my website to run)

I have installed Aptana Debugger 1.7.2 and Firebug 1.10.0 on my Firefox 14.0.1

However, when I try and debug my website, I get a window that says:

Aptana Firefox extension launching...please wait.

Then (after few seconds) I get the error message:

'Launching Firefox - Internal Server' has encountered a problem. Socket connection error. Please try shutting down and restarting your web browser, and then run 'debug' again'

I restarted my firefox but no dice.

like image 664
Roronoa Zoro Avatar asked Jul 17 '12 23:07

Roronoa Zoro


2 Answers

Remove Firebug before starting the Aptana debugger. Aptana will install both the Aptana Debugger and Firebug 1.8.3 for you.

To make sure Firebug doesn't update to 1.10, go to "Tools > Add-ons > Firebug 1.8.3 > More", and turn off automatic updates.

like image 62
Peter Tseng Avatar answered Sep 21 '22 23:09

Peter Tseng


Had the same error when using Firebug 1.10, which is not compatible with the Aptana Debugger Firefox add-on.

What you need to do: Go to Firefox Add-ons and disable/uninstall Firebug 1.10, and instead enable Firebug 1.8 and the Aptana debugger extension instead.

Reported in JIRA here: https://jira.appcelerator.org/browse/APSTUD-3734?focusedCommentId=208816#comment-208816

like image 25
Motin Avatar answered Sep 21 '22 23:09

Motin