- Запустите Python Debugger (pdb) в Sublime Text 3
- Sublime Text Python Breakpoints
- Features
- Screenshot
- Install
- Usage
- Settings
- Caveats
- Saved searches
- Use saved searches to filter your results more quickly
- gosku/PythonBreakpoints2
- Name already in use
- Sign In Required
- Launching GitHub Desktop
- Launching GitHub Desktop
- Launching Xcode
- Launching Visual Studio Code
- Latest commit
- Git stats
- Files
- README.md
- About
- Saved searches
- Use saved searches to filter your results more quickly
- felipeespic/PythonBreakpoints2
- Name already in use
- Sign In Required
- Launching GitHub Desktop
- Launching GitHub Desktop
- Launching Xcode
- Launching Visual Studio Code
- Latest commit
- Git stats
- Files
- README.md
- About
Запустите Python Debugger (pdb) в Sublime Text 3
Как вы можете установить отладчик python (pdb) точки останова в Sublime Text 3?
Оба SublimeREPL или точки останова Python терпят неудачу по умолчанию:
print "hello" # code runs fine without this breakpoint import pdb; pdb.set_trace() print "bye" >>>File "C:\Python27\lib\bdb.py", line 49, in trace_dispatch >>>return self.dispatch_line(frame) >>>File "C:\Python27\lib\bdb.py", line 68, in dispatch_line >>>if self.quitting: raise BdbQuit
Выше выдается документально, но без видимых исправлений. Или ответ смотрел на меня?
Плагин точки останова Python и проверьте эту ссылку Отладчик точки останова Python
Используйте ctrl + shift + b для переключения точки останова в строке
Но это не предпочтительное решение для отладки программного обеспечения с помощью текстового редактора.
Существуют лучшие IDE, которые облегчают вашу разработку
Вы можете попробовать использовать IDE, специфичную для Python, что делает отладку и настройку проектов python очень легкими. Я бы порекомендовал вам попробовать бесплатную версию сообщества Pycharm.
Если вы не хотите иметь дело с дополнительными пакетами, вы можете создать фрагмент, чтобы установить для вас точку останова.
pdb source.python Insert a breakpoint
Приведенный выше фрагмент будет срабатывать всякий раз, когда вы набираете pdb в своем коде.
Инструкции на Mac
- Перейдите в Инструменты → Разработчик → Новый фрагмент
- Замените шаблон фрагментом выше
- Сохраните фрагмент в ~/Library/Поддержка приложений /Sublime Text 3/Пакеты/Пользователь
- Убедитесь, что имя оканчивается на sublime-snippet (например, breakpoint.sublime-snippet)
Он должен начать работать сразу после сохранения.
Sublime Text Python Breakpoints
This is a Sublime Text plugin allowing to quickly set Python breakpoints by injecting set_trace() call of pdb or other debugger of your choice.
Features
- breakpoint color highlighting, gutter icons
- auto indentation, auto save on toggle (off by default, configurable)
- your source file stores all breakpoints; plugin detects and recreates them on next load
- support for user comments to help navigate among many breakpoints
Screenshot
Install
Command Palette > Package Control: Install Package > Python Breakpoints
From GitHub: Clone this repository into your version/platform specific Packages directory. Example for Mac and ST2 (note the space in the target directory name):
cd ~/Library/Application Support/Sublime Text 2/Packages git clone https://github.com/obormot/PythonBreakpoints 'Python Breakpoints'
Usage
Command Palette > Python Breakpoints: .
- Toggle a breakpoint at current line (or ctrl+shift+b )
- Goto a selected breakpoint (or ctrl+shift+g , or Menu > Goto > Goto Python Breakpoint. )
- Clear All breakpoints in current file (or Menu > Tools > Breakpoints > Clear All Python Breakpoints )
If one or multiple lines of code are selected, the Toggle command will wrap the selected lines in a try-except statement and a new breakpoint will be added under the except: section.
Settings
Preferences > Package Settings > Python Breakpoints
Caveats
- only space indentation is supported
- in some code fragments the plugin may incorrectly indent the breakpoint; in such cases just use Indent/Unindent keyboard shortcuts to move it into desired position
Saved searches
Use saved searches to filter your results more quickly
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.
Sublime Text plugin to set Python breakpoints
gosku/PythonBreakpoints2
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Sign In Required
Please sign in to use Codespaces.
Launching GitHub Desktop
If nothing happens, download GitHub Desktop and try again.
Launching GitHub Desktop
If nothing happens, download GitHub Desktop and try again.
Launching Xcode
If nothing happens, download Xcode and try again.
Launching Visual Studio Code
Your codespace will open once ready.
There was a problem preparing your codespace, please try again.
Latest commit
Git stats
Files
Failed to load latest commit information.
README.md
Sublime Text Python Breakpoints
This is a Sublime Text plugin allowing to quickly set Python breakpoints by injecting set_trace() call of pdb or other debugger of your choice.
- breakpoint color highlighting, gutter icons
- auto indentation, auto save on toggle (off by default, configurable)
- your source file stores all breakpoints; plugin detects and recreates them on next load
- support for user comments to help navigate among many breakpoints
Command Palette > Package Control: Install Package > Python Breakpoints
From GitHub: Clone this repository into your version/platform specific Packages directory. Example for Mac and ST2 (note the space in the target directory name):
cd ~/Library/Application Support/Sublime Text 2/Packages git clone https://github.com/obormot/PythonBreakpoints 'Python Breakpoints'
Command Palette > Python Breakpoints: .
- Toggle a breakpoint at current line (or ctrl+shift+b )
- Goto a selected breakpoint (or ctrl+shift+g , or Menu > Goto > Goto Python Breakpoint. )
- Clear All breakpoints in current file (or Menu > Tools > Breakpoints > Clear All Python Breakpoints )
If one or multiple lines of code are selected, the Toggle command will wrap the selected lines in a try-except statement and a new breakpoint will be added under the except: section.
Preferences > Package Settings > Python Breakpoints
- only space indentation is supported
- in some code fragments the plugin may incorrectly indent the breakpoint; in such cases just use Indent/Unindent keyboard shortcuts to move it into desired position
About
Sublime Text plugin to set Python breakpoints
Saved searches
Use saved searches to filter your results more quickly
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.
Sublime Text plugin to set Python breakpoints
felipeespic/PythonBreakpoints2
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Sign In Required
Please sign in to use Codespaces.
Launching GitHub Desktop
If nothing happens, download GitHub Desktop and try again.
Launching GitHub Desktop
If nothing happens, download GitHub Desktop and try again.
Launching Xcode
If nothing happens, download Xcode and try again.
Launching Visual Studio Code
Your codespace will open once ready.
There was a problem preparing your codespace, please try again.
Latest commit
Git stats
Files
Failed to load latest commit information.
README.md
Sublime Text Python Breakpoints
This is a Sublime Text plugin allowing to quickly set Python breakpoints by injecting set_trace() call of pdb or other debugger of your choice.
- breakpoint color highlighting, gutter icons
- auto indentation, auto save on toggle (off by default, configurable)
- your source file stores all breakpoints; plugin detects and recreates them on next load
- support for user comments to help navigate among many breakpoints
Command Palette > Package Control: Install Package > Python Breakpoints
From GitHub: Clone this repository into your version/platform specific Packages directory. Example for Mac and ST2 (note the space in the target directory name):
cd ~/Library/Application Support/Sublime Text 2/Packages git clone https://github.com/obormot/PythonBreakpoints 'Python Breakpoints'
Command Palette > Python Breakpoints: .
- Toggle a breakpoint at current line (or ctrl+shift+b )
- Goto a selected breakpoint (or ctrl+shift+g , or Menu > Goto > Goto Python Breakpoint. )
- Clear All breakpoints in current file (or Menu > Tools > Breakpoints > Clear All Python Breakpoints )
If one or multiple lines of code are selected, the Toggle command will wrap the selected lines in a try-except statement and a new breakpoint will be added under the except: section.
Preferences > Package Settings > Python Breakpoints
- only space indentation is supported
- in some code fragments the plugin may incorrectly indent the breakpoint; in such cases just use Indent/Unindent keyboard shortcuts to move it into desired position
About
Sublime Text plugin to set Python breakpoints