0

I'm using Sublime Text 3.

When I go to Tools -> Xdebug -> Start Debugging (Launch Browser), Internet Explorer launches, although I have set Google Chrome to be my default browser in Windows 10 Settings.

I tried looking into Sublime Text settings files but I did not find anything concerning default browsers.

Is there a way to fix it?

1 Answer 1

2

XDebug Client (which I assume you're using) uses Python's webbrowser module to launch your browser. Apparently, something is wrong with your Windows setup, or the way the default browser is defined has changed, as webbrowser's default functionality isn't working. You can try it by opening Sublime's console (View -> Show Console or Ctrl`) and entering the following code:

import webbrowser; webbrowser.open("https://www.google.com")

I would imagine based on your problem that IE will open.

The only way I know of to get around this, short of modifying the code for XDebug, is to set the BROWSER environment variable to the complete path to the Chrome executable. Once you do that, completely restart Sublime, reconnect to your PHP server, and see if Chrome now works. You can also try the above code again.

Good luck!

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.