Skip to content

Commit

Permalink
Update settings documentation and correct misspelled words in comment…
Browse files Browse the repository at this point in the history
…s/README.
  • Loading branch information
martomo committed Jan 3, 2018
1 parent 4dc8df8 commit 0189ab2
Show file tree
Hide file tree
Showing 8 changed files with 20 additions and 20 deletions.
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Based on the Xdebug protocol functionality in [SublimeXdebug](https://github.com
* Works on both Sublime Text 2 __and__ 3

## Commands
Here is a complete list of commands you can find Command Pallette under the `Xdebug` namespace or in the menu under `Tools / Xdebug`:
Here is a complete list of commands you can find Command Palette under the `Xdebug` namespace or in the menu under `Tools / Xdebug`:

#### Start/Stop debugging session
* Start Debugging - <kbd>Ctrl+Shift+F9</kbd> or <kbd>⌘+Shift+F9</kbd>
Expand Down Expand Up @@ -72,7 +72,7 @@ Here is a complete list of commands you can find Command Pallette under the `Xde
## Installation

#### [Package Control](http://wbond.net/sublime_packages/package_control)
Execute __"Package Control: Install Package"__ in the Command Pallette to retrieve a list of available packages.
Execute __"Package Control: Install Package"__ in the Command Palette to retrieve a list of available packages.
Search in the list and install package `Xdebug Client`.

#### Git
Expand Down Expand Up @@ -121,9 +121,6 @@ _This package does not filter sessions by IDE key, it will accept any IDE key, a
*__port__*
Which port number Sublime Text should listen to connect with debugger engine.

*__super_globals__*
Show super globals in context view.

*__max_children__*
Maximum amount of array children and object's properties to return.

Expand All @@ -142,11 +139,14 @@ Break on exceptions, suspend execution when the exception name matches an entry
*__close_on_stop__*
Always close debug windows and restore layout on session stop.

*__super_globals__*
Show information about super globals in context view.

*__hide_password__*
Do not show possible password values in context output.
Do not show possible password values in context view.

*__pretty_output__*
Show in output parsed response instead of raw XML.
Render evaluated result as parsed output instead of raw XML.

*__launch_browser__*
Always launch browser on session start/stop.
Expand Down
10 changes: 5 additions & 5 deletions Xdebug.sublime-settings
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,6 @@
// to connect with debugger engine.
"port": 9000,

// Show super globals in context view.
"super_globals": true,

// Maximum amount of array children
// and object's properties to return.
"max_children": 32,
Expand Down Expand Up @@ -73,10 +70,13 @@
// Always close debug windows and restore layout on session stop.
"close_on_stop": false,

// Do not show possible password values in context output.
// Show information about super globals in context view.
"super_globals": true,

// Do not show possible password values in context view.
"hide_password": false,

// Show in output parsed response instead of raw XML.
// Render evaluated result as parsed output instead of raw XML.
"pretty_output": false,

// Always launch browser on session start/stop.
Expand Down
2 changes: 1 addition & 1 deletion xdebug/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def get_project_value(key, default_value=None):
"""
Get value from project configuration settings.
"""
# Load project coniguration settings
# Load project configuration settings
try:
load_project_values()
except RuntimeError:
Expand Down
4 changes: 2 additions & 2 deletions xdebug/dbgp.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
CONTEXT_ID_USER_DEFINED = 2

"""
Extendend commands
Extended commands
"""
SOURCE = 'source'
STDERR = 'stderr'
Expand Down Expand Up @@ -149,7 +149,7 @@
INIT_FILEURI = 'fileuri'

"""
Breakpoint atrributes
Breakpoint attributes
"""
BREAKPOINT_TYPE = 'type'
BREAKPOINT_FILENAME = 'filename'
Expand Down
2 changes: 1 addition & 1 deletion xdebug/load.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def xdebug():
package = package[:-len(package_extension)]
if (package.lower().count("xdebug") or package.lower().count("moai")) and package != current_package:
conflict.append(package)
# Show message if conficting packages have been found
# Show message if conflicting packages have been found
if conflict:
info("Conflicting packages detected.")
debug(conflict)
Expand Down
2 changes: 1 addition & 1 deletion xdebug/protocol.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ def send(self, command, *args, **kwargs):
# Expression is used for conditional and watch type breakpoints
expression = None

# Seperate 'expression' from kwargs
# Separate 'expression' from kwargs
if 'expression' in kwargs:
expression = kwargs['expression']
del kwargs['expression']
Expand Down
4 changes: 2 additions & 2 deletions xdebug/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@
KEY_URL = "url"
KEY_IDE_KEY = "ide_key"
KEY_PORT = "port"
KEY_SUPER_GLOBALS = "super_globals"
KEY_MAX_CHILDREN = "max_children"
KEY_MAX_DATA = "max_data"
KEY_MAX_DEPTH = "max_depth"
KEY_BREAK_ON_START = "break_on_start"
KEY_BREAK_ON_EXCEPTION = "break_on_exception"
KEY_CLOSE_ON_STOP = "close_on_stop"
KEY_SUPER_GLOBALS = 'super_globals'
KEY_HIDE_PASSWORD = "hide_password"
KEY_PRETTY_OUTPUT = "pretty_output"
KEY_LAUNCH_BROWSER = "launch_browser"
Expand Down Expand Up @@ -86,7 +86,7 @@
BREAKPOINT_EXCEPTION = None
# Breakpoint line number in script being debugged
BREAKPOINT_ROW = None
# Placholder for temporary breakpoint filename and line number
# Placeholder for temporary breakpoint filename and line number
BREAKPOINT_RUN = None
# Will hold breakpoint line number to show for file which is being loaded
SHOW_ROW_ONLOAD = {}
Expand Down
2 changes: 1 addition & 1 deletion xdebug/view.py
Original file line number Diff line number Diff line change
Expand Up @@ -537,7 +537,7 @@ def show_content(data, content=None):
view.settings().set('word_wrap', False)
view.settings().set('syntax', 'Packages/' + package + '/Xdebug.tmLanguage')

# Set content for view and fold all indendation blocks
# Set content for view and fold all indentation blocks
view.run_command('xdebug_view_update', {'data': content, 'readonly': True})
if data == DATA_CONTEXT or data == DATA_WATCH:
view.run_command('fold_all')
Expand Down

0 comments on commit 0189ab2

Please sign in to comment.