mirror of
https://github.com/Ranchero-Software/NetNewsWire.git
synced 2024-12-25 01:01:21 +01:00
Add Debug > Force Crash command. Also: let the test for crash report sending work in production.
This commit is contained in:
parent
0fa4c02d63
commit
91a825343a
@ -715,9 +715,11 @@ extension AppDelegate {
|
||||
}
|
||||
|
||||
@IBAction func debugTestCrashReportSending(_ sender: Any?) {
|
||||
#if DEBUG
|
||||
CrashReporter.sendCrashLogText("This is a test. Hi, Brent.")
|
||||
#endif
|
||||
CrashReporter.sendCrashLogText("This is a test. Hi, Brent.")
|
||||
}
|
||||
|
||||
@IBAction func forceCrash(_ sender: Any?) {
|
||||
fatalError("This is a deliberate crash.")
|
||||
}
|
||||
|
||||
@IBAction func openApplicationSupportFolder(_ sender: Any?) {
|
||||
|
@ -1,8 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<document type="com.apple.InterfaceBuilder3.Cocoa.Storyboard.XIB" version="3.0" toolsVersion="17147" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES">
|
||||
<document type="com.apple.InterfaceBuilder3.Cocoa.Storyboard.XIB" version="3.0" toolsVersion="17701" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES">
|
||||
<dependencies>
|
||||
<deployment identifier="macosx"/>
|
||||
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="17147"/>
|
||||
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="17701"/>
|
||||
</dependencies>
|
||||
<scenes>
|
||||
<!--Application-->
|
||||
@ -516,6 +516,7 @@
|
||||
<action selector="debugDropConditionalGetInfo:" target="Voe-Tx-rLC" id="X24-9X-rwG"/>
|
||||
</connections>
|
||||
</menuItem>
|
||||
<menuItem isSeparatorItem="YES" id="Dij-Nu-eot"/>
|
||||
<menuItem title="Test Crash Reporter Window" id="gVd-kQ-efj">
|
||||
<modifierMask key="keyEquivalentModifierMask"/>
|
||||
<connections>
|
||||
@ -528,6 +529,13 @@
|
||||
<action selector="debugTestCrashReportSending:" target="Ady-hI-5gd" id="olQ-kb-kkm"/>
|
||||
</connections>
|
||||
</menuItem>
|
||||
<menuItem title="Force Crash" id="gVt-cz-eoJ">
|
||||
<modifierMask key="keyEquivalentModifierMask"/>
|
||||
<connections>
|
||||
<action selector="forceCrash:" target="Ady-hI-5gd" id="a2x-LM-60G"/>
|
||||
</connections>
|
||||
</menuItem>
|
||||
<menuItem isSeparatorItem="YES" id="Nzi-Mb-uxc"/>
|
||||
<menuItem title="Debug Search" id="9Ot-wC-s5U">
|
||||
<modifierMask key="keyEquivalentModifierMask"/>
|
||||
<connections>
|
||||
@ -682,7 +690,7 @@
|
||||
</items>
|
||||
</menu>
|
||||
</objects>
|
||||
<point key="canvasLocation" x="-54" y="-144"/>
|
||||
<point key="canvasLocation" x="-277" y="-69"/>
|
||||
</scene>
|
||||
</scenes>
|
||||
</document>
|
||||
|
Loading…
Reference in New Issue
Block a user