Skip to content

Commit

Permalink
bmessage: use regex breakpoint to match category
Browse files Browse the repository at this point in the history
Resolves #57
  • Loading branch information
kastiglione committed Dec 4, 2014
1 parent 1b45488 commit 0b668f8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion commands/FBDebugCommands.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ def run(self, arguments, options):

breakpointClassName = objc.class_getName(nextClass)
breakpointFullName = '{}[{} {}]'.format(methodTypeCharacter, breakpointClassName, selector)
breakpointPattern = '{}\[{}(\(.+\))? {}\]'.format(methodTypeCharacter, breakpointClassName, selector)

breakpointCondition = None
if targetIsClass:
Expand All @@ -145,7 +146,7 @@ def run(self, arguments, options):

print 'Setting a breakpoint at {} with condition {}'.format(breakpointFullName, breakpointCondition)

lldb.debugger.HandleCommand('breakpoint set --fullname "{}" --condition "{}"'.format(breakpointFullName, breakpointCondition))
lldb.debugger.HandleCommand('breakpoint set --func-regex "{}" --condition "{}"'.format(breakpointPattern, breakpointCondition))

def classItselfImplementsSelector(klass, selector):
thisMethod = objc.class_getInstanceMethod(klass, selector)
Expand Down

0 comments on commit 0b668f8

Please sign in to comment.