GitXplorerGitXplorer
k

nudger

public
6 stars
0 forks
0 issues

Commits

List of commits on branch master.
Verified
818e60c8c8ea45108aa05ccf0f3980e24adb2264

Describe versions 1, 2, and 3 in readme

kkastiglione committed 7 years ago
Unverified
e66864601ec853b2883892dd2d8fdf465f2fcd76

Nudge last view when no view is provided

kkastiglione committed 7 years ago
Unverified
3c49f34ecc3df9b96386a52468a1aaa517d2427f

Support Swift input

kkastiglione committed 7 years ago
Unverified
c623fa02c66df6ea86bac156c62306b42e66a7f5

Initial nudger, lacks Swift support

kkastiglione committed 7 years ago
Verified
6ada8b16a47c37679f6bc40d80ca9641fb19dc0a

Initial commit

kkastiglione committed 7 years ago

README

The README file for this repository.

nudger

Nudger: Example LLDB Python Command

At the 2018 WWDC, the Advanced Debugging with Xcode and LLDB talk demonstrated an lldb command called nudge. While the talk demonstrates the use of nudge, it doesn't cover any of its implementation, but the source code for nudge is provided.

Having maintained and written a number of lldb commands, I have thoughts on how to get started writing lldb commands. This repo is not documentation on how to get started, but it provides a few simple and minimal versions, showing how to start a command like nudge, and then adding some features.

Step 1: Core functionality, ObjC only

The first version is a small amount of code that does the basics, but supports ObjC only.

Step 2: Add Swift support

The second version adds support for Swift. (diff)

Step 3: Remember and reuse last view

The third version adds the feature that remembers the last nudged view, and applies the nudge to it. For example, nudger 0 -10 moves the last nudged view up by 10 points. (diff)