Skip to content
This repository has been archived by the owner on Apr 6, 2021. It is now read-only.

C9 Xdebug - requires xdebug to be enable for PHP CLI #1

Open
postadelmaga opened this issue Mar 14, 2017 · 2 comments
Open

C9 Xdebug - requires xdebug to be enable for PHP CLI #1

postadelmaga opened this issue Mar 14, 2017 · 2 comments

Comments

@postadelmaga
Copy link

postadelmaga commented Mar 14, 2017

Please add to the note a runner example for C9 SDK.
And that you need PHP xdebug extension enabled for PHP CLI

This is the runner I use

{
    "cmd": [ "cat"  ],
    "selector": "^.*\\.(php|phar)$",
    "info": "Enabling xdebug",
    "working_dir": "$project_path",
    "debugger": "xdebug",
    "debugport": 9000,
    "env": {
        "XDEBUG_CONFIG": "\"idekey=cloud9ide remote_host=localhost remote_port=9000 remote_mode=req\""
    }
}

Thanks

@postadelmaga postadelmaga changed the title C9 Xdebug requires xdebug to be enable for php CLI C9 Xdebug - requires xdebug to be enable for PHP CLI May 9, 2017
@karlkras
Copy link

@postadelmaga , so I've been wrestling with how to start a laravel app session started with xdebug under c9. Will this do it? Sorry, I don't know much about how runners work in c9 so I can't tell.

@postadelmaga
Copy link
Author

@karlkras
Be sure to have xdebug correctly setup also for PHP CLI ( on some OS apache php and php cli has 2 different configuration file / modules )

Regarding the runner I don't know very much about them as well and I dropped the use of C9, mostly because Xdebug was not very stable (sometime it was working sometime not ).
... so I am sorry but I not able to help you further with that

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants