Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   ASP .Net Building Controls (http://www.velocityreviews.com/forums/f59-asp-net-building-controls.html)
-   -   Debugging at design time (http://www.velocityreviews.com/forums/t757323-debugging-at-design-time.html)

G Dean Blake 12-13-2004 12:59 AM

Debugging at design time
 
It appears easy using vs.net to debug servercontrols during runtime but how
can I step through code that gets executed at design time. for instance
when properties are set.
Thanks,
G



John Saunders 12-13-2004 01:06 AM

Re: Debugging at design time
 
"G Dean Blake" <gb@nospam.com> wrote in message
news:Ovw8N8K4EHA.2016@TK2MSFTNGP15.phx.gbl...
> It appears easy using vs.net to debug servercontrols during runtime but
> how can I step through code that gets executed at design time. for
> instance when properties are set.


Start another instance of VS.NET. Then use Tools->Debug Processes to locate
the devenv.exe instance housing your test project. You can now set exception
trapping, or open the source files and set breakpoints.

John Saunders



G Dean Blake 12-15-2004 01:48 AM

Re: Debugging at design time
 
The book I have is "Developing Microsoft ASP.NET Server Controls and
Components" I don't know if you have this book but it details out what you
refer to on Page 418.

It basicaly says to bring up your component project, go to debug properties
and set Start Application to devenv.exe, it then refers to a start action
setting that doesn't exist (probably written when beta vs.net was out). It
then says hit F5 and another version of vs.net will magically appear (it
doesen't). If I start another version of vs.net manually it get a permanent
hourglass.

I have tried for hours. I just can't get it to work and I can't find any
docs anywhere that tell how to make it work. If you know of any docs, I
would appreciate you pointing me to them.
G




"John Saunders" <johnwsaundersiii at hotmail.com> wrote in message
news:O9PbVAL4EHA.3236@TK2MSFTNGP15.phx.gbl...
> "G Dean Blake" <gb@nospam.com> wrote in message
> news:Ovw8N8K4EHA.2016@TK2MSFTNGP15.phx.gbl...
>> It appears easy using vs.net to debug servercontrols during runtime but
>> how can I step through code that gets executed at design time. for
>> instance when properties are set.

>
> Start another instance of VS.NET. Then use Tools->Debug Processes to
> locate the devenv.exe instance housing your test project. You can now set
> exception trapping, or open the source files and set breakpoints.
>
> John Saunders
>
>




John Saunders 12-15-2004 05:18 PM

Re: Debugging at design time
 
"G Dean Blake" <gb@nospam.com> wrote in message
news:eoVKXUs4EHA.2192@TK2MSFTNGP14.phx.gbl...
> The book I have is "Developing Microsoft ASP.NET Server Controls and
> Components" I don't know if you have this book but it details out what
> you refer to on Page 418.


You have the right book.

> It basicaly says to bring up your component project, go to debug
> properties and set Start Application to devenv.exe, it then refers to a
> start action setting that doesn't exist (probably written when beta vs.net
> was out). It then says hit F5 and another version of vs.net will
> magically appear (it doesen't). If I start another version of vs.net
> manually it get a permanent hourglass.
>
> I have tried for hours. I just can't get it to work and I can't find any
> docs anywhere that tell how to make it work. If you know of any docs, I
> would appreciate you pointing me to them.


This is one area where I don't follow what the book says. I usually have a
single solution with both the web control projects and with the test web
site in it. In order to debug design mode, I start up a new version of the
IDE, then use the new version to do Tools->Debug Processes. I select the
devenv instance that has my open solution in it, then attach to it. I can
then turn on exception breakpoints (which are the usual culprits in my
designer problems lately). I can also open the source files with File->Open,
then set breakpoints in them.

John Saunders




All times are GMT. The time now is 09:28 PM.

Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57