Skip to content

Commit

Permalink
Expose publicly the properties in BugsnagStackframe
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert committed Feb 10, 2025
1 parent 18ae095 commit 829bda2
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 3 deletions.
3 changes: 0 additions & 3 deletions Bugsnag/BugsnagInternals.h
Original file line number Diff line number Diff line change
Expand Up @@ -208,10 +208,7 @@ typedef void (^ BSGClientObserver)(BSGClientObserverEvent event, _Nullable id va
+ (instancetype)frameFromJson:(NSDictionary *)json;

@property (copy, nullable, nonatomic) NSString *codeIdentifier;
@property (strong, nullable, nonatomic) NSNumber *columnNumber;
@property (copy, nullable, nonatomic) NSString *file;
@property (strong, nullable, nonatomic) NSNumber *inProject;
@property (strong, nullable, nonatomic) NSNumber *lineNumber;

/// Populates the method and symbolAddress via `dladdr()` if this object was created from a backtrace or callstack.
/// This can be a slow operation, so should be performed on a background thread.
Expand Down
15 changes: 15 additions & 0 deletions Bugsnag/include/Bugsnag/BugsnagStackframe.h
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,21 @@ BUGSNAG_EXTERN
*/
@property (copy, nullable, nonatomic) BugsnagStackframeType type;

/**
* The file of the stackframe
*/
@property (copy, nullable, nonatomic) NSString *file;

/**
* The line number of the stackframe
*/
@property (strong, nullable, nonatomic) NSNumber *lineNumber;

/**
* The column number of the stackframe
*/
@property (strong, nullable, nonatomic) NSNumber *columnNumber;

/**
* Creates an array of stackframe objects representing the provided call stack.
*
Expand Down
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
Changelog
=========

## TBD

### Enhancements

* Added `file`, `lineNumber` and `columnNumber` properties to `BugsnagStackframe` public header.
[#1728](https://github.com/bugsnag/bugsnag-cocoa/pull/1728)

## 6.31.0 (2025-01-13)

### Enhancements
Expand Down

0 comments on commit 829bda2

Please sign in to comment.