{"id":416,"date":"2017-06-26T17:30:59","date_gmt":"2017-06-26T15:30:59","guid":{"rendered":"http:\/\/ekhart.pl\/?p=416"},"modified":"2017-06-26T17:30:59","modified_gmt":"2017-06-26T15:30:59","slug":"visual-studio-unity-debug-log-snippet","status":"publish","type":"post","link":"https:\/\/ekhart.pl\/index.php\/2017\/06\/26\/visual-studio-unity-debug-log-snippet\/","title":{"rendered":"Visual Studio Unity Debug.Log snippet"},"content":{"rendered":"<p>Lifehacker&#8217;s ultimate goals of all activity\u00a0is to recognize and fight with the repetition. I found that currently I often Debug.Log state of variables. Let&#8217;s make it little simpler!<!--more--><\/p>\n<h2>Preparation<\/h2>\n<ol>\n<li>download &amp; unzip\u00a0<a href=\"https:\/\/ekhart.pl\/wp-content\/uploads\/2017\/06\/debuglog.zip\">debuglog snippet<\/a><\/li>\n<li>copy it\u00a0to default snippets folder<br \/>\n<span style=\"text-decoration: underline;\">C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC#\\Snippets\\1033\\Visual C#<\/span><\/li>\n<\/ol>\n<h2>Usage<\/h2>\n<p><a href=\"https:\/\/i0.wp.com\/ekhart.pl\/wp-content\/uploads\/2017\/06\/debuglog.gif?ssl=1\"><img loading=\"lazy\" decoding=\"async\" data-attachment-id=\"418\" data-permalink=\"https:\/\/ekhart.pl\/index.php\/2017\/06\/26\/visual-studio-unity-debug-log-snippet\/debuglog-2\/\" data-orig-file=\"https:\/\/i0.wp.com\/ekhart.pl\/wp-content\/uploads\/2017\/06\/debuglog.gif?fit=903%2C402&amp;ssl=1\" data-orig-size=\"903,402\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"debuglog\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/ekhart.pl\/wp-content\/uploads\/2017\/06\/debuglog.gif?fit=300%2C134&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/ekhart.pl\/wp-content\/uploads\/2017\/06\/debuglog.gif?fit=525%2C234&amp;ssl=1\" class=\"alignnone wp-image-418 size-full\" src=\"https:\/\/i0.wp.com\/ekhart.pl\/wp-content\/uploads\/2017\/06\/debuglog.gif?resize=525%2C234&#038;ssl=1\" alt=\"\" width=\"525\" height=\"234\" data-recalc-dims=\"1\" \/><\/a><\/p>\n<ol>\n<li>copy variable that you would like to log<\/li>\n<li>hit Ctrl-k, Ctrl+s<\/li>\n<li>hit D button and Enter &#8211; choose debuglog<\/li>\n<li>write down\u00a0variable name (without IntelliSense ;\/) or paste variable<\/li>\n<li>hit End button<\/li>\n<\/ol>\n<p>The solution isn&#8217;t best. I could make it better (and even know how). But still it&#8217;s much more usable then copy pasting &amp; writing. So, please, enjoy it, too!<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Lifehacker&#8217;s ultimate goals of all activity\u00a0is to recognize and fight with the repetition. I found that currently I often Debug.Log state of variables. Let&#8217;s make it little simpler!<\/p>\n","protected":false},"author":1,"featured_media":421,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false}}},"categories":[27],"tags":[39,24,40],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/ekhart.pl\/wp-content\/uploads\/2017\/06\/snippet.jpg?fit=2000%2C1333&ssl=1","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p8oxcO-6I","jetpack-related-posts":[],"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/ekhart.pl\/index.php\/wp-json\/wp\/v2\/posts\/416"}],"collection":[{"href":"https:\/\/ekhart.pl\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ekhart.pl\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ekhart.pl\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ekhart.pl\/index.php\/wp-json\/wp\/v2\/comments?post=416"}],"version-history":[{"count":5,"href":"https:\/\/ekhart.pl\/index.php\/wp-json\/wp\/v2\/posts\/416\/revisions"}],"predecessor-version":[{"id":424,"href":"https:\/\/ekhart.pl\/index.php\/wp-json\/wp\/v2\/posts\/416\/revisions\/424"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ekhart.pl\/index.php\/wp-json\/wp\/v2\/media\/421"}],"wp:attachment":[{"href":"https:\/\/ekhart.pl\/index.php\/wp-json\/wp\/v2\/media?parent=416"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ekhart.pl\/index.php\/wp-json\/wp\/v2\/categories?post=416"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ekhart.pl\/index.php\/wp-json\/wp\/v2\/tags?post=416"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}