问题
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.
回答1:
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.
回答2:
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
来源:https://stackoverflow.com/questions/11532388/socket-connection-error-when-debugging-php-js-on-aptana-3