SublimeXdebug icon indicating copy to clipboard operation
SublimeXdebug copied to clipboard

Configure browser

Open robsonpeixoto opened this issue 12 years ago • 11 comments

Please, put the option to configure the browser.

thanks

robsonpeixoto avatar Jun 17 '12 18:06 robsonpeixoto

What do you mean?

jotson avatar Jun 17 '12 23:06 jotson

The possibility to choose between a specific navigator and not to choose the standard. For example: my default browser is Safari, but I use Chrome to debug.

I'd like to configure the chrome as my browser with xdebug.

robsonpeixoto avatar Jun 18 '12 03:06 robsonpeixoto

With it webbrowser.register("chrome", None, webbrowser.MacOSXOSAScript("Google Chrome"), -1); you can register the chrome on Mac.

It can be helpful

robsonpeixoto avatar Jun 19 '12 14:06 robsonpeixoto

Thanks.

jotson avatar Jun 19 '12 19:06 jotson

How I should register on Fedora Linux?

drebroff avatar Jul 19 '12 16:07 drebroff

Try webbrowser.register("chrome", '/usr/bin/google-chrome %s')

I don't have Linux to test

robsonpeixoto avatar Jul 19 '12 17:07 robsonpeixoto

I doesn't seem like a bash command. Where i should enter it?

drebroff avatar Jul 19 '12 17:07 drebroff

I think is better read this code. http://hg.python.org/releasing/2.7.3/file/7bb96963d067/Lib/webbrowser.py

robsonpeixoto avatar Jul 19 '12 22:07 robsonpeixoto

Where can add this setting/code line: webbrowser.register("chrome", '/usr/bin/google-chrome %s') ?? Into the project file?

I work on Win7 64bit?

thezuberat avatar Aug 01 '12 11:08 thezuberat

Nevermind I found the code. However if I try to replace:

webbrowser.open(url + '?XDEBUG_SESSION_START=sublime.xdebug')

with ie:

webbrowser.get('windows-default').open(url + '?XDEBUG_SESSION_START=sublime.xdebug')

or:

webbrowser.get('firefox').open(url + '?XDEBUG_SESSION_START=sublime.xdebug')

the start/stop debugging option doesn't work anymore. Anyone knows why? The reason why I want to change the browser is a bug: http://stackoverflow.com/questions/5916270/pythons-webbrowser-launches-ie-instead-of-default-on-windows-7

thezuberat avatar Aug 01 '12 12:08 thezuberat

I would like to debug with chromium on Linux Mint ... where should I register this browser?

trylas avatar Jun 06 '13 18:06 trylas