Python
Sample
Installation
python -m venv venv# unix/macos
source venv/bin/activate
# windows
.\env\Scripts\activatepip install bugsplatUsage
from bugsplat import BugSplat
Last updated
Was this helpful?
python -m venv venv# unix/macos
source venv/bin/activate
# windows
.\env\Scripts\activatepip install bugsplatfrom bugsplat import BugSplat
Last updated
Was this helpful?
Was this helpful?
bugsplat = BugSplat(database, application, version)bugsplat.set_default_app_key('key!')
bugsplat.set_default_description('description!')
bugsplat.set_default_email('[email protected]')
bugsplat.set_default_user('Fred')
bugsplat.set_default_additional_file_paths([
'./path/to/additional-file.txt',
'./path/to/additional-file-2.txt'
])try:
crash()
except Exception as e:
bugsplat.post(
e,
additional_file_paths=[],
app_key='other key!',
description='other description!',
email='[email protected]',
user='Barney'
)