{"category":{"version":"591f17ae21d2ff0f00cf5a3f","project":"547cd7662eaee50800ed1089","_id":"591f17af21d2ff0f00cf5a40","__v":0,"sync":{"url":"","isSync":false},"reference":false,"createdAt":"2014-12-01T21:02:31.346Z","from_sync":false,"order":0,"slug":"start","title":"Get Started: Mac OS Apps"},"parentDoc":null,"project":"547cd7662eaee50800ed1089","user":"547cd6ac78fd57080023ca99","version":{"__v":1,"_id":"591f17ae21d2ff0f00cf5a3f","project":"547cd7662eaee50800ed1089","createdAt":"2017-05-19T16:05:02.775Z","releaseDate":"2017-05-19T16:05:02.775Z","categories":["591f17af21d2ff0f00cf5a40","591f17af21d2ff0f00cf5a41","591f17af21d2ff0f00cf5a42","591f17af21d2ff0f00cf5a43","591f17af21d2ff0f00cf5a44","591f17af21d2ff0f00cf5a45","591f17af21d2ff0f00cf5a46","591f17af21d2ff0f00cf5a47","591f17af21d2ff0f00cf5a48"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"1.0.1","version":"1.0.1"},"_id":"591f17b021d2ff0f00cf5a5a","__v":0,"updates":["554a0aa9b9fb933900cc7485"],"next":{"pages":[],"description":""},"createdAt":"2015-02-04T12:55:59.628Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"settings":"","auth":"required","params":[],"url":""},"isReference":false,"order":9,"body":"[block:callout]\n{\n  \"type\": \"info\",\n  \"title\": \"NOTE\",\n  \"body\": \"Unfortunately, Swift does’t support macros. That's why, DevMate Debug Menu is not available for Swift projects for now.\"\n}\n[/block]\n\nYou can try out the DevMate Kit features using Debug menu. It allows you to initiate events directly from the main menu. It can be used when your project is in *Debug* build configuration.\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/6V5Hix6pRruoMN8MMsTs_Debug%20Menu.png\",\n        \"Debug Menu.png\",\n        \"248\",\n        \"191\",\n        \"#78473a\",\n        \"\"\n      ]\n    }\n  ]\n}\n[/block]\n\n[block:callout]\n{\n  \"type\": \"info\",\n  \"title\": \"Enable All Features of DevMate Debug Menu\",\n  \"body\": \"You can just add `DMKitDebugAddDevMateMenu();` function to `-applicationDidFinishLaunching:` to add all features mentioned below.\"\n}\n[/block]\n#Testing Activations\n\n[block:callout]\n{\n  \"type\": \"warning\",\n  \"title\": \"Important!\",\n  \"body\": \"If you want to test activation and trial features using DevMate Debug menu, you need to import Kevlar first in your app delegate class file:\\n````Objective-C\\n#import \\\"DMKevlarApplication.h\\\"\\n#import <DevMateKit/DevMateKit.h>\\n````\"\n}\n[/block]\nAdd the following code inside `-applicationDidFinishLaunching:` method of your application delegate class:\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"DMKitDebugAddActivationMenu();\",\n      \"language\": \"objectivec\"\n    }\n  ]\n}\n[/block]\nThen build and run the application and open activation window from Debug menu. You can get a test activation code in DevMate interface (_Application > Setup > License types_).\n\n#Testing Trial\n\nAdd the following code inside `-applicationDidFinishLaunching:` method of your application delegate class:\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"DMKitDebugAddTrialMenu();\\nif (!DMKIsApplicationActivated(NULL)) {\\n\\t[DevMateKit setupTimeTrial:nil withTimeInterval:kDMTrialWeek];\\n}\",\n      \"language\": \"objectivec\"\n    }\n  ]\n}\n[/block]\nBuild and run your application. Now you can initiate, disable or reset your trial from the Debug menu.\n\n#Testing Issue Reporting\n\nAdd the following code inside `-applicationDidFinishLaunching:` method of your application delegate class:\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"DMKitDebugAddIssuesMenu();\\n[DevMateKit setupIssuesController:nil reportingUnhandledIssues:YES];\",\n      \"language\": \"objectivec\"\n    }\n  ]\n}\n[/block]\nBuild and run your application. Now you can crash your application or initiate test exception using the Debug menu, add some comments and send an issue report.\n\n#Testing Feedback\n\nCreate debug DevMate menu using the inline function. Add the following code inside `-applicationDidFinishLaunching:` method of your application delegate class:\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \" DMKitDebugAddFeedbackMenu();\",\n      \"language\": \"objectivec\"\n    }\n  ]\n}\n[/block]\n\nBuild and Run your application. Now you can open feedback dialog using _'DevMate Debug' > 'Show Feedback Dialog'_ menu item. Write and send a feedback message.\n\n#Testing Updates\n\nAdd the following code inside `-applicationDidFinishLaunching:` method of your application delegate class:\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \" DMKitDebugAddUpdateMenu();\",\n      \"language\": \"objectivec\"\n    }\n  ]\n}\n[/block]\nBuild and run your application. Initiate update check using DevMate Debug menu. If everything is OK, you should get _'You are up-to-date'_ message.","excerpt":"","slug":"debug-menu","type":"basic","title":"Debug Menu"}
[block:callout] { "type": "info", "title": "NOTE", "body": "Unfortunately, Swift does’t support macros. That's why, DevMate Debug Menu is not available for Swift projects for now." } [/block] You can try out the DevMate Kit features using Debug menu. It allows you to initiate events directly from the main menu. It can be used when your project is in *Debug* build configuration. [block:image] { "images": [ { "image": [ "https://files.readme.io/6V5Hix6pRruoMN8MMsTs_Debug%20Menu.png", "Debug Menu.png", "248", "191", "#78473a", "" ] } ] } [/block] [block:callout] { "type": "info", "title": "Enable All Features of DevMate Debug Menu", "body": "You can just add `DMKitDebugAddDevMateMenu();` function to `-applicationDidFinishLaunching:` to add all features mentioned below." } [/block] #Testing Activations [block:callout] { "type": "warning", "title": "Important!", "body": "If you want to test activation and trial features using DevMate Debug menu, you need to import Kevlar first in your app delegate class file:\n````Objective-C\n#import \"DMKevlarApplication.h\"\n#import <DevMateKit/DevMateKit.h>\n````" } [/block] Add the following code inside `-applicationDidFinishLaunching:` method of your application delegate class: [block:code] { "codes": [ { "code": "DMKitDebugAddActivationMenu();", "language": "objectivec" } ] } [/block] Then build and run the application and open activation window from Debug menu. You can get a test activation code in DevMate interface (_Application > Setup > License types_). #Testing Trial Add the following code inside `-applicationDidFinishLaunching:` method of your application delegate class: [block:code] { "codes": [ { "code": "DMKitDebugAddTrialMenu();\nif (!DMKIsApplicationActivated(NULL)) {\n\t[DevMateKit setupTimeTrial:nil withTimeInterval:kDMTrialWeek];\n}", "language": "objectivec" } ] } [/block] Build and run your application. Now you can initiate, disable or reset your trial from the Debug menu. #Testing Issue Reporting Add the following code inside `-applicationDidFinishLaunching:` method of your application delegate class: [block:code] { "codes": [ { "code": "DMKitDebugAddIssuesMenu();\n[DevMateKit setupIssuesController:nil reportingUnhandledIssues:YES];", "language": "objectivec" } ] } [/block] Build and run your application. Now you can crash your application or initiate test exception using the Debug menu, add some comments and send an issue report. #Testing Feedback Create debug DevMate menu using the inline function. Add the following code inside `-applicationDidFinishLaunching:` method of your application delegate class: [block:code] { "codes": [ { "code": " DMKitDebugAddFeedbackMenu();", "language": "objectivec" } ] } [/block] Build and Run your application. Now you can open feedback dialog using _'DevMate Debug' > 'Show Feedback Dialog'_ menu item. Write and send a feedback message. #Testing Updates Add the following code inside `-applicationDidFinishLaunching:` method of your application delegate class: [block:code] { "codes": [ { "code": " DMKitDebugAddUpdateMenu();", "language": "objectivec" } ] } [/block] Build and run your application. Initiate update check using DevMate Debug menu. If everything is OK, you should get _'You are up-to-date'_ message.