Skip to content

Instantly share code, notes, and snippets.

View jchackDragon's full-sized avatar

Juan Carlos López R. jchackDragon

View GitHub Profile
@jchackDragon
jchackDragon / lldb-debugging.md
Created April 15, 2017 17:16 — forked from alanzeino/lldb-debugging.md
LLDB debugging with examples

Commands

LLDB Commands

LLDB comes with a great set of commands for powerful debugging.

help

Your starting point for anything. Type help to get a list of all commands, plus any user installed ones. Type 'help <command-name> for more information on a command. Type help <command-name> <option> to get help for a specific option in a command too.

@jchackDragon
jchackDragon / Excerpt from PetProvider.java
Created October 4, 2016 10:43 — forked from udacityandroid/Excerpt from PetProvider.java
Pets app - Replace delete() method in PetProvider
@Override
public int delete(Uri uri, String selection, String[] selectionArgs) {
// Get writeable database
SQLiteDatabase database = mDbHelper.getWritableDatabase();
final int match = sUriMatcher.match(uri);
switch (match) {
case PETS:
// Delete all rows that match the selection and selection args
return database.delete(PetEntry.TABLE_NAME, selection, selectionArgs);