我的应用程序出现了一些墓碑崩溃并想调试它:
要使用ndk-stack,首先需要一个包含应用程序共享库的符号版本的目录。如果使用NDK构建系统(ndk-build),这些共享库文件位于$ PROJECT_PATH / obj / local /下,代表设备的ABI。默认情况下,系统使用armeabi ABI。
答案 0 :(得分:2)
如果您在Android Studio项目中查找此目录,默认情况下您会在import yaml
class RDF:
def __init__(self):
self.test = "test"
def create_TDF(self):
tdf_file_names_new_list = {}
tdf_file_names_new_list['ID'] = ""
tdf_file_names_new_list['name'] = ""
varname = 'test'
test_name = 'test1'
test_type = 'single'
test_definition_data = dict(
testName = "",
innerFilterName = 'inner filter',
testType = "",
analysisType = "",
testInformation = {})
test_definition_data['testInformation']['p']={}
p_dict={}
p_dict['VarName'] = varname
p_dict['VFile'] = 'file'
p_dict['affected'] = 'T'
test_definition_data['testInformation']['p'] = p_dict
test_definition_data['testInformation']['m']={}
test_definition_data['testInformation']['m']['VarName']=varname
test_definition_data['analysisType'] = 'T'
test_definition_data['testName'] = test_name
# The "testType" value is what i want to display in "single quotes".
# tried str(row[3].value) -> output still does not display single quotes.
# if i change "yaml.safe_dump" statement below to ---> tdf_yaml_file.write(yaml.dump(test_definition_data)) then the output is ---> testType: !!python/unicode 'Hypotonia'
test_definition_data['testType'] = test_type
with open('TDF_1'+'.tdf',"w") as tdf_yaml_file:
tdf_yaml_file.write(yaml.safe_dump(test_definition_data,encoding='utf-8', allow_unicode=False))
#tdf_yaml_file.write(yaml.dump(test_definition_data))
tdf_yaml_file.close()
def main():
tdf = RDF()
tdf.create_TDF()
if __name__ == '__main__':
main()
下找到它。