forked from ichengzi/MDbg-Sample
-
Notifications
You must be signed in to change notification settings - Fork 0
/
readme.htm
211 lines (170 loc) · 7.17 KB
/
readme.htm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
<html>
<head>
<title>CLR Managed Debugger</title>
<style>
<!--
/* Font Definitions */
@font-face
{font-family:Verdana;
panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman";}
h2
{margin-top:6.0pt;
margin-right:0in;
margin-bottom:6.0pt;
margin-left:0in;
line-height:24.0pt;
font-size:22.0pt;
font-family:Verdana;
color:gray;
font-weight:bold;}
h4
{margin-top:6.0pt;
margin-right:0in;
margin-bottom:6.0pt;
margin-left:0in;
line-height:20.0pt;
font-size:18.0pt;
font-family:Verdana;
font-weight:bold;}
h5
{margin-top:6.0pt;
margin-right:0in;
margin-bottom:6.0pt;
margin-left:0in;
line-height:16.0pt;
font-size:14.0pt;
font-family:Verdana;
font-weight:bold;}
a:link, span.MsoHyperlink
{color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{color:blue;
text-decoration:underline;}
p.MsoPlainText, li.MsoPlainText, div.MsoPlainText
{margin:0in;
margin-bottom:.0001pt;
font-size:10.0pt;
font-family:"Courier New";}
p
{margin:0in;
margin-bottom:.0001pt;
font-size:10.0pt;
font-family:"Courier New";}
pre
{margin:0in;
margin-bottom:.0001pt;
font-size:10.0pt;
font-family:"Courier New";}
p.text, li.text, div.text
{margin-top:0in;
margin-right:0in;
margin-bottom:6.0pt;
margin-left:0in;
line-height:12.0pt;
font-size:10.0pt;
font-family:Verdana;}
@page Section1
{size:8.5in 11.0in;
margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
{page:Section1;}
-->
</style>
<meta http-equiv=Content-Language content=en-us>
</head>
<body lang=EN-US link=blue vlink=blue>
<div class=Section1>
<h2>CLR Managed Debugger (mdbg) Sample 4.0</h2>
<p class=text> </p>
<h4>Sample Overview</h4>
<p class=MsoPlainText>This sample provides the source files for CLR command
line debugger, <b>mdbg</b>. These sources demonstrate how to use the CLR
Debugging interfaces. As a corollary, they also show usage of the CLR
MetaData, Symbol Store, and Process Publishing interfaces. </p>
<p class=MsoPlainText> </p>
<p class=MsoPlainText>This debugger is also accompanied by five extensions that
enhance its functionality: <br>
(Once built, simply type "load <file>" to load the desired
extension.)</p>
<p class=MsoPlainText style='margin-left:.5in;text-indent:-.25in'><span
style='font-family:Symbol'>·</span><span style='font-size:7.0pt;font-family:
"Times New Roman"'> </span><a
href="demo/IronPythonExtension/IronPython-Extension.htm">IronPython extension</a>
that adds Python's scripting engine to mdbg (pythonExt)</p>
<p class=MsoPlainText style='margin-left:.5in;text-indent:-.25in'><span
style='font-family:Symbol'>·</span><span style='font-size:7.0pt;font-family:
"Times New Roman"'> </span>Winforms
Graphical User Interface extension for easier debugging (gui)</p>
<p class=MsoPlainText style='margin-left:.5in;text-indent:-.25in'><span
style='font-family:Symbol'>·</span><span style='font-size:7.0pt;font-family:
"Times New Roman"'> </span>Edit
& Continue extension for modification of debugged programs (enc)</p>
<p class=MsoPlainText style='margin-left:.5in;text-indent:-.25in'><span
style='font-family:Symbol'>·</span><span style='font-size:7.0pt;font-family:
"Times New Roman"'> </span>IL
disassembler extension for display of IL code being executed (ildasm)</p>
<p class=MsoPlainText style='margin-left:.5in;text-indent:-.25in'><span
style='font-family:Symbol'>·</span><span style='font-size:7.0pt;font-family:
"Times New Roman"'> </span>Silverlight 4
debugging extension for mdbg (silverlight)</p>
<p class=MsoPlainText> </p>
<h4>Building the Sample</h4>
<p class=MsoPlainText style='text-align:justify'>To build the <b>mdbg</b>
sample you will need to have Visual Studio 2010 installed on your system. The
sample must be built using the Visual Studio 2010 solution file.</p>
<p class=MsoPlainText style='text-align:justify'> </p>
<p class=MsoPlainText style='margin-left:.5in;text-align:justify'><span
style='font-family:Symbol'>·</span><span style='font-size:7.0pt;font-family:
"Times New Roman"'> </span>Open
the mdbg.sln file.</p>
<p class=MsoPlainText style='margin-left:.5in'><span style='font-family:Symbol'>·</span><span
style='font-size:7.0pt;font-family:"Times New Roman"'>
</span>From the "Build" menu, select "Build Solution" </p>
<p class=MsoPlainText style='margin-left:.5in'><span style='font-family:Symbol'>·</span><span
style='font-size:7.0pt;font-family:"Times New Roman"'>
</span>The solution file uses "Debug" as the default, but you can
simply select "Release" from the dropdown menu at the top if you want
that instead. </p>
<p class=MsoPlainText> </p>
<p class=MsoPlainText><b><u>NOTE</u></b>: The IronPython extension project is
not built by default. More details here - <a
href="src/extensions/pythonExt/readme.txt">IronPython Extension</a>.</p>
<h5> </h5>
<h4>Running the Sample</h4>
<p class=MsoPlainText>Run <b>mdbg.exe</b> from the bin directory, or by
pressing F5 in Visual Studio. Mdbg commands are similar to cordbg commands.
Please refer to the cordbg manual, mdbg's help command, or the source code for
more information on how to use various debugger commands.</p>
<p class=MsoPlainText> </p>
<p class=MsoPlainText>Be sure to try the Graphical User Interface extension
which makes debugging managed programs easier and more natural. To load
this extension simply type "load gui" on the mdbg command line.</p>
<p class=MsoPlainText> </p>
<p class=MsoPlainText>This sample also contains API-level documentation for two
libraries, mdbgeng.dll and mdbgext.dll. Documentation for these libraries
can be found in the DOC subdirectory.</p>
<p class=MsoPlainText> </p>
<h4>Feedback on the Sample</h4>
<p class=MsoPlainText>This sample is presented courtesy of the CLR Debugger
Team. It is intended for use as a demonstration on writing .NET managed
debuggers in managed code. If you have any questions about the sample or the
managed debugging APIs, or if you would like to send us a suggestion about the
sample, please participate in our <a
href="http://social.msdn.microsoft.com/Forums/en-US/clr/threads">discussion
forum</a>.</p>
<p class=MsoPlainText> </p>
<p class=MsoPlainText><b><span style='font-size:18.0pt;font-family:Verdana'> </span></b></p>
<p class=MsoPlainText><b><span style='font-size:18.0pt;font-family:Verdana'>Links</span></b></p>
<pre> </pre><pre><a
href="http://msdn.microsoft.com/en-us/vstudio/default.aspx">Visual Studio 2010 & .NET Framework 4</a>
<p class=MsoPlainText> </p>
</div>
</body>
</html>