c9 / c9.ide.run.debug.xdebug

Cloud9 debugger plugin for Xdebug
MIT License
12 stars 11 forks source link

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

Open postadelmaga opened 7 years ago

postadelmaga commented 7 years ago

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

karlkras commented 6 years ago

@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 commented 6 years ago

@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