Fixes #250 - Can't pass in command line args to the iOS application
Thanks to https://github.com/dot-asm
This commit is contained in:
parent
66ca97ef12
commit
baa524eda5
@ -34,7 +34,9 @@ def run_command(debugger, command, result, internal_dict):
|
|||||||
lldb.target.modules[0].SetPlatformFileSpec(lldb.SBFileSpec(device_app))
|
lldb.target.modules[0].SetPlatformFileSpec(lldb.SBFileSpec(device_app))
|
||||||
args_arr = []
|
args_arr = []
|
||||||
if len(args) > 1:
|
if len(args) > 1:
|
||||||
args_arr = shlex.split(args[1] and args[1] or '{args}')
|
args_arr = shlex.split(args[1])
|
||||||
|
else:
|
||||||
|
args_arr = shlex.split('{args}')
|
||||||
lldb.target.Launch(lldb.SBLaunchInfo(args_arr), error)
|
lldb.target.Launch(lldb.SBLaunchInfo(args_arr), error)
|
||||||
lockedstr = ': Locked'
|
lockedstr = ': Locked'
|
||||||
if lockedstr in str(error):
|
if lockedstr in str(error):
|
||||||
|
Loading…
Reference in New Issue
Block a user