Open robsonpeixoto opened 12 years ago
What do you mean?
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.
With it webbrowser.register("chrome", None, webbrowser.MacOSXOSAScript("Google Chrome"), -1); you can register the chrome on Mac.
It can be helpful
Thanks.
How I should register on Fedora Linux?
Try webbrowser.register("chrome", '/usr/bin/google-chrome %s')
I don't have Linux to test
I doesn't seem like a bash command. Where i should enter it?
I think is better read this code. http://hg.python.org/releasing/2.7.3/file/7bb96963d067/Lib/webbrowser.py
Where can add this setting/code line: webbrowser.register("chrome", '/usr/bin/google-chrome %s') ?? Into the project file?
I work on Win7 64bit?
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
I would like to debug with chromium on Linux Mint ... where should I register this browser?
Please, put the option to configure the browser.
thanks