5import isystem.connect
as ic
11def test_getSetIntUint():
12 connMgr = ic.ConnectionMgr()
13 connMgr.connect(ic.CConnectionConfig().instanceId(winidea_id))
15 optCtrl = ic.COptionController(connMgr,
"/IDE/System.Debug.Applications[0].SymbolFiles.File[0].Options")
17 value = optCtrl.get_int(
"CodeOffset")
18 print(f
"Original value of 'SymbolFiles.File[0].Options.CodeOffset' attribute: {value}")
20 print(f
"Setting new value (42)...")
21 optCtrl.set_uint(
"CodeOffset", 42)
23 print(f
"Restoring original value ({value})...")
24 optCtrl.set_int(
"CodeOffset", value)
26 value = optCtrl.get_uint(
"CodeOffset")
27 print(f
"Original value of 'SymbolFiles.File[0].Options.CodeOffset' attribute: {value}")
30if __name__ ==
"__main__":