Windows Vista Forums
Vista Forums Home Join Vista Forums Donate Vista Tutorials Tags

Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
Register at Vista forums...the world biggest Windows Vista resource Join Vista Forums Now

Go Back   Vista Forums > Microsoft Technical Newsgroups > Indigo

Debugging a .svc service

 
 
Thread Tools Display Modes
Old 05-03-2006   #1 (permalink)
Mike Russo
Guest


 

Debugging a .svc service

I have a WCF service project that I created in VS2005 with the "WinFX Service
Library" template. I can set a breakpoint in its Service.cs file but it
doesn't break when the service is used by a client. I have debug="true" in
the Web.config file of the service. Should it be possible to debug this type
of project?
Old 05-05-2006   #2 (permalink)
Martin Kulov [MVP]
Guest


 

Re: Debugging a .svc service

"Mike Russo" <Mike Russo@discussions.microsoft.com> wrote in message
newsCB5163B-F00D-4192-B290-B08B8F7F122B@microsoft.com...
>I have a WCF service project that I created in VS2005 with the "WinFX
>Service
> Library" template. I can set a breakpoint in its Service.cs file but it
> doesn't break when the service is used by a client. I have debug="true"
> in
> the Web.config file of the service. Should it be possible to debug this
> type
> of project?


Yes,
just make sure that you are using Debug configuration, hit the .svc file
from IE to allow IIS start the working proccess and attach to it from
VS.NET.

Regards,

--
Martin Kulov
http://www.codeattest.com/blogs/martin

MVP, MCT, MCSD.NET Early Achiever

Old 05-08-2006   #3 (permalink)
Mike Russo
Guest


 

Re: Debugging a .svc service

Hi Martin,
Thanks for your reply. I noticed that the worker process, aspnet_wp.exe is
already running prior to browsing to my .svc. I can attach VS to it with my
service project loaded but breakpoints still do not work because the debug
symbols have not been loaded. That is what browsing to the .svc
accomplishes. And that is why it's important to do this prior to attaching
to aspnet_wp.exe. Thanks for saving me some head-scratching.
Mike

"Martin Kulov [MVP]" wrote:

> "Mike Russo" <Mike Russo@discussions.microsoft.com> wrote in message
> newsCB5163B-F00D-4192-B290-B08B8F7F122B@microsoft.com...
> >I have a WCF service project that I created in VS2005 with the "WinFX
> >Service
> > Library" template. I can set a breakpoint in its Service.cs file but it
> > doesn't break when the service is used by a client. I have debug="true"
> > in
> > the Web.config file of the service. Should it be possible to debug this
> > type
> > of project?

>
> Yes,
> just make sure that you are using Debug configuration, hit the .svc file
> from IE to allow IIS start the working proccess and attach to it from
> VS.NET.
>
> Regards,
>
> --
> Martin Kulov
> http://www.codeattest.com/blogs/martin
>
> MVP, MCT, MCSD.NET Early Achiever
>
>

 

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
JIT Debugging stimpy_cm Software 1 3 Days Ago 07:42 AM
Help debugging with MSE jhmosow VB Script 0 07-22-2008 01:29 PM
JIT Debugging stimpy_cm .NET General 0 06-16-2008 09:11 PM
T-SQL Debugging acolmano .NET General 0 04-18-2008 03:35 AM








Vistax64.com is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media 2005-2008

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