{"blog_title":"present","title":"\u30d7\u30ed\u30b0\u30e9\u30e0\u304c\u30c7\u30d0\u30c3\u30b0\u5b9f\u884c\u4e2d\u304b\u3069\u3046\u304b\u5224\u65ad\u3059\u308b\u65b9\u6cd5","image_url":null,"height":"190","published":"2009-11-13 00:00:00","url":"https://tnakamura.hatenablog.com/entry/20091113/debugger_is_attached","blog_url":"https://tnakamura.hatenablog.com/","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftnakamura.hatenablog.com%2Fentry%2F20091113%2Fdebugger_is_attached\" title=\"\u30d7\u30ed\u30b0\u30e9\u30e0\u304c\u30c7\u30d0\u30c3\u30b0\u5b9f\u884c\u4e2d\u304b\u3069\u3046\u304b\u5224\u65ad\u3059\u308b\u65b9\u6cd5 - present\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","categories":["C#"],"description":"\u3061\u3087\u3063\u3068\u3057\u305f Tips \u3092\u3002Debugger \u30af\u30e9\u30b9\u306e IsAttached \u30d7\u30ed\u30d1\u30c6\u30a3\u3092\u30c1\u30a7\u30c3\u30af\u3059\u308c\u3070\u3001\u30d7\u30ed\u30b0\u30e9\u30e0\u304c\u30c7\u30d0\u30c3\u30b0\u5b9f\u884c\u4e2d\u304b\u3069\u3046\u304b\u3092\u5224\u65ad\u3067\u304d\u307e\u3059\u3002 using System; using System.Diagnostics; namespace DebugSample { class Program { static void Main(string[] args) { if (Debugger.IsAttached) { Console.WriteLine(\"\u30c7\u30d0\u30c3\u30b0\u5b9f\u884c\u4e2d\u3002\"); } else { Console.WriteLine(\"\u30c7\u30d0\u30c3\u30b0\u7121\u3057\u3067\u5b9f\u884c\u4e2d\u3002\"); } Cons\u2026","version":"1.0","author_url":"https://blog.hatena.ne.jp/griefworker/","provider_url":"https://hatena.blog","provider_name":"Hatena Blog","author_name":"griefworker","type":"rich","width":"100%"}