Skip to content

Commit

Permalink
crash_reports: add set_symbolicated
Browse files Browse the repository at this point in the history
  • Loading branch information
doronz88 committed Feb 28, 2022
1 parent d0d7c12 commit 978d2d3
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/rpcclient/rpcclient/darwin/crash_reports.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,15 @@ def __init__(self, client, crash_reports_dir):
self._client = client
self._crash_reports_dir = crash_reports_dir

def set_symbolicated(self, enabled: bool = True):
"""
enable/disable crash reports symbolication
https://github.com/dlevi309/Symbolicator
"""
with self._client.sc.get_preferences_object(
'/var/root/Library/Preferences/com.apple.CrashReporter.plist') as pref:
pref.set_dict({'SymbolicateCrashes': enabled})

def list(self, prefixed='') -> List[CrashReport]:
""" get a list of all crash reports as CrashReport parsed objects """
result = []
Expand Down

0 comments on commit 978d2d3

Please sign in to comment.