Git Product home page Git Product logo

tuna's Introduction

Tuna

public beta version

Xcode plugin that provides easy set breakpoint with action.

Feature

  • fast setting breakpoit with action
  • auto import Foundation and UIKit in LLDB (TODO)

Usage

Set breakpoint with backtrace action

  1. You will move the cursor to the location where you want to output backtrace.
  2. You press the shortcut key(Command + Shift + ;) or the menu(Debug -> Tuna -> Set Backtrace Breakpoint)

Capture

Set breakpoint with print action

  1. You select the variable that You want to output.
  2. You press the shortcut key(Command + Shift + ') or the menu(Debug -> Tuna -> Set Print Breakpoint)

in the case of select cell.textLabel.text

Capture

Set Breakpoint with Input Message

  1. You press the shortcut key(Ctrl + Shift + ') or the menu(Debug -> Tuna -> Toggle Breakpoint)

Set Breakpoint with Input Command

  1. You press the shortcut key(Ctrl + Shift + ") or the menu(Debug -> Tuna -> Toggle Breakpoint)

Toggle Breakpoint

  1. You press the shortcut key(Ctrl + Shift + [) or the menu(Debug -> Tuna -> Toggle Breakpoint)

Clear All File Breakpoint

  1. You press the shortcut key(Ctrl + Shift + ]) or the menu(Debug -> Tuna -> Clear All File Breakpoint)

Installation

Download the project and build it, and then relaunch Xcode. Tuna will be installed in ~/Library/Application Support/Developer/Shared/Xcode/Plug-ins automatically.

If you want to uninstall, remove Tuna.xcplugin in the Plug-ins directory.

Requirements

  • Xcode 6.0+


Customize shortcuts

XVim

~/.xvimrc

vnoremap <enter> :xcmenucmd Set Print Breakpoint<CR>
noremap \<enter> :xcmenucmd Set Backtrace Breakpoint<CR>

System Preferences

Capture

shortcut word

  • 「Debug->Tuna->Set Backtrace Breakpoint」
  • 「Debug->Tuna->Set Print Breakpoint」

Contact

Creator

Changes

See Releases.

License

Tuna is released under the MIT license. See LICENSE for details.

tuna's People

Contributors

86 avatar dealforest avatar es-kumagai avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

tuna's Issues

I sent PR #20, but it may not be a good way.

I sent a PR #20.
But I think the PR may not be a good way.

Frameworks that want to import may be different by Project each. It doesn't make sense to import a lot of frameworks that is not used by current Project. Some frameworks that specified by the import list may not be present in the current Project.

I think this feature is used to want to import a framework linked to current project. After so, it may not be appropriate to have the import list in Preferences as a common settings.

When no variable is selected on Cmd+Shift+', prompt for text input

Hi @dealforest, thanks for creating this plugin!

I'm trying to solve a very similar problem, getting rid of printlns in my codebase by replacing with log-and-continue breakpoints. I asked about it on StackOverflow.

Tuna gets me most of the way there with the Cmd+Shift+' action. However, sometimes I'm not interested in a variable's contents but just logging that I reached a point in code.

Does this sound like a useful feature to you?

Misplaced popovers

Using Xcode 6.4, when I set a breakpoint with input message, the popovers are misplaced if the debug area is visible and if it's hidden.

screen shot 2015-09-21 at 19 31 02
screen shot 2015-09-21 at 19 30 27

Is it working for Xcode 8?

I'm trying to install and when I open the project I got this error:
Apple Mach-O Linker (ld) Error Group
(null): No such file or directory: '/Applications/Xcode.app/Contents/PlugIns/DebuggerUI.ideplugin/Contents/MacOS/DebuggerUI'

Thank you in advance :)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.