Click here to Skip to main content
15,883,883 members
Articles / Programming Languages / Visual Basic

Debugging .NET Framework and MS Visual Studio Managed Classes at Run time and Design time

Rate me:
Please Sign up or sign in to vote.
4.93/5 (29 votes)
11 Nov 20039 min read 261.4K   917   69  
This article explains how it is possible to seamlessly set breakpoints, step into, set watches and examine local variables for .NET framework classes as well as any other managed assemblies.
REM DEBUGMAKE.BAT

rem delete any il file left over from a previous invocation, else output will be appended to it and compilation will fail
del %1.il

rem call ILDASM to create the il file
ILDASM  /OUT=%1.il /NOBAR /LINENUM /SOURCE %1

rem call ILASM to compile a debug version of the dll as well as a pdb file
ILASM /DEBUG /DLL /QUIET /OUTPUT=%1 %1.IL

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Web Developer
India India
Sumeet is the main architect of Copernicus, a Hospital Information System owned by Eutech Cybernetics and loves development, esp. in Visual Basic .Net as it removes so many of the limitations that were so frustrating in VB6.

He practiced as a General Surgeon for many years in India before finding his real passion was software development. Sumeet stays in Pondicherry, a small town just south of Chennai, in India, as he loves its peaceful and very special atmosphere

Comments and Discussions