8

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.

Roronoa Zoro
  • 1,013
  • 2
  • 15
  • 25

2 Answers2

5

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.

Peter Tseng
  • 13,613
  • 4
  • 67
  • 57
  • After I did what you described, I have Firebug 1.8.3 installed on my Firefox now (I also disabled the Automatic Updates). However, when I add a break-point in my PHP code and debug through Firefox, I don't get to control the flow (by 'Step Over' and 'Step Into'). Shouldn't I be able to control it? Or does it have to be JS code? – Roronoa Zoro Aug 28 '12 at 16:17
  • I only tried it for JS myself. But it seems like PHP debugging only available in the nightly builds, or by installing a plugin: http://stackoverflow.com/questions/7102978/aptana-3-0-4-and-php-debugging – Peter Tseng Aug 30 '12 at 08:57
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

Motin
  • 4,853
  • 4
  • 44
  • 51
  • Thank you. I'm not getting the error anymore, but my code is not being debugged (at least that's what I think...), for example, when I add breakpoint in my PHP code, it just ignores it and I can't step through the code... Also the error did not entirely disappear, I still get it sometimes!!! – Roronoa Zoro Jul 23 '12 at 07:03
  • This is the right idea, but [Peter Tseng](http://stackoverflow.com/a/12139883/2440976) has a better answer, as I could no longer find version 1.8 when I searched in the Firefox Add-In list. (Remove Firebug, reopen Aptana, run debug and the correct working version of Firebug will be installed.) – Danimal111 Mar 21 '14 at 15:03