What makes a method non-debuggable?

G

Gustaf

I got a few classes generated by a tool (wsdl.exe) that are somehow 'hidden' from step-by-step debugging. I've added some methods to the classes, and would like to be able to step through them, but the debugger steps over the methods. Why is this happening?

Gustaf
 
M

Marc Gravell

I believe wsdl.exe adds [DebuggerStepThrough] or
[System.Diagnostics.DebuggerStepThroughAttribute] to the methods it
writes - if present, that would be the offender. IIRC, other similar
attributes exist. Look at the class file generated and see what it
has.

Marc
 
I

Ignacio Machin \( .NET/ C# MVP \)

Hi,

Gustaf said:
I got a few classes generated by a tool (wsdl.exe) that are somehow
'hidden' from step-by-step debugging. I've added some methods to the
classes, and would like to be able to step through them, but the debugger
steps over the methods. Why is this happening?


In addition to Mark's comments, check that the debug info exist for those
types.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top