all groups > dotnet windows forms designtime > june 2005 >
You're in the

dotnet windows forms designtime

group:

Debugging Design-Time-Code


Debugging Design-Time-Code Sparhawk
6/21/2005 12:35:07 AM
dotnet windows forms designtime:
Hi,

simple question: is there any way to debug design-time-code except with
MessageBoxes? If I develop, for example, a TypeConverter it is never
used at run-time. Any way to debug this?
Re: Debugging Design-Time-Code Bob Powell [MVP]
6/21/2005 8:04:12 PM
See Windows Forms Tips and Tricks

--
Bob Powell [MVP]
Visual C#, System.Drawing

Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm

All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.





[quoted text, click to view]

Re: Debugging Design-Time-Code azerty
6/21/2005 10:40:03 PM
It is very easy

You need to use Devenv.Exe for application host of your assembly

(in C:\Program Files\Microsoft Visual Studio .NET 2003\Common7\IDE)

and you need to define the output file of your assembly in good place like

C:\Program Files\Microsoft Visual Studio .NET
2003\Common7\IDE\PrivateAssemblies

The first instance of Visual Studio must never open this assembly, so you
did not have to open the final solution with this instance of VS

The first instance open the solution with Design assembly and the second
open a simple solution with form to test your component.

NB : you collect a lot information with this approach, for exemple, you
collect the entire call stack when you have an exception, with Reflector,
you can understand how VS work ...



"Sparhawk" <Kay.Eckernkamp@gmx.de> a écrit dans le message de
news:1119339307.541263.197080@g49g2000cwa.googlegroups.com...
[quoted text, click to view]

Re: Debugging Design-Time-Code Bob Powell [MVP]
6/22/2005 12:00:00 AM
[quoted text, click to view]

Most of what you say is good but the snippet above isn't very sound advice.

--
Bob Powell [MVP]
Visual C#, System.Drawing

Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm

All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.





[quoted text, click to view]

Re: Debugging Design-Time-Code azerty
6/27/2005 10:26:06 PM
I agree with you

It is just a simple way

in fact, I did not very well understand of Visual studio find its assembly
but if I put my assembly in privateAssemblies, It seems work fine !



"Bob Powell [MVP]" <bob@_spamkiller_bobpowell.net> a écrit dans le message
de news:umuJ3azdFHA.616@TK2MSFTNGP12.phx.gbl...
[quoted text, click to view]

Re: Debugging Design-Time-Code Bob Powell [MVP]
6/28/2005 9:16:04 AM
You can add a path to the registry that enables VS to find your assemblies.

Use
HKEY_LOCAL_MACHINE/Software/Microsoft/VisualStudio/7.1/AssemblyFolders/<your
own subkey> should contain a default entry with the path of the folder that
you'd like to include in the reference searches.

--
Bob Powell [MVP]
Visual C#, System.Drawing

Ramuseco Limited .NET consulting
http://www.ramuseco.com

Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm

All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.





[quoted text, click to view]

AddThis Social Bookmark Button