Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tabs and debuging #56

Closed
ZherebcovSergey opened this issue Dec 9, 2013 · 4 comments
Closed

Tabs and debuging #56

ZherebcovSergey opened this issue Dec 9, 2013 · 4 comments

Comments

@ZherebcovSergey
Copy link

At once want to apologize for my bad English. When I debugging my code with Xdebug I find problems with tabs in Sublime text 3. When I move with Xdebug breakpoints, it's unable to save tab (Xdebug) in it's position. When I use both tabs nearby, Xdebug tabs jump into new one. When I use Xdebug tabs down in main tab and active tab is Xdebug tab, situation repeated.

OS: Ubuntu 12.04. Sublime text 3, build 3047. Xdebug 2.1.0

@martomo
Copy link
Owner

martomo commented Dec 9, 2013

From what I understand you would like to customize the position of your Xdebug views (tabs).

You can either set disable_layout: true and it does not change your layout and will open all Xdebug views (tabs) in active group/window.

Or if you would like to use the debug layout, you can set the group/index for Xdebug views (tabs) with the breakpoint_group, breakpoint_index, context_group, context_index, stack_group, stack_index, watch_group, watch_index settings.

In case you want to customize the debugging layout, re-adjust the layout in Sublime Text to your liking and then in console ( CTRL+</kbd> ) you type window.get_layout()and set that value as yourdebug_layout`.

@ZherebcovSergey
Copy link
Author

Excuise me, but I don't understand one thing. When I enter command in console I receive:

window.get_layout()
{'rows': [0.0, 1.0], 'cells': [[0, 0, 1, 1]], 'cols': [0.0, 1.0]}

But I can't change any of this positions... When I entered in console:
disable_layout: true
"disable_layout": true
"disable_layout":"true"
disable_layout:"true"
I have message:
SyntaxError: invalid syntax

Another way:

"disable_layout:" "true"
'disable_layout:true'

works, but it does not solve my problem...

First image - what I want to see when I move throw breakpoints:
first

but it turns:
second

@martomo
Copy link
Owner

martomo commented Dec 10, 2013

You should set the configuration in your Xdebug.sublime-settings, Tools / Xdebug / Settings - User.
An example of how you would set the configuration:

{
  "disable_layout": false,
}

Please see the README for more details on what are the available settings and another example of Xdebug.sublime-settings.

@ZherebcovSergey
Copy link
Author

Very thank you, helped me very much!

@martomo martomo closed this as completed Dec 10, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants