-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlldb-command
21 lines (21 loc) · 876 Bytes
/
lldb-command
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
process attach --name "constraint-error-ci-example" --waitfor
br set -n UIViewAlertForUnsatisfiableConstraints --auto-continue true
br command add -s python
import os
thread = frame.GetThread()
file_name = os.environ["GITHUB_WORKSPACE"] + "/brokenConstraints.txt"
print(file_name)
f = open(file_name, 'a+')
for fr in thread.frames:
fileName = fr.GetLineEntry().GetFileSpec().GetFilename()
variable = fr.FindVariable("self").GetName()
baseClassName = fr.FindVariable("self").GetType().GetDirectBaseClassAtIndex(0).GetName()
if baseClassName is not None and "XCTestCase" in baseClassName:
functionName = fr.GetFunctionName()
moduleName = fr.GetModule().GetFileSpec().GetFilename()
output = "Module: " + moduleName + ", file: " + fileName + ", function: " + functionName + "\n"
f.write(output)
f.close()
return False
DONE
continue