<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:pingback="http://madskills.com/public/xml/rss/module/pingback/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0">
  <channel>
    <title>IIrrelevant - Debugging</title>
    <link>http://www.milkcarton.com/blog/</link>
    <description>Irrelevant musings about software development</description>
    <language>en-us</language>
    <copyright>Dan Morphis</copyright>
    <lastBuildDate>Tue, 06 Jan 2009 22:20:47 GMT</lastBuildDate>
    <generator>newtelligence dasBlog 2.3.9074.18820</generator>
    <managingEditor>blog@milkcarton.com</managingEditor>
    <webMaster>blog@milkcarton.com</webMaster>
    <item>
      <trackback:ping>http://www.milkcarton.com/blog/Trackback.aspx?guid=2082acf3-3fe7-44c9-aa47-1b075c19a82b</trackback:ping>
      <pingback:server>http://www.milkcarton.com/blog/pingback.aspx</pingback:server>
      <pingback:target>http://www.milkcarton.com/blog/PermaLink,guid,2082acf3-3fe7-44c9-aa47-1b075c19a82b.aspx</pingback:target>
      <dc:creator>Dan Morphis</dc:creator>
      <wfw:comment>http://www.milkcarton.com/blog/CommentView,guid,2082acf3-3fe7-44c9-aa47-1b075c19a82b.aspx</wfw:comment>
      <wfw:commentRss>http://www.milkcarton.com/blog/SyndicationService.asmx/GetEntryCommentsRss?guid=2082acf3-3fe7-44c9-aa47-1b075c19a82b</wfw:commentRss>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <p>
After much time, trial and error, I was finally able to get Visual Studio's remote
debugging features to work.  In my travels around the Internet, no one seems
to have compiled all the steps to make the process work successfully and seemlessly
into one page, this is my attempt.
</p>
        <h3>Setting up
</h3>
        <p>
Complete all the steps listed on the <a href="http://msdn.microsoft.com/en-us/library/bt727f1t.aspx">How
to: Set Up Remote Debugging</a> article on MSDN. 
</p>
        <h3>Permissions
</h3>
        <p>
Don't try and fight the cross-domain permissions battle, its just not worth it. 
If the machine your trying debug is not on a domain, then don't run VS from a machine
thats on the domain. Make sure the same user with the same password exists on<strong> both</strong> machines.
</p>
        <h3>PDB's
</h3>
        <p>
Put the PDB files on the remote machine (target) in the same folder as your app.
</p>
        <h3>Source Code
</h3>
        <p>
In our environment, our build server produces an installer, and it also produces the
PDB's we used in the above step. If we want Visual Studio to automatically pick up
the right source files when we are debugging, you need to store the source code on
your host machine in the same location as the machine that built your PDB's.
</p>
        <p>
For example, in our world, on our build server the code lives on d:\code\projectname\code\
so on your host machine, you would store our source code on d:\code\projectname\code
</p>
        <h3>Results
</h3>
        <p>
If you have followed all these steps, and if the stars align just right, you should
now be able to step through your source code when remote debugging.
</p>
        <h3>Questions/Comments
</h3>
        <p>
Questions, comments or just can't make it work for some reason? Leave a comment and
fill out your actual email address nd I'll try to address it!
</p>
        <p>
 
</p>
        <p>
          <a href="http://www.dotnetkicks.com/kick/?url=http%3a%2f%2fwww.milkcarton.com%2fblog%2f2009%2f01%2f06%2fHow%2bTo%2bGet%2bRemote%2bDebugging%2bTo%2bWork%2bSuccessfully.aspx">
            <img alt="kick it on DotNetKicks.com" src="http://www.dotnetkicks.com/Services/Images/KickItImageGenerator.ashx?url=http%3a%2f%2fwww.milkcarton.com%2fblog%2f2009%2f01%2f06%2fHow%2bTo%2bGet%2bRemote%2bDebugging%2bTo%2bWork%2bSuccessfully.aspx" border="0" />
          </a>
        </p>
        <img width="0" height="0" src="http://www.milkcarton.com/blog/aggbug.ashx?id=2082acf3-3fe7-44c9-aa47-1b075c19a82b" />
      </body>
      <title>How to get remote debugging to work successfully</title>
      <guid isPermaLink="false">http://www.milkcarton.com/blog/PermaLink,guid,2082acf3-3fe7-44c9-aa47-1b075c19a82b.aspx</guid>
      <link>http://www.milkcarton.com/blog/2009/01/06/How+To+Get+Remote+Debugging+To+Work+Successfully.aspx</link>
      <pubDate>Tue, 06 Jan 2009 22:20:47 GMT</pubDate>
      <description>&lt;p&gt;
After much time, trial and error, I was finally able to get Visual Studio's remote
debugging features to work.&amp;nbsp; In my travels around the Internet, no one seems
to have compiled all the steps to make the process work successfully and seemlessly
into one page, this is my attempt.
&lt;/p&gt;
&lt;h3&gt;Setting up
&lt;/h3&gt;
&lt;p&gt;
Complete all the steps listed on the &lt;a href="http://msdn.microsoft.com/en-us/library/bt727f1t.aspx"&gt;How
to: Set Up Remote Debugging&lt;/a&gt; article on MSDN. 
&lt;/p&gt;
&lt;h3&gt;Permissions
&lt;/h3&gt;
&lt;p&gt;
Don't try and fight the cross-domain permissions battle, its just not worth it.&amp;nbsp;
If the machine your trying debug is not on a domain, then don't run VS from a machine
thats on the domain. Make sure the same user with the same password exists on&lt;strong&gt; both&lt;/strong&gt; machines.
&lt;/p&gt;
&lt;h3&gt;PDB's
&lt;/h3&gt;
&lt;p&gt;
Put the PDB files on the remote machine (target) in the same folder as your app.
&lt;/p&gt;
&lt;h3&gt;Source Code
&lt;/h3&gt;
&lt;p&gt;
In our environment, our build server produces an installer, and it also produces the
PDB's we used in the above step. If we want Visual Studio to automatically pick up
the right source files when we are debugging, you need to store the source code on
your host machine in the same location as the machine that built your PDB's.
&lt;/p&gt;
&lt;p&gt;
For example, in our world, on our build server the code lives on d:\code\projectname\code\
so on your host machine, you would store our source code on d:\code\projectname\code
&lt;/p&gt;
&lt;h3&gt;Results
&lt;/h3&gt;
&lt;p&gt;
If you have followed all these steps, and if the stars align just right, you should
now be able to step through your source code when remote debugging.
&lt;/p&gt;
&lt;h3&gt;Questions/Comments
&lt;/h3&gt;
&lt;p&gt;
Questions, comments or just can't make it work for some reason? Leave a comment and
fill out your actual email address nd I'll try to address it!
&lt;/p&gt;
&lt;p&gt;
&amp;nbsp;
&lt;/p&gt;
&lt;p&gt;
&lt;a href="http://www.dotnetkicks.com/kick/?url=http%3a%2f%2fwww.milkcarton.com%2fblog%2f2009%2f01%2f06%2fHow%2bTo%2bGet%2bRemote%2bDebugging%2bTo%2bWork%2bSuccessfully.aspx"&gt;&lt;img alt="kick it on DotNetKicks.com" src="http://www.dotnetkicks.com/Services/Images/KickItImageGenerator.ashx?url=http%3a%2f%2fwww.milkcarton.com%2fblog%2f2009%2f01%2f06%2fHow%2bTo%2bGet%2bRemote%2bDebugging%2bTo%2bWork%2bSuccessfully.aspx" border="0"&gt;&lt;/a&gt;
&lt;/p&gt;
&lt;img width="0" height="0" src="http://www.milkcarton.com/blog/aggbug.ashx?id=2082acf3-3fe7-44c9-aa47-1b075c19a82b" /&gt;</description>
      <comments>http://www.milkcarton.com/blog/CommentView,guid,2082acf3-3fe7-44c9-aa47-1b075c19a82b.aspx</comments>
      <category>Debugging</category>
      <category>HowTo</category>
      <category>VisualStudio</category>
    </item>
  </channel>
</rss>