Kindari / SublimeXdebug

Xdebug Interface for Sublime Text 2
Other
367 stars 66 forks source link

Configure browser #19

Open robsonpeixoto opened 12 years ago

robsonpeixoto commented 12 years ago

Please, put the option to configure the browser.

thanks

jotson commented 12 years ago

What do you mean?

robsonpeixoto commented 12 years ago

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 commented 12 years ago

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

It can be helpful

jotson commented 12 years ago

Thanks.

drebroff commented 12 years ago

How I should register on Fedora Linux?

robsonpeixoto commented 12 years ago

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

I don't have Linux to test

drebroff commented 12 years ago

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

robsonpeixoto commented 12 years ago

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

thezuberat commented 12 years ago

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 commented 12 years ago

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

trylas commented 11 years ago

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