Cloud9 - PHP CLI Debugger



I know that Cloud9 just got freshly released on AWS, but the debugger is still having some errors.

If you try to run a .php file with the PHP-CLI Runner, you get nothing then a black console window, no outpout, nothing, often times the indicator spins unlimited times, then fails with the error message:

“Could not get PID from running process. Process might still be running in the background.”

Error: Error dialog shown: Could not get PID from running process. Process might still be running in the background.
    at show (environment-default.js:34252)
    at environment-default.js:25266
    at environment-default.js:30816
    at finish (environment-default.js:30805)
    at cleanup (environment-default.js:30806)
    at Plugin.stop (environment-default.js:30815)
    at stop (environment-default.js:25266)
    at runNow (environment-default.js:25243)
    at HTMLInputElement.<anonymous> (environment-default.js:25347)

If the pid error does not show up, nothing happens on the front-end & you get the following error in the javascript console.

[netproxy] { Error: listen EADDRINUSE
    at Object.exports._errnoException (util.js:1012:11)
    at exports._exceptionWithHostPort (util.js:1035:20)
    at Server._listen2 (net.js:1252:14)
    at listen (net.js:1288:10)
    at net.js:1398:9
    at _combinedTickCallback (internal/process/next_tick.js:77:11)
    at process._tickCallback (internal/process/next_tick.js:98:9)
  code: 'EADDRINUSE',
  errno: 'EADDRINUSE',
  syscall: 'listen',
  address: '',
  port: 9001 }

This mainly happens after you used the PHP Runner (built in webserver)

Someone had the exact same problem: Cannot run PHP cli script

The only way in preventing / resetting this bug behaviour is to restart the EC2 instance or resetting your workspace, then the debugger starts working again for 1-2 times and then starts failing and bringing up the same problem again.

Executing the files with the terminal itself using php test.php of course works just fine, no problems there.

Simple test code used:


print('Hello, World!');

echo 'test';