A Simple Example

Let's load up the example from Chapter 1, “Creating Your First Web Service,” and set a breakpoint within the GetRandomNumbers function. As you may recall, that function returns a variable number of random numbers that all lie within a range as requested by the user. If we want to debug this method, we just open up the Chapter1 project and set a breakpoint within the GetRandomNumbers function, as shown in Figure 5.10.

Figure 5.10. Setting a breakpoint in GetRandomNumbers.

With a breakpoint set, we next need to attach to the aspnet_wp.exe process, as shown in Figure 5.8. Doing so attaches the debugger and allows us to be notified ...

Get Creating and Consuming Web Services in Visual Basic® now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.