ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Sublime​GDB

by quarnster ALL

GDB integration with Sublime Text 2

Details

  • 2022.04.16.18.37.47
  • github.​com
  • github.​com
  • 2 years ago
  • 20 minutes ago
  • 12 years ago

Installs

  • Total 40K
  • Win 16K
  • Mac 8K
  • Linux 16K
Apr 18 Apr 17 Apr 16 Apr 15 Apr 14 Apr 13 Apr 12 Apr 11 Apr 10 Apr 9 Apr 8 Apr 7 Apr 6 Apr 5 Apr 4 Apr 3 Apr 2 Apr 1 Mar 31 Mar 30 Mar 29 Mar 28 Mar 27 Mar 26 Mar 25 Mar 24 Mar 23 Mar 22 Mar 21 Mar 20 Mar 19 Mar 18 Mar 17 Mar 16 Mar 15 Mar 14 Mar 13 Mar 12 Mar 11 Mar 10 Mar 9 Mar 8 Mar 7 Mar 6 Mar 5 Mar 4
Windows 0 1 2 1 4 3 2 3 3 1 1 3 2 2 3 0 3 4 6 6 4 2 5 4 4 0 2 1 3 4 3 0 7 0 4 6 3 1 1 1 5 2 4 2 7 1
Mac 0 0 2 1 2 0 0 1 0 0 0 0 0 0 0 0 1 2 0 0 0 0 0 0 0 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 2 1 0
Linux 0 0 1 0 0 0 1 2 5 0 1 0 0 0 0 3 0 1 0 0 1 2 1 0 1 0 0 1 0 1 0 2 0 0 2 0 0 3 2 0 0 1 0 1 2 0

Readme

Source
raw.​githubusercontent.​com

Description

GDB plugin for Sublime Text 2. Filing issues are not welcome (and thus disabled). Pull requests please.

Installation

  1. The easiest way to install SublimeGDB is via the excellent Package Control Plugin
    1. See http://wbond.net/sublime_packages/package_control/installation
      1. Once package control has been installed, bring up the command palette (cmd+shift+P or ctrl+shift+P)
      2. Type Install and select "Package Control: Install Package"
      3. Select SublimeGDB from the list. Package Control will keep it automatically updated for you
    2. If you don't want to use package control, you can manually install it
      1. Go to your packages directory and type:
        1. git clone https://github.com/quarnster/SublimeGDB SublimeGDB
  2. Back in the editor, open up the command palette by pressing cmd+shift+P or ctrl+shift+P
  3. Type SublimeGDB and open up the settings file you want to modify

Usage

See the default key bindings and the default mouse map.

In short:

  • Open up the default settings via the command palette and begin typing SublimeGDB and select the Default SublimeGDB preferences.
  • See what options are available, and open up the User SublimeGDB preferences to tweak any values
  • If you have multiple projects, you most likely want to put project specific setting in your project file, with a prefixed "sublimegdb_". See the comments at the top of the default SublimeGDB preferences for an example.
  • If you have multiple executables in the same project, you can add a "sublimegdb_executables" setting to your project settings, and add an entry for each executable's settings.
  • Once you're all configured, you can toggle breakpoints with F9 (OSX Users might want to change the key binding, or disable the "Exposé and Spaces" key bindings in the System Preferences)
  • Launch with F5
  • Step over with F10
  • Step into with F11
  • Step out with Shift+F11
  • Click on the appropriate line in the GDB Callstack view to go to that stack frame
  • Click a variable in the GDB Variables view to show its children (if available)
  • Double click a variable in the GDB Variables view to modify its value
  • You can also access some commands by right clicking in any view

Show your support

Donate

License

This plugin is using the zlib license

Copyright (c) 2012 Fredrik Ehnbom

This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.

Permission is granted to anyone to use this software for any purpose,
including commercial applications, and to alter it and redistribute it
freely, subject to the following restrictions:

   1. The origin of this software must not be misrepresented; you must not
   claim that you wrote the original software. If you use this software
   in a product, an acknowledgment in the product documentation would be
   appreciated but is not required.

   2. Altered source versions must be plainly marked as such, and must not be
   misrepresented as being the original software.

   3. This notice may not be removed or altered from any source
   distribution.