Reputation: 97
Hi I'm pretty new in PHP (btw experienced with C#) and trying to debug a PHP project in the Cloud9 Online editor. I'running my PHP file through the "PHP build-in server", but I can not figure out what the url is, through which I can see my application in the browser. Anyone?
Upvotes: 3
Views: 820
Reputation: 196
I'm the Cloud9 developer who wrote our Xdebug integration. Let me give this a shot:
When you run a local server on your workspace, there's a tunnel on https://<project-name>-<username>.c9.io/
from where you can access your app in the browser. The local server needs to run on port 8080
for that to work, but better use the $PORT
env var. If you use the built-in runners, that should work out of the box.
Alternatively, choose Preview > Preview Running App. Or click the Share button and the URL is shown in the share dialog.
Usually, there's also a message which pops up in the top-right of the terminal window that shows you the link and is clickable.
Hope that helps.
Upvotes: 4