{"id":106033,"date":"2021-12-15T07:00:00","date_gmt":"2021-12-15T15:00:00","guid":{"rendered":"https:\/\/devblogs.microsoft.com\/oldnewthing\/?p=106033"},"modified":"2021-12-15T07:22:16","modified_gmt":"2021-12-15T15:22:16","slug":"20211215-00","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/oldnewthing\/20211215-00\/?p=106033","title":{"rendered":"What does &#8220;Do not launch, but debug my code when it launches&#8221; mean?"},"content":{"rendered":"<p>Visual Studio has an option called <i>Do not launch, but debug my code when it launches.<\/i><\/p>\n<p>For a long time, I was confused by this setting. It&#8217;s like telling someone, &#8220;Don&#8217;t drive my car, but wear a seat belt when you drive my car.&#8221;<\/p>\n<p>I also tried to parse this as<\/p>\n<blockquote class=\"m\"><p>(Do not launch, but debug my code) when it launches.<\/p><\/blockquote>\n<p>In other words, &#8220;When my code launches, don&#8217;t launch it; just debug it.&#8221;<\/p>\n<p>Which makes no sense. &#8220;When my code launches, don&#8217;t launch it.&#8221;<\/p>\n<p>I eventually got clued in that both of those attempts at parsing the statement were incorrect. The intended parse is<\/p>\n<blockquote class=\"m\"><p>Do not launch, but (debug my code when it launches).<\/p><\/blockquote>\n<p>In other words, &#8220;Don&#8217;t launch it right now. Wait for somebody <i>else<\/i> to launch it, and then debug it when that launch happens.&#8221;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Don&#8217;t launch my code when it launches? Does that even make sense?<\/p>\n","protected":false},"author":1069,"featured_media":111744,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1],"tags":[25],"class_list":["post-106033","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-oldnewthing","tag-code"],"acf":[],"blog_post_summary":"<p>Don&#8217;t launch my code when it launches? Does that even make sense?<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/posts\/106033","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/users\/1069"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/comments?post=106033"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/posts\/106033\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/media\/111744"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/media?parent=106033"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/categories?post=106033"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/tags?post=106033"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}