Is it possible to debug a Silverlight project and WCF at the same time?

I have 3 projects in my solution: 1) Silverlight application project 2) ASP.Net web application project 3) WCF service application. Projects 1 and 2 have a link to project 3. The type of binding is a basic HTTTP binding.

If I set project 2 as an initial project, I set the break points set in both projects 1 and 2, but not at the break points in project 3.

If I set project 3 as a launch project, I can still use my client application, and break points in project 3 fall, but not break points in projects 1 and 2.

I would like to be able to set breakpoints in all projects of my solution and hit them no matter which project launches the selection. I tried to enable tracing in the WCF project and to include details in the exception; nor worked. Any tips?

+3
source share
5 answers

You checked in the Debug | Attach Processes to see which processes VS is connected to?

I suspect it is not connected to the development web server running the WCF service. If this started with an ASP.NET application, try adding an attachment to another web development service.

+1
source

, , , , , .

, , .

0

( ), , , .. . , -, Visual Studio (. ), , - ( ).

, . - :

System.Diagnostics.Debugger.Break();

Windows , . , , .

Peter Oehlert .

0

, , .

, Debug- > Attach to Process, WCF. WCF ASP Silverlight , . , , , , WCF, ASP SL, .

, , . Debug- > Windows → Processes, Debug → Windows → Threads .

0

.

1) Visual Studio. - . , , , .

2) , , - Debug → . -. Visual Studio.

However, if both of them work inside IIS, you will have a conflict when trying to connect two debugging sessions in IIS. Try to run one (or both) of them on the local development server. You can fix the IP # of the development server if you need to keep a link to the service.

0
source

Source: https://habr.com/ru/post/1717482/


All Articles