Skip to content

Commit

Permalink
Specify 'remote_autostart' for macOS to consolidate session initializ…
Browse files Browse the repository at this point in the history
…ation with Linux.

When XDEBUG_CONFIG environment variable is defined Xdebug will automatically start a session, despite 'XDEBUG_SESSION_START' being specified or not.
On Linux both 'remote_host' and 'remote_log' are specified in XDEBUG_CONFIG whereas macOS just has INI configuration which resulted in different methods for initiating a debugging session.
  • Loading branch information
martomo committed Nov 28, 2019
1 parent a4ae196 commit 6f48d8c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ jobs:
- |
XDEBUG_INI_FILE=/usr/local/etc/php/${PHP_VERSION}/conf.d/ext-xdebug.ini
echo "xdebug.remote_enable=1" >> $XDEBUG_INI_FILE
echo "xdebug.remote_autostart=1" >> $XDEBUG_INI_FILE
echo "xdebug.remote_host=127.0.0.1" >> $XDEBUG_INI_FILE
echo "xdebug.remote_port=9000" >> $XDEBUG_INI_FILE
echo "xdebug.remote_handler=dbgp" >> $XDEBUG_INI_FILE
Expand Down
2 changes: 1 addition & 1 deletion xdebug/unittesting.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ def get_xdebug_setting(self, key):
def run_command(self, *args, **kwargs):
sublime.active_window().run_command(*args, **kwargs)

def send_server_request(self, path='', params='XDEBUG_SESSION_START=1'):
def send_server_request(self, path='', params=''):
if isinstance(params, dict):
params = urlencode(params)
query_string = '?' + params if len(params) else ''
Expand Down

0 comments on commit 6f48d8c

Please sign in to comment.