PC Review


Reply
Thread Tools Rate Thread

Debugging a remoting service

 
 
John Wilmot
Guest
Posts: n/a
 
      22nd Feb 2007
I have a service that is set up to use remoting. Is there a way that calls
from a web page to this service can be debugged in Visual Studio 2005?


 
Reply With Quote
 
 
 
 
Cowboy \(Gregory A. Beamer\)
Guest
Posts: n/a
 
      23rd Feb 2007
Start two instances on your machine, one with the app calling the Remoting
Service, one with the service. Set breakpoints in the service and call. That
is the easiest and least intrusive way to do it. When the service is called,
it will break. It is not as straightforward as a web service, but there are
plenty of pages out there to help.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
http://gregorybeamer.spaces.live.com

********************************************
Think outside the box!
********************************************
"John Wilmot" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>I have a service that is set up to use remoting. Is there a way that calls
>from a web page to this service can be debugged in Visual Studio 2005?
>


 
Reply With Quote
 
Thirsty Traveler
Guest
Posts: n/a
 
      23rd Feb 2007
Sorry... not following you here. The remoting "service" is running as an
actual service on my local machine. I want to be able to set breakpoints in
the service, but it is not obvious how to do this and Google searches tend
to land on "remote debugging" rather than debugging remote "remoting
services".

I am wondering... is it even possible? If so, I am thinking it is somehow
related to attaching a process in the debugger.

You would think something with such an obvious need would have more
information available, but that does not seem to be the case.

"Cowboy (Gregory A. Beamer)" <(E-Mail Removed)> wrote in
message news:94DA6040-66D2-468B-A8F4-(E-Mail Removed)...
> Start two instances on your machine, one with the app calling the Remoting
> Service, one with the service. Set breakpoints in the service and call.
> That is the easiest and least intrusive way to do it. When the service is
> called, it will break. It is not as straightforward as a web service, but
> there are plenty of pages out there to help.
>
> --
> Gregory A. Beamer
> MVP; MCP: +I, SE, SD, DBA
> http://gregorybeamer.spaces.live.com
>
> ********************************************
> Think outside the box!
> ********************************************
> "John Wilmot" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>>I have a service that is set up to use remoting. Is there a way that calls
>>from a web page to this service can be debugged in Visual Studio 2005?
>>

>



 
Reply With Quote
 
Laurent Bugnion [MVP]
Guest
Posts: n/a
 
      23rd Feb 2007
Hi,

Thirsty Traveler wrote:
> Sorry... not following you here. The remoting "service" is running as an
> actual service on my local machine. I want to be able to set breakpoints in
> the service, but it is not obvious how to do this and Google searches tend
> to land on "remote debugging" rather than debugging remote "remoting
> services".
>
> I am wondering... is it even possible? If so, I am thinking it is somehow
> related to attaching a process in the debugger.
>
> You would think something with such an obvious need would have more
> information available, but that does not seem to be the case.


In such case, I like to use the "Attach to process" menu in VS2005. You
find this menu under "Debug" for example.

In the dialog, select the process you want to attach to. If the PDB
files are also available (you must use the "Debug" version for this),
then you'll be able to place breakpoints in the code. Using this
technique, there is no need to start two instances of Visual Studio,
though I find that it sometimes helps to keep a better overview (one
instance of VS being the client and the other being the service).

HTH,
Laurent
--
Laurent Bugnion [MVP ASP.NET]
Software engineering, Blog: http://www.galasoft-LB.ch
PhotoAlbum: http://www.galasoft-LB.ch/pictures
Support children in Calcutta: http://www.calcutta-espoir.ch
 
Reply With Quote
 
Samuel R. Neff
Guest
Posts: n/a
 
      23rd Feb 2007

One thing I've found helpful is to have all my services offer a
console option which runs them as a console app instead of as a
windows service. Then I can hook up the start command in VS to run
the service as a console and immediately debug. Choose console option
usually by passing "/console" as an argument and detecting it within
Main().

Attach to process is another option as a previous poster mentioned.

HTH,

Sam

------------------------------------------------------------
We're hiring! B-Line Medical is seeking .NET
Developers for exciting positions in medical product
development in MD/DC. Work with a variety of technologies
in a relaxed team environment. See ads on Dice.com.



>> "John Wilmot" <(E-Mail Removed)> wrote in message
>> news:(E-Mail Removed)...
>>>I have a service that is set up to use remoting. Is there a way that calls
>>>from a web page to this service can be debugged in Visual Studio 2005?
>>>

>>

>


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Remoting or Web Service? Bishop Microsoft ASP .NET 2 26th Apr 2009 10:18 AM
Re: Having problem debugging a remoting object Alexander Shirshov Microsoft C# .NET 0 12th Mar 2005 07:09 AM
Windows Service as Remoting Host: Requested Service Not Found Fadi Microsoft C# .NET 2 10th May 2004 01:26 PM
Re: Re: Remoting or Web Service Patrick Santry Microsoft ASP .NET 0 23rd Nov 2003 07:26 PM
Remoting IIS - debugging nic Microsoft C# .NET 0 10th Sep 2003 04:17 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:48 PM.