<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Zemna.Net &#187; 디버거</title>
	<atom:link href="http://www.zemna.net/archives/tag/%eb%94%94%eb%b2%84%ea%b1%b0/feed" rel="self" type="application/rss+xml" />
	<link>http://www.zemna.net</link>
	<description>Enjoy Your Programming!</description>
	<lastBuildDate>Tue, 07 Sep 2010 01:25:41 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>디버그(Debug) 모드에서만 Windows Service 디버그 연결하기</title>
		<link>http://www.zemna.net/archives/9</link>
		<comments>http://www.zemna.net/archives/9#comments</comments>
		<pubDate>Sun, 28 Feb 2010 14:27:07 +0000</pubDate>
		<dc:creator>zemna</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[.NET 일반]]></category>
		<category><![CDATA[Debugger]]></category>
		<category><![CDATA[Debugging]]></category>
		<category><![CDATA[Windows Service]]></category>
		<category><![CDATA[디버거]]></category>
		<category><![CDATA[디버깅]]></category>
		<category><![CDATA[윈도우 서비스]]></category>

		<guid isPermaLink="false">http://www.zemna.net/wordpress/?p=9</guid>
		<description><![CDATA[보통 윈도우 서비스(Windows Service) 프로그램을 개발할 때, 바로 디버깅이 불가능 하기 때문에 프로그램 시작 함수에서 System.Diagnostics.Debugger.Launch(); 를 실행하여 디버거 연결 화면을 띄우고 연결할 것이다. 그러나 그냥 명령어만 추가하게 되면 릴리즈(Release) 모드로 컴파일하여도 실행시마다 디버거 연결화면이 나타나게 된다. 이럴때는, 디버그 모드에서만 선언되어있는 DEBUG 상수를 이용하여 위의 명령어를 처리하도록 하면 된다. #if DEBUG System.Dianostics.Debugger.Launch(); #endif 이렇게 하게 [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.zemna.net%2Farchives%2F9"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.zemna.net%2Farchives%2F9&amp;source=zemnanet&amp;style=normal&amp;service=TinyURL.com&amp;hashtags=Debugger,Debugging,Windows+Service,%EB%94%94%EB%B2%84%EA%B1%B0,%EB%94%94%EB%B2%84%EA%B9%85,%EC%9C%88%EB%8F%84%EC%9A%B0+%EC%84%9C%EB%B9%84%EC%8A%A4" height="61" width="50" /><br />
			</a>
		</div>
<p>보통 윈도우 서비스(Windows Service) 프로그램을 개발할 때, 바로 디버깅이 불가능 하기 때문에 프로그램 시작 함수에서</p>
<p>System.Diagnostics.Debugger.Launch();</p>
<p>를 실행하여 디버거 연결 화면을 띄우고 연결할 것이다.</p>
<p>그러나 그냥 명령어만 추가하게 되면 릴리즈(Release) 모드로 컴파일하여도 실행시마다 디버거 연결화면이 나타나게 된다.</p>
<p>이럴때는, 디버그 모드에서만 선언되어있는 DEBUG 상수를 이용하여 위의 명령어를 처리하도록 하면 된다.</p>
<p>#if DEBUG<br />
System.Dianostics.Debugger.Launch();<br />
#endif</p>
<p>이렇게 하게 되면 릴리즈모드에서는 디버거 연결 화면이 출력되지 않는다.</p>


<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center shr-bookmarks-bg-shr">
<ul class="socials">
		<li class="shr-comfeed">
			<a href="http://www.zemna.net/archives/9/feed" rel="nofollow" class="external" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://www.zemna.net/archives/9&amp;title=%EB%94%94%EB%B2%84%EA%B7%B8%28Debug%29+%EB%AA%A8%EB%93%9C%EC%97%90%EC%84%9C%EB%A7%8C+Windows+Service+%EB%94%94%EB%B2%84%EA%B7%B8+%EC%97%B0%EA%B2%B0%ED%95%98%EA%B8%B0" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://www.zemna.net/archives/9&amp;title=%EB%94%94%EB%B2%84%EA%B7%B8%28Debug%29+%EB%AA%A8%EB%93%9C%EC%97%90%EC%84%9C%EB%A7%8C+Windows+Service+%EB%94%94%EB%B2%84%EA%B7%B8+%EC%97%B0%EA%B2%B0%ED%95%98%EA%B8%B0" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-diigo">
			<a href="http://www.diigo.com/post?url=http://www.zemna.net/archives/9&amp;title=%EB%94%94%EB%B2%84%EA%B7%B8%28Debug%29+%EB%AA%A8%EB%93%9C%EC%97%90%EC%84%9C%EB%A7%8C+Windows+Service+%EB%94%94%EB%B2%84%EA%B7%B8+%EC%97%B0%EA%B2%B0%ED%95%98%EA%B8%B0&amp;desc=%EB%B3%B4%ED%86%B5%20%EC%9C%88%EB%8F%84%EC%9A%B0%20%EC%84%9C%EB%B9%84%EC%8A%A4%28Windows%20Service%29%20%ED%94%84%EB%A1%9C%EA%B7%B8%EB%9E%A8%EC%9D%84%20%EA%B0%9C%EB%B0%9C%ED%95%A0%20%EB%95%8C%2C%20%EB%B0%94%EB%A1%9C%20%EB%94%94%EB%B2%84%EA%B9%85%EC%9D%B4%20%EB%B6%88%EA%B0%80%EB%8A%A5%20%ED%95%98%EA%B8%B0%20%EB%95%8C%EB%AC%B8%EC%97%90%20%ED%94%84%EB%A1%9C%EA%B7%B8%EB%9E%A8%20%EC%8B%9C%EC%9E%91%20%ED%95%A8%EC%88%98%EC%97%90%EC%84%9C%0D%0A%0D%0A%5Bcode%20lang%3D%22c%23%22%5D%0D%0A%0D%0ASystem.Diagnostics.Debugger.Launch%28%29%3B%0D%0A%0D%0A%5B%2Fcode%5D%0D%0A%0D%0A%EB%A5%BC%20%EC%8B%A4%ED%96%89%ED%95%98%EC%97%AC%20%EB%94%94%EB%B2%84%EA%B1%B0%20%EC%97%B0%EA%B2%B0%20%ED%99%94%EB%A9%B4%EC%9D%84%20%EB%9D%84%EC%9A%B0%EA%B3%A0%20%EC%97%B0%EA%B2%B0%ED%95%A0%20%EA%B2%83%EC%9D%B4" rel="nofollow" class="external" title="Post this on Diigo">Post this on Diigo</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.google.com/buzz/post?url=http://www.zemna.net/archives/9&amp;imageurl=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-misterwong">
			<a href="http://www.mister-wong.com/addurl/?bm_url=http://www.zemna.net/archives/9&amp;bm_description=%EB%94%94%EB%B2%84%EA%B7%B8%28Debug%29+%EB%AA%A8%EB%93%9C%EC%97%90%EC%84%9C%EB%A7%8C+Windows+Service+%EB%94%94%EB%B2%84%EA%B7%B8+%EC%97%B0%EA%B2%B0%ED%95%98%EA%B8%B0&amp;plugin=sexybookmarks" rel="nofollow" class="external" title="Add this to Mister Wong">Add this to Mister Wong</a>
		</li>
		<li class="shr-mixx">
			<a href="http://www.mixx.com/submit?page_url=http://www.zemna.net/archives/9&amp;title=%EB%94%94%EB%B2%84%EA%B7%B8%28Debug%29+%EB%AA%A8%EB%93%9C%EC%97%90%EC%84%9C%EB%A7%8C+Windows+Service+%EB%94%94%EB%B2%84%EA%B7%B8+%EC%97%B0%EA%B2%B0%ED%95%98%EA%B8%B0" rel="nofollow" class="external" title="Share this on Mixx">Share this on Mixx</a>
		</li>
		<li class="shr-reddit">
			<a href="http://reddit.com/submit?url=http://www.zemna.net/archives/9&amp;title=%EB%94%94%EB%B2%84%EA%B7%B8%28Debug%29+%EB%AA%A8%EB%93%9C%EC%97%90%EC%84%9C%EB%A7%8C+Windows+Service+%EB%94%94%EB%B2%84%EA%B7%B8+%EC%97%B0%EA%B2%B0%ED%95%98%EA%B8%B0" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-technorati">
			<a href="http://technorati.com/faves?add=http://www.zemna.net/archives/9" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
		<li class="shr-twitter">
			<a href="http://twitter.com/home?status=%EB%94%94%EB%B2%84%EA%B7%B8%28Debug%29+%EB%AA%A8%EB%93%9C%EC%97%90%EC%84%9C%EB%A7%8C+Windows+Service+%EB%94%94%EB%B2%84%EA%B7%B8+%EC%97%B0%EA%B2%B0%ED%95%98%EA%B8%B0+-+http://tinyurl.com/ylqo8md&amp;source=shareaholic" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>

]]></content:encoded>
			<wfw:commentRss>http://www.zemna.net/archives/9/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
