Is debugging of webparts during runtime possible?
Windows Server Forum Index Windows Server
Server discussion on Windows platform.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web winserverhelp.com
Is debugging of webparts during runtime possible?

 
Post new topic   Reply to topic    Windows Server Forum Index -> Portal Server Development
Author Message
Jan Rösner
Guest





Posted: Tue Oct 25, 2005 12:51 pm    Post subject: Is debugging of webparts during runtime possible? Reply with quote

Hi All,

I am developing a webpart and I wonder how I could debug the code while the
webpart is executed. I can attach the w3wp.exe-process on my remote
spp-server in Visual Studio.

BUT I cannot imagine how VS.NET should now debug the webpart which I have
deployed with stsadm -o addwppack ... on the spp-server. Is this really
possible???

I am building my webpart in VS.NET AND THEN I manually install it with
stsadm on the spp-server AND THEN I add the webpart on a spp-page and
display the page.

A) Is there a way to step into the code WHILE the webpart is displayed so
that I can debug the webpart during runtime? How to do this?
B) Do I have to adjust any settings in "Project properties"-->"Configuration
Properties"-->"Start-URL" (enter something like
http://server/areaThatContainsMyWebpartThatShouldBeDebuggedDuringRuntime ??)

I would really appreciate any help! Thanks in advance and best regards,
jan
Back to top
Gustavo
Guest





Posted: Tue Oct 25, 2005 12:51 pm    Post subject: RE: Is debugging of webparts during runtime possible? Reply with quote

Hi Jan,
In theory, it is possible to remote debug WebParts at the same way as any
other DotNet Web dll application. You need to compile it as "Debug", put the
".pdb" file together with the ".dll" file, install some software in the
server to activate Remote Debugging, and say some prayers to your favorite
God, because it will be a wonder if it works... Microsoft can say what they
like to say, but Remote Debugging does not work...
Anyway, if it by chance works, you need to be aware that the process in the
server will be stopped as long as you are debugging in VisualStudio, thus
don't do it in a production server.
Saludes,
Gustavo
http://www.gavd.net/servers/default.aspx


"Jan Rösner" wrote:

Quote:
Hi All,

I am developing a webpart and I wonder how I could debug the code while the
webpart is executed. I can attach the w3wp.exe-process on my remote
spp-server in Visual Studio.

BUT I cannot imagine how VS.NET should now debug the webpart which I have
deployed with stsadm -o addwppack ... on the spp-server. Is this really
possible???

I am building my webpart in VS.NET AND THEN I manually install it with
stsadm on the spp-server AND THEN I add the webpart on a spp-page and
display the page.

A) Is there a way to step into the code WHILE the webpart is displayed so
that I can debug the webpart during runtime? How to do this?
B) Do I have to adjust any settings in "Project properties"-->"Configuration
Properties"-->"Start-URL" (enter something like
http://server/areaThatContainsMyWebpartThatShouldBeDebuggedDuringRuntime ??)

I would really appreciate any help! Thanks in advance and best regards,
jan


Back to top
stefan_sainiuc
Guest





Posted: Wed Oct 26, 2005 12:51 pm    Post subject: Re: Is debugging of webparts during runtime possible? Reply with quote

And one more thing you have to do: the user on your PC you work on has
to be in the Power Users group of users on the SP server. :(
I managed to debug a web part while it's running but ... I prayed
enough...
Good luck, you'll need it.
Back to top
 
Post new topic   Reply to topic    Windows Server Forum Index -> Portal Server Development All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




New Topics Powered by phpBB