﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>StrataFrame Forum » .NET Forums » General .NET Discussion  » Debuggin a Type Editor</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Tue, 09 Jun 2026 16:03:25 GMT</lastBuildDate><ttl>20</ttl><item><title>Debuggin a Type Editor</title><link>http://forum.strataframe.net/FindPost10014.aspx</link><description>It's late so gonna be short but I am trying to set up a type editor for a custom property but I got some wires crossed somewhere. Problem when&amp;nbsp;I try to use that aforementioned pain in the neck&amp;nbsp;property&amp;nbsp;V.S. just quits.. none of the usual hints like "hey idiot you cant do that" or anything. Any pointers on how to debug this&amp;gt;?</description><pubDate>Fri, 06 Jul 2007 13:04:45 GMT</pubDate><dc:creator>Paul Chase</dc:creator></item><item><title>RE: Debuggin a Type Editor</title><link>http://forum.strataframe.net/FindPost10035.aspx</link><description>LOL....yup...been there :D&lt;/P&gt;&lt;P&gt;[quote]I also noticed that when I make a change in the editor&amp;nbsp;the change&amp;nbsp;would not show&amp;nbsp;unless VS is restarted.[/quote]&lt;/P&gt;&lt;P&gt;If you have your assembly in the GAC then the assembly is cached within VS and will not reload.&amp;nbsp; Also, there are other times the the assembly will be cached with VS in the AppDomain and you have to get out and come back in for it to work.&amp;nbsp; When it launches the devenv.exe, it will load the new assembly so you won't have this problem when testing.</description><pubDate>Fri, 06 Jul 2007 13:04:45 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Debuggin a Type Editor</title><link>http://forum.strataframe.net/FindPost10029.aspx</link><description>Trent that's the ticket !! &lt;/P&gt;&lt;P&gt;I was&amp;nbsp;hoping that there would be some way to debug it&amp;nbsp;besides &amp;gt;&amp;gt;Try to set property &amp;gt;&amp;gt; Crash Visual Studio &amp;gt;&amp;gt; Stare Blankly at screen &amp;gt;&amp;gt; Restart Visual&amp;nbsp;Studio &amp;gt;&amp;gt; Stare Blankly at code&amp;gt;&amp;gt; Wait till Eyes are blurry and crossed&amp;nbsp;&amp;gt;&amp;gt;&amp;nbsp;try something&amp;nbsp; &amp;gt;&amp;gt; Try to set property again &amp;gt;&amp;gt; Crash Visual Studio &amp;gt;&amp;gt; Stare Blankly at screen&amp;gt;&amp;gt; you get the picture&lt;/P&gt;&lt;P&gt;I also noticed that when I make a change in the editor&amp;nbsp;the change&amp;nbsp;would not show&amp;nbsp;unless VS is restarted.&lt;/P&gt;&lt;P&gt;&amp;nbsp;I would guess that setting it up to run as you showed will eliminate that issue in the spawned instance of VS but I still would need to remember to restart the main instance once I am finished debugging.&lt;/P&gt;&lt;P&gt;Thanks alot.&lt;/P&gt;&lt;P&gt;Paul</description><pubDate>Fri, 06 Jul 2007 10:35:07 GMT</pubDate><dc:creator>Paul Chase</dc:creator></item><item><title>RE: Debuggin a Type Editor</title><link>http://forum.strataframe.net/FindPost10023.aspx</link><description>LOL....yeah, that is the life of a type editor developer :D&amp;nbsp; VS snuffs most type editor exceptions so you either get nothing....or blown out.&amp;nbsp; There is a way to debug a type editor though....set your project to run an external program on debug (this can be for a class library as well).&amp;nbsp; Right-click your project and go to properties.&amp;nbsp; Select the Debug tab.&lt;/P&gt;&lt;P&gt;Next, tell it to start up the VS devenv.exe for the external program.&amp;nbsp; Now when you run your program in debug (Ctrl+F5) it will launch another session of VS.&amp;nbsp; But your project with your type editor will break anywhere you place a break point and you can then debug your type editor....very nice trick ;)&lt;/P&gt;&lt;P&gt;&lt;IMG src="http://forum.strataframe.net/Uploads/Images/ca64393c-e234-40fd-b7b5-02b4.png"&gt;</description><pubDate>Fri, 06 Jul 2007 09:52:41 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Debuggin a Type Editor</title><link>http://forum.strataframe.net/FindPost10015.aspx</link><description>I found the problem, It ended up that&amp;nbsp;I had a type cast problem. Still is there is a better way than just getting lucky and finding the issue?</description><pubDate>Thu, 05 Jul 2007 22:42:42 GMT</pubDate><dc:creator>Paul Chase</dc:creator></item></channel></rss>