{"id":16444928,"url":"https://github.com/jaymon/ocout","last_synced_at":"2026-05-15T10:36:22.654Z","repository":{"id":62449253,"uuid":"43673559","full_name":"Jaymon/OCOut","owner":"Jaymon","description":"Objective-C Out","archived":false,"fork":false,"pushed_at":"2018-01-10T04:36:47.000Z","size":54,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-11T09:03:43.102Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Objective-C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Jaymon.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-10-05T08:43:03.000Z","updated_at":"2019-09-17T10:44:25.000Z","dependencies_parsed_at":"2022-11-01T23:17:08.482Z","dependency_job_id":null,"html_url":"https://github.com/Jaymon/OCOut","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jaymon%2FOCOut","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jaymon%2FOCOut/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jaymon%2FOCOut/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jaymon%2FOCOut/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Jaymon","download_url":"https://codeload.github.com/Jaymon/OCOut/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240816561,"owners_count":19862310,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-11T09:42:39.774Z","updated_at":"2026-05-15T10:36:22.609Z","avatar_url":"https://github.com/Jaymon.png","language":"Objective-C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# OCOut\n\nObjective-C out, continuing in the grand tradition of [php out](https://github.com/Jaymon/out) and [python out](https://github.com/Jaymon/pout).\n\n\n## If I install the pod, what do I get?\n\n### OCOUT(val)\n\nPrint out the variable name and the variable value.\n\n```obj-c\nNSString *val = @\"foo bar\";\nOCOUT(val);\n```\n\nWill result in:\n\n```\nstr = foo bar (ViewController:17)\n```\n\n`OCOUT` will print out almost any value, for example:\n\n```obj-c\nUIEdgeInsets ei = UIEdgeInsetsMake(10, 10, 10, 10);\nOCOUT(ei);\n\nNSRange range = NSMakeRange(0, 10);\nOCOUT(range);\n```\n\nWill print out:\n\n```\nei = {10, 10, 10, 10} (ViewController:20)\nrange = {0, 10} (ViewController:23)\n```\n\n\n### OCBREAK(linecount)\n\nAdd one or more lines of `*`'s.\n\n```obj-c\nOCBREAK(5);\n```\n\nWill result in:\n\n```\n************************************************************\n************************************************************\n************************************************************\n************************************************************\n************************************************************\n(ViewController:26)\n```\n\n\n### OCHERE()\n\nPrint here and the line number, super handy when you need to see if code is being ran.\n\n\n```obj-c\nOCHERE();\n```\n\nWill result in:\n\n```\nhere 28 (ViewController:28)\n```\n\n\n### OCTRACE()\n\nSimpler stack trace.\n\n\n```obj-c\nOCTRACE();\n```\n\nWill result in:\n\n```\n1.\t[ViewController viewDidLoad]\n2.\t[UIViewController loadViewIfRequired]\n3.\t[UIViewController view]\n4.\t[UIWindow addRootViewControllerViewIfPossible]\n5.\t[UIWindow _setHidden:forced:]\n6.\t[UIWindowAccessibility _orderFrontWithoutMakingKey]\n7.\t[UIWindow makeKeyAndVisible]\n8.\t[UIApplication _callInitializationDelegatesForMainScene:transitionContext:]\n9.\t[UIApplication _runWithMainScene:transitionContext:completion:]\n10.\t[UIApplication workspaceDidEndTransaction:]\n11.\t[FBSSerialQueue _performNext]\n12.\t[FBSSerialQueue _performNextFromRunLoopSource]\n13.\t[UIApplication _run]\n(ViewController:30)\n```\n\n\n## Installation\n\nUse [Cocoapods](https://cocoapods.org/). To install it, simply add the following line to your Podfile:\n\n```ruby\npod \"OCOut\"\n```\n\n\n## License\n\nOCOut is available under the MIT license. See the LICENSE file for more info.\n\n\n## Information\n\nOCOut is based off the code from [VTPG](https://github.com/VTPG/CommonCode), it basically pulls out the piece of code written about [here](http://vgable.com/blog/2010/08/19/the-most-useful-objective-c-code-ive-ever-written).\n\nhere is another approach to the problem (but way more code and didn't do obj-c properties):\n\n* [cave man debugging](http://jens.ayton.se/blag/almost-elegant-cave-man-debugging/)\n* [JAValueToString](https://github.com/JensAyton/JAValueToString)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaymon%2Focout","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjaymon%2Focout","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaymon%2Focout/lists"}