Skip to content

Commit 1ddd7d3

Browse files
committed
Release 0.3.0.
1 parent ead9a43 commit 1ddd7d3

File tree

2 files changed

+11
-10
lines changed

2 files changed

+11
-10
lines changed

DBDebugToolkit.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
Pod::Spec.new do |s|
1010
s.name = 'DBDebugToolkit'
11-
s.version = '0.2.1'
11+
s.version = '0.3.0'
1212
s.summary = 'Set of easy to use debugging tools for iOS developers & QA engineers.'
1313

1414
# This description is used to generate tags and improve search results.

DBDebugToolkit/Classes/CrashReports/DBCrashReportsToolkit.m

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -242,36 +242,37 @@ - (void)saveCrashReportWithName:(NSString *)name
242242
- (BOOL)isRunningUnderDebugger {
243243
#ifndef DEBUG
244244
return NO;
245-
#endif
245+
#else
246246
// Returns true if the current process is being debugged (either
247247
// running under the debugger or has a debugger attached post facto).
248-
248+
249249
int junk;
250250
int mib[4];
251251
struct kinfo_proc info;
252252
size_t size;
253-
253+
254254
// Initialize the flags so that, if sysctl fails for some bizarre
255255
// reason, we get a predictable result.
256-
256+
257257
info.kp_proc.p_flag = 0;
258-
258+
259259
// Initialize mib, which tells sysctl the info we want, in this case
260260
// we're looking for information about a specific process ID.
261-
261+
262262
mib[0] = CTL_KERN;
263263
mib[1] = KERN_PROC;
264264
mib[2] = KERN_PROC_PID;
265265
mib[3] = getpid();
266-
266+
267267
// Call sysctl.
268-
268+
269269
size = sizeof(info);
270270
junk = sysctl(mib, sizeof(mib) / sizeof(*mib), &info, &size, NULL, 0);
271271
assert(junk == 0);
272-
272+
273273
// We're being debugged if the P_TRACED flag is set.
274274
return ( (info.kp_proc.p_flag & P_TRACED) != 0 );
275+
#endif
275276
}
276277

277278
@end

0 commit comments

Comments
 (0)