![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks. |
| |||||||
| |
| | #1 (permalink) |
| | 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? |
My System Specs![]() |
| | #2 (permalink) |
| | Re: Debugging a .svc service "Mike Russo" <Mike Russo@discussions.microsoft.com> wrote in message news CB5163B-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 |
My System Specs![]() |
| | #3 (permalink) |
| | 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 > news CB5163B-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 > > |
My System Specs![]() |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Forum | |||
| JIT debugging | General Discussion | |||
| JIT Debugging | Software | |||
| JIT Debugging | Software | |||
| JIT Debugging | .NET General | |||