Comments (2)
Hi @asgeo1, to force a crash, you could add a button and method to your app directly to throw an exception or assertion failure. For example, in Swift:
let items = [1, 2, 3]
let item = items[5]
or Objective-C:
NSArray* items = @[@1, @2, @3];
NSNumber* item = items[5];
will cause the app to crash, and when bugsnag is configured correctly, the next successful launch of the app will then send the error reports generated.
from bugsnag-cocoa.
Hi @kattrali,
Yes, I know I can do that. I was more thinking from the point of view that having a method to force a crash would just be easy and handy.
I guess I was coming from Crashlytics and they have a [[Crashlytics sharedInstance] crash];
method, which I always found useful.
from bugsnag-cocoa.
Related Issues (20)
- `Bugsnag.featureFlags()` returning `nil` HOT 1
- Calling NSProcessInfo.thermalState from an app with bugsnag installed crashes with _os_unfair_lock_recursive_abort HOT 3
- Bugsnag build phase script to auto upload dsym with Xcode 14 failed to upload HOT 12
- Will this pop up infinitely? HOT 1
- Swift Command-Line Failure to Upload HOT 3
- App builds in Xcode 14.3 beta fail with Use of undeclared identifier '_PTHREAD_MUTEX_SIG_init' HOT 3
- Loadconfig memory leak HOT 3
- Uploading dSYM seems to not working using Build phase script manually HOT 3
- [BSGAppHangDetector startWithDelegate:] crash HOT 6
- Bugsnag does not compile for visionOS with Xcode 15 Beta 2 HOT 2
- Duplicate library warning in Xcode 15 Beta HOT 7
- Support unhandled Kotlin Native Exceptions HOT 1
- App crashes when trying to start Bugsnag on Watch app HOT 1
- Bugsnag keep user data after logout in crash reports HOT 2
- Apple's update to their API policy about Privacy Manifest HOT 6
- OWASP: Buffer Overflow Vulnerabilities HOT 1
- Privacy manifest causing collisions through CocoaPods HOT 2
- Apple Report Missing API declaration HOT 2
- StartWithConfig memory leak HOT 5
- NSPrivacyAccessedAPICategoryDiskSpace : Missing API declaration HOT 10
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bugsnag-cocoa.