Debugging webservices
Messages   Related Types
This message was discovered on ASPFriends.com 'aspngwebservices' list.


Bill Bassler
I have a VS.Net project that contains a webservice project and a Windows
Forms project.
I realize that the paradigm is not the same as debugging multiple components
but what I'd like to be able to "step into" the webservice code when the
client calls a web method.

Is there a way to do this?

Reply to this message...
 
    
Djindo Lee
If your two projects are in the same solution, insert a break point on your
webservice call in your windows Form and when the app stops on it step into
the code with F11 and it will go automatically in the webservice.

Djindo

-----Original Message-----
From: Bill Bassler [mailto:Click here to reveal e-mail address]
Sent: Tuesday, June 11, 2002 9:12 AM
To: aspngwebservices
Subject: [aspngwebservices] Debugging webservices

I have a VS.Net project that contains a webservice project and a Windows
Forms project.
I realize that the paradigm is not the same as debugging multiple components
but what I'd like to be able to "step into" the webservice code when the
client calls a web method.

Is there a way to do this?

| [aspngwebservices] member Click here to reveal e-mail address = YOUR ID
| http://www.asplists.com/asplists/aspngwebservices.asp = JOIN/QUIT
| http://www.asplists.com/search = SEARCH Archives
Reply to this message...
 
    
Bill Bassler
RE: [aspngwebservices] Debugging webservicesMy two projects are part of the
same solution. I have inserted a breakpoint within the webservice
(*.asmx.cs) source file. Using F11 does not step into the code in the
.asmx.cs file. It actually moves to the next line in the client. Is there
something else that I need to do?
"Djindo Lee" <Click here to reveal e-mail address> wrote in message
news:668215@aspngwebservices...
If your two projects are in the same solution, insert a break point on your
webservice call in your windows Form and when the app stops on it step into
the code with F11 and it will go automatically in the webservice.
Djindo
-----Original Message-----
From: Bill Bassler [mailto:Click here to reveal e-mail address]
Sent: Tuesday, June 11, 2002 9:12 AM
To: aspngwebservices
Subject: [aspngwebservices] Debugging webservices

I have a VS.Net project that contains a webservice project and a Windows
Forms project.
I realize that the paradigm is not the same as debugging multiple components
but what I'd like to be able to "step into" the webservice code when the
client calls a web method.
Is there a way to do this?

| [aspngwebservices] member Click here to reveal e-mail address = YOUR ID
| http://www.asplists.com/asplists/aspngwebservices.asp = JOIN/QUIT
| http://www.asplists.com/search = SEARCH Archives

Reply to this message...
 
    
Sreedhar Koganti
Also you might have to see, Project --> Properties(Right click on your
projectfile) in that Configuration Properties --> Debugging--> will be
there, you can see the necessary debug options there.
For your Problem:
as Djindo Lee told it should work. Since you are saying windows form and it
is in the same solution. You have to keep Break Poient in your Windows Form,
before or at Web Service Call, Then It should take you to web service inside
to Debug.

Sreedhar
http://www.w3coder.com

[Original message clipped]

_________________________________________________________________
Send and receive Hotmail on your mobile device: http://mobile.msn.com

Reply to this message...
 
    
Shannon Braun
Bill,
This is from nerd2nerd.net under tips and tricks.

January 2002
One of the things that they dropped from RC1 to release was the ability to
step into a web service when the call was made from a proxy in a Win Forms
client. You can still do it by manually attaching by attaching to the
process, or you can write a macro to attach to it for you.

1. Run the Visual Studio IDE, goto Tools, Macros, Macro Explorer.

2. Right click on MyMacros project, and select New Module... I called my
Utility

3. Add the following code to the Utility module directive:

Add this above the module declaration...
Imports System
Imports System.Windows.Forms

Add this in the module body...

Sub StepIntoWS()
Try

'get all of the local processes running
Dim ps As EnvDTE.Processes = DTE.Debugger.LocalProcesses()
Dim p As EnvDTE.Process

For Each p In ps
'if we find an apsnet_wp.exe process running, attach to it
If p.Name.EndsWith("aspnet_wp.exe") = True Then
p.Attach()
Exit For
End If
Next

'now execute the step into
DTE.Debugger.StepInto(True)
Catch e As Exception
MessageBox.Show(e.Message)
End Try

End Sub

You now can assign this macro to a keyboard short-cut, that will allow you
to attach to the aspnet_wp.exe process and step into the process.

Shannon
----- Original Message -----
From: "Sreedhar Koganti" <Click here to reveal e-mail address>
To: "aspngwebservices" <Click here to reveal e-mail address>
Sent: Tuesday, June 11, 2002 1:59 PM
Subject: [aspngwebservices] Re: Debugging webservices

[Original message clipped]

Reply to this message...
 
    
Raghavendra Ural
You have to run your webservice, and then go to the debugging mode of your
windows application, then it will go to the break point.

rgds
Ural

Sreedhar Koganti wrote:

[Original message clipped]

Reply to this message...
 
    
Bill Bassler
FYI - I'm not sure why some users are reporting they can simply set a
breakpoint and stop
within the webservice code. I could not. Someone here mentioned VS.Net
RC1's bevahior being
different ... maybe thats it?? Any way, an MS guy gave me this setup
procedure below which works. It also
pops up a the web service description (startup) page in the browser ...
which is OK I guess.

When you set mulitple projects in the startup options - make sure you
set both projects to start.

This will do the following:
1) Launch the startup page in your web service application (probably
service1.asmx1 - or whatever asmx file you have it set to).
2) Launch the windows application

You don't need to use the startup page for the webservice, but launching
it has the side effect of having VS attach the debugger to that
webservice process.

If you can't hit the breakpoint when calling the method from the windows
application, try just testing the method from the browser using the
start page that is launched.

Omar Khan
Program Manager
Visual Studio .NET

"Bill Bassler" <Click here to reveal e-mail address> wrote in message
news:668165@aspngwebservices...
[Original message clipped]

Reply to this message...
 
    
Alwin Jeyakumar
Hello All,
Here is the solution for this problem. I had the same
problem and now it's fine.. The problem is because the
solution file got corrupted by some means. All you
need to do is to create a new solution file and add
your existing asmx files to it. It should work..
Good Luck !!!!
Alwin

--- Bill Bassler <Click here to reveal e-mail address> wrote:
[Original message clipped]

__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

Reply to this message...
 
 
EnvDTE.Process
EnvDTE.Processes
System.Reflection.Module
System.Windows.Forms.MessageBox




Ad
MBR BootFX
Best-of-breed application framework for .NET projects, developed by Matthew Baxter-Reynolds and MBR IT
 
 Copyright © Matthew Baxter-Reynolds 2001-2008. '.NET 247 Software Development Services' is a trading style of MBR IT Solutions Ltd.
Contact Us - Terms of Use - Privacy Policy - www.dotnet247.com