Browse Source
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@4866 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61shortcuts
16 changed files with 94 additions and 783 deletions
@ -1,94 +0,0 @@ |
|||||||
// <file>
|
|
||||||
// <copyright see="prj:///doc/copyright.txt"/>
|
|
||||||
// <license see="prj:///doc/license.txt"/>
|
|
||||||
// <owner name="David Srbecký" email="dsrbecky@gmail.com"/>
|
|
||||||
// <version>$Revision$</version>
|
|
||||||
// </file>
|
|
||||||
|
|
||||||
using System; |
|
||||||
|
|
||||||
namespace Debugger.Tests |
|
||||||
{ |
|
||||||
public struct DebugType_ValueType |
|
||||||
{ |
|
||||||
public static void Main() |
|
||||||
{ |
|
||||||
new DebugType_ValueType().Fun(); |
|
||||||
} |
|
||||||
|
|
||||||
public void Fun() |
|
||||||
{ |
|
||||||
System.Diagnostics.Debugger.Break(); |
|
||||||
} |
|
||||||
} |
|
||||||
} |
|
||||||
|
|
||||||
#if TEST_CODE
|
|
||||||
namespace Debugger.Tests { |
|
||||||
public partial class DebuggerTests |
|
||||||
{ |
|
||||||
[NUnit.Framework.Test] |
|
||||||
public void DebugType_ValueType() |
|
||||||
{ |
|
||||||
ExpandProperties( |
|
||||||
"Value.Type", |
|
||||||
"DebugType.BaseType" |
|
||||||
); |
|
||||||
StartTest("DebugType_ValueType.cs"); |
|
||||||
|
|
||||||
ObjectDump("this", process.SelectedStackFrame.GetThisValue()); |
|
||||||
|
|
||||||
EndTest(); |
|
||||||
} |
|
||||||
} |
|
||||||
} |
|
||||||
#endif
|
|
||||||
|
|
||||||
#if EXPECTED_OUTPUT
|
|
||||||
<?xml version="1.0" encoding="utf-8"?> |
|
||||||
<DebuggerTests> |
|
||||||
<Test |
|
||||||
name="DebugType_ValueType.cs"> |
|
||||||
<ProcessStarted /> |
|
||||||
<ModuleLoaded>mscorlib.dll (No symbols)</ModuleLoaded> |
|
||||||
<ModuleLoaded>DebugType_ValueType.exe (Has symbols)</ModuleLoaded> |
|
||||||
<DebuggingPaused>Break DebugType_ValueType.cs:21,4-21,40</DebuggingPaused> |
|
||||||
<this> |
|
||||||
<Value |
|
||||||
AsString="{Debugger.Tests.DebugType_ValueType}" |
|
||||||
Expression="this" |
|
||||||
PrimitiveValue="{Exception: Value is not a primitive type}" |
|
||||||
Type="Debugger.Tests.DebugType_ValueType"> |
|
||||||
<Type> |
|
||||||
<DebugType |
|
||||||
BaseType="System.ValueType" |
|
||||||
FullName="Debugger.Tests.DebugType_ValueType" |
|
||||||
Kind="ValueType" |
|
||||||
Module="DebugType_ValueType.exe" |
|
||||||
Name="DebugType_ValueType"> |
|
||||||
<BaseType> |
|
||||||
<DebugType |
|
||||||
BaseType="System.Object" |
|
||||||
FullName="System.ValueType" |
|
||||||
Kind="Class" |
|
||||||
Module="mscorlib.dll" |
|
||||||
Name="ValueType"> |
|
||||||
<BaseType> |
|
||||||
<DebugType |
|
||||||
FullName="System.Object" |
|
||||||
Kind="Class" |
|
||||||
Module="mscorlib.dll" |
|
||||||
Name="Object"> |
|
||||||
<BaseType>null</BaseType> |
|
||||||
</DebugType> |
|
||||||
</BaseType> |
|
||||||
</DebugType> |
|
||||||
</BaseType> |
|
||||||
</DebugType> |
|
||||||
</Type> |
|
||||||
</Value> |
|
||||||
</this> |
|
||||||
<ProcessExited /> |
|
||||||
</Test> |
|
||||||
</DebuggerTests> |
|
||||||
#endif // EXPECTED_OUTPUT
|
|
||||||
@ -1,63 +0,0 @@ |
|||||||
// <file>
|
|
||||||
// <copyright see="prj:///doc/copyright.txt"/>
|
|
||||||
// <license see="prj:///doc/license.txt"/>
|
|
||||||
// <owner name="David Srbecký" email="dsrbecky@gmail.com"/>
|
|
||||||
// <version>$Revision$</version>
|
|
||||||
// </file>
|
|
||||||
|
|
||||||
using System; |
|
||||||
|
|
||||||
namespace Debugger.Tests.TestPrograms |
|
||||||
{ |
|
||||||
public class Exception |
|
||||||
{ |
|
||||||
public static void Main() |
|
||||||
{ |
|
||||||
System.Diagnostics.Debugger.Break(); |
|
||||||
|
|
||||||
throw new System.Exception("test"); |
|
||||||
} |
|
||||||
} |
|
||||||
} |
|
||||||
|
|
||||||
#if TEST_CODE
|
|
||||||
namespace Debugger.Tests { |
|
||||||
using NUnit.Framework; |
|
||||||
|
|
||||||
public partial class DebuggerTests |
|
||||||
{ |
|
||||||
[NUnit.Framework.Test] |
|
||||||
public void Exception() |
|
||||||
{ |
|
||||||
StartTest("Exception.cs"); |
|
||||||
|
|
||||||
process.ExceptionThrown += delegate { |
|
||||||
process.Terminate(); |
|
||||||
}; |
|
||||||
process.Paused += delegate { |
|
||||||
// Should not be raised for dead process
|
|
||||||
Assert.Fail(); |
|
||||||
}; |
|
||||||
|
|
||||||
process.AsyncContinue(); |
|
||||||
process.WaitForExit(); |
|
||||||
EndTest(); |
|
||||||
} |
|
||||||
} |
|
||||||
} |
|
||||||
#endif
|
|
||||||
|
|
||||||
#if EXPECTED_OUTPUT
|
|
||||||
<?xml version="1.0" encoding="utf-8"?> |
|
||||||
<DebuggerTests> |
|
||||||
<Test |
|
||||||
name="Exception.cs"> |
|
||||||
<ProcessStarted /> |
|
||||||
<ModuleLoaded>mscorlib.dll (No symbols)</ModuleLoaded> |
|
||||||
<ModuleLoaded>Exception.exe (Has symbols)</ModuleLoaded> |
|
||||||
<DebuggingPaused>Break Exception.cs:16,4-16,40</DebuggingPaused> |
|
||||||
<ExceptionThrown>System.Exception: test</ExceptionThrown> |
|
||||||
<ProcessExited /> |
|
||||||
</Test> |
|
||||||
</DebuggerTests> |
|
||||||
#endif // EXPECTED_OUTPUT
|
|
||||||
@ -1,35 +0,0 @@ |
|||||||
// <file>
|
|
||||||
// <copyright see="prj:///doc/copyright.txt"/>
|
|
||||||
// <license see="prj:///doc/license.txt"/>
|
|
||||||
// <owner name="David Srbecký" email="dsrbecky@gmail.com"/>
|
|
||||||
// <version>$Revision$</version>
|
|
||||||
// </file>
|
|
||||||
|
|
||||||
using System; |
|
||||||
|
|
||||||
namespace Debugger.Tests.TestPrograms |
|
||||||
{ |
|
||||||
public class FileRelease |
|
||||||
{ |
|
||||||
public static void Main() |
|
||||||
{ |
|
||||||
|
|
||||||
} |
|
||||||
} |
|
||||||
} |
|
||||||
|
|
||||||
#if TEST_CODE
|
|
||||||
namespace Debugger.Tests { |
|
||||||
public partial class DebuggerTests |
|
||||||
{ |
|
||||||
// [NUnit.Framework.Test]
|
|
||||||
// public void FileRelease()
|
|
||||||
// {
|
|
||||||
//
|
|
||||||
// }
|
|
||||||
} |
|
||||||
} |
|
||||||
#endif
|
|
||||||
|
|
||||||
#if EXPECTED_OUTPUT
|
|
||||||
#endif // EXPECTED_OUTPUT
|
|
||||||
@ -1,237 +0,0 @@ |
|||||||
// <file>
|
|
||||||
// <copyright see="prj:///doc/copyright.txt"/>
|
|
||||||
// <license see="prj:///doc/license.txt"/>
|
|
||||||
// <owner name="David Srbecký" email="dsrbecky@gmail.com"/>
|
|
||||||
// <version>$Revision$</version>
|
|
||||||
// </file>
|
|
||||||
|
|
||||||
using System; |
|
||||||
|
|
||||||
namespace Debugger.Tests.TestPrograms |
|
||||||
{ |
|
||||||
public class StackFrame_Arguments |
|
||||||
{ |
|
||||||
public static void Main() |
|
||||||
{ |
|
||||||
System.Diagnostics.Debugger.Break(); |
|
||||||
int ref_i = 2; |
|
||||||
int out_i; |
|
||||||
int out_i2; |
|
||||||
string ref_s = "B"; |
|
||||||
int? iNull = 5; |
|
||||||
int? iNull_null = null; |
|
||||||
StaticFunction( |
|
||||||
1, |
|
||||||
"A", |
|
||||||
null, |
|
||||||
ref ref_i, |
|
||||||
out out_i, |
|
||||||
out out_i2, |
|
||||||
ref ref_s, |
|
||||||
iNull, |
|
||||||
iNull_null |
|
||||||
); |
|
||||||
VarArgs(); |
|
||||||
VarArgs("A"); |
|
||||||
VarArgs("A", "B"); |
|
||||||
new StackFrame_Arguments().Function(1, "A"); |
|
||||||
} |
|
||||||
|
|
||||||
static void StaticFunction(int i, |
|
||||||
string s, |
|
||||||
string s_null, |
|
||||||
ref int ref_i, |
|
||||||
out int out_i, |
|
||||||
out int out_i2, |
|
||||||
ref string ref_s, |
|
||||||
int? iNull, |
|
||||||
int? iNull_null) |
|
||||||
{ |
|
||||||
out_i = 3; |
|
||||||
System.Diagnostics.Debugger.Break(); |
|
||||||
out_i2 = 4; |
|
||||||
} |
|
||||||
|
|
||||||
static void VarArgs(params string[] args) |
|
||||||
{ |
|
||||||
System.Diagnostics.Debugger.Break(); |
|
||||||
} |
|
||||||
|
|
||||||
void Function(int i, string s) |
|
||||||
{ |
|
||||||
System.Diagnostics.Debugger.Break(); |
|
||||||
} |
|
||||||
} |
|
||||||
} |
|
||||||
|
|
||||||
#if TEST_CODE
|
|
||||||
namespace Debugger.Tests { |
|
||||||
public partial class DebuggerTests |
|
||||||
{ |
|
||||||
[NUnit.Framework.Test] |
|
||||||
public void StackFrame_Arguments() |
|
||||||
{ |
|
||||||
StartTest("StackFrame_Arguments.cs"); |
|
||||||
|
|
||||||
for(int i = 0; i < 5; i++) { |
|
||||||
process.Continue(); |
|
||||||
ObjectDump("Arguments", process.SelectedStackFrame.GetArgumentValues()); |
|
||||||
} |
|
||||||
|
|
||||||
EndTest(); |
|
||||||
} |
|
||||||
} |
|
||||||
} |
|
||||||
#endif
|
|
||||||
|
|
||||||
#if EXPECTED_OUTPUT
|
|
||||||
<?xml version="1.0" encoding="utf-8"?> |
|
||||||
<DebuggerTests> |
|
||||||
<Test |
|
||||||
name="StackFrame_Arguments.cs"> |
|
||||||
<ProcessStarted /> |
|
||||||
<ModuleLoaded>mscorlib.dll (No symbols)</ModuleLoaded> |
|
||||||
<ModuleLoaded>StackFrame_Arguments.exe (Has symbols)</ModuleLoaded> |
|
||||||
<DebuggingPaused>Break StackFrame_Arguments.cs:16,4-16,40</DebuggingPaused> |
|
||||||
<DebuggingPaused>Break StackFrame_Arguments.cs:51,4-51,40</DebuggingPaused> |
|
||||||
<Arguments |
|
||||||
Capacity="16" |
|
||||||
Count="9"> |
|
||||||
<Item> |
|
||||||
<Value |
|
||||||
AsString="1" |
|
||||||
Expression="i" |
|
||||||
PrimitiveValue="1" |
|
||||||
Type="System.Int32" /> |
|
||||||
</Item> |
|
||||||
<Item> |
|
||||||
<Value |
|
||||||
AsString="A" |
|
||||||
Expression="s" |
|
||||||
IsReference="True" |
|
||||||
PrimitiveValue="A" |
|
||||||
Type="System.String" /> |
|
||||||
</Item> |
|
||||||
<Item> |
|
||||||
<Value |
|
||||||
AsString="null" |
|
||||||
Expression="s_null" |
|
||||||
IsNull="True" |
|
||||||
IsReference="True" |
|
||||||
Type="System.String" /> |
|
||||||
</Item> |
|
||||||
<Item> |
|
||||||
<Value |
|
||||||
AsString="2" |
|
||||||
Expression="ref_i" |
|
||||||
PrimitiveValue="2" |
|
||||||
Type="System.Int32" /> |
|
||||||
</Item> |
|
||||||
<Item> |
|
||||||
<Value |
|
||||||
AsString="3" |
|
||||||
Expression="out_i" |
|
||||||
PrimitiveValue="3" |
|
||||||
Type="System.Int32" /> |
|
||||||
</Item> |
|
||||||
<Item> |
|
||||||
<Value |
|
||||||
AsString="0" |
|
||||||
Expression="out_i2" |
|
||||||
PrimitiveValue="0" |
|
||||||
Type="System.Int32" /> |
|
||||||
</Item> |
|
||||||
<Item> |
|
||||||
<Value |
|
||||||
AsString="B" |
|
||||||
Expression="ref_s" |
|
||||||
IsReference="True" |
|
||||||
PrimitiveValue="B" |
|
||||||
Type="System.String" /> |
|
||||||
</Item> |
|
||||||
<Item> |
|
||||||
<Value |
|
||||||
AsString="{System.Nullable<System.Int32>}" |
|
||||||
Expression="iNull" |
|
||||||
PrimitiveValue="{Exception: Value is not a primitive type}" |
|
||||||
Type="System.Nullable<System.Int32>" /> |
|
||||||
</Item> |
|
||||||
<Item> |
|
||||||
<Value |
|
||||||
AsString="{System.Nullable<System.Int32>}" |
|
||||||
Expression="iNull_null" |
|
||||||
PrimitiveValue="{Exception: Value is not a primitive type}" |
|
||||||
Type="System.Nullable<System.Int32>" /> |
|
||||||
</Item> |
|
||||||
</Arguments> |
|
||||||
<DebuggingPaused>Break StackFrame_Arguments.cs:57,4-57,40</DebuggingPaused> |
|
||||||
<Arguments |
|
||||||
Capacity="4" |
|
||||||
Count="1"> |
|
||||||
<Item> |
|
||||||
<Value |
|
||||||
ArrayDimensions="{0}" |
|
||||||
ArrayRank="1" |
|
||||||
AsString="{System.String[]}" |
|
||||||
Expression="args" |
|
||||||
IsReference="True" |
|
||||||
PrimitiveValue="{Exception: Value is not a primitive type}" |
|
||||||
Type="System.String[]" /> |
|
||||||
</Item> |
|
||||||
</Arguments> |
|
||||||
<DebuggingPaused>Break StackFrame_Arguments.cs:57,4-57,40</DebuggingPaused> |
|
||||||
<Arguments |
|
||||||
Capacity="4" |
|
||||||
Count="1"> |
|
||||||
<Item> |
|
||||||
<Value |
|
||||||
ArrayDimensions="{1}" |
|
||||||
ArrayLength="1" |
|
||||||
ArrayRank="1" |
|
||||||
AsString="{System.String[]}" |
|
||||||
Expression="args" |
|
||||||
IsReference="True" |
|
||||||
PrimitiveValue="{Exception: Value is not a primitive type}" |
|
||||||
Type="System.String[]" /> |
|
||||||
</Item> |
|
||||||
</Arguments> |
|
||||||
<DebuggingPaused>Break StackFrame_Arguments.cs:57,4-57,40</DebuggingPaused> |
|
||||||
<Arguments |
|
||||||
Capacity="4" |
|
||||||
Count="1"> |
|
||||||
<Item> |
|
||||||
<Value |
|
||||||
ArrayDimensions="{2}" |
|
||||||
ArrayLength="2" |
|
||||||
ArrayRank="1" |
|
||||||
AsString="{System.String[]}" |
|
||||||
Expression="args" |
|
||||||
IsReference="True" |
|
||||||
PrimitiveValue="{Exception: Value is not a primitive type}" |
|
||||||
Type="System.String[]" /> |
|
||||||
</Item> |
|
||||||
</Arguments> |
|
||||||
<DebuggingPaused>Break StackFrame_Arguments.cs:62,4-62,40</DebuggingPaused> |
|
||||||
<Arguments |
|
||||||
Capacity="4" |
|
||||||
Count="2"> |
|
||||||
<Item> |
|
||||||
<Value |
|
||||||
AsString="1" |
|
||||||
Expression="i" |
|
||||||
PrimitiveValue="1" |
|
||||||
Type="System.Int32" /> |
|
||||||
</Item> |
|
||||||
<Item> |
|
||||||
<Value |
|
||||||
AsString="A" |
|
||||||
Expression="s" |
|
||||||
IsReference="True" |
|
||||||
PrimitiveValue="A" |
|
||||||
Type="System.String" /> |
|
||||||
</Item> |
|
||||||
</Arguments> |
|
||||||
<ProcessExited /> |
|
||||||
</Test> |
|
||||||
</DebuggerTests> |
|
||||||
#endif // EXPECTED_OUTPUT
|
|
||||||
@ -1,102 +0,0 @@ |
|||||||
// <file>
|
|
||||||
// <copyright see="prj:///doc/copyright.txt"/>
|
|
||||||
// <license see="prj:///doc/license.txt"/>
|
|
||||||
// <owner name="David Srbecký" email="dsrbecky@gmail.com"/>
|
|
||||||
// <version>$Revision$</version>
|
|
||||||
// </file>
|
|
||||||
|
|
||||||
using System; |
|
||||||
|
|
||||||
namespace Debugger.Tests.TestPrograms |
|
||||||
{ |
|
||||||
public class StackFrame_LocalVariables |
|
||||||
{ |
|
||||||
public static void Main() |
|
||||||
{ |
|
||||||
int i = 0; |
|
||||||
string s = "S"; |
|
||||||
string[] args = new string[] {"p1"}; |
|
||||||
object n = null; |
|
||||||
object o = new object(); |
|
||||||
System.Diagnostics.Debugger.Break(); |
|
||||||
} |
|
||||||
} |
|
||||||
} |
|
||||||
|
|
||||||
#if TEST_CODE
|
|
||||||
namespace Debugger.Tests { |
|
||||||
public partial class DebuggerTests |
|
||||||
{ |
|
||||||
[NUnit.Framework.Test] |
|
||||||
public void StackFrame_LocalVariables() |
|
||||||
{ |
|
||||||
StartTest("StackFrame_LocalVariables.cs"); |
|
||||||
|
|
||||||
ObjectDump("LocalVariables", process.SelectedStackFrame.GetLocalVariableValues()); |
|
||||||
|
|
||||||
EndTest(); |
|
||||||
} |
|
||||||
} |
|
||||||
} |
|
||||||
#endif
|
|
||||||
|
|
||||||
#if EXPECTED_OUTPUT
|
|
||||||
<?xml version="1.0" encoding="utf-8"?> |
|
||||||
<DebuggerTests> |
|
||||||
<Test |
|
||||||
name="StackFrame_LocalVariables.cs"> |
|
||||||
<ProcessStarted /> |
|
||||||
<ModuleLoaded>mscorlib.dll (No symbols)</ModuleLoaded> |
|
||||||
<ModuleLoaded>StackFrame_LocalVariables.exe (Has symbols)</ModuleLoaded> |
|
||||||
<DebuggingPaused>Break StackFrame_LocalVariables.cs:21,4-21,40</DebuggingPaused> |
|
||||||
<LocalVariables |
|
||||||
Capacity="8" |
|
||||||
Count="5"> |
|
||||||
<Item> |
|
||||||
<Value |
|
||||||
AsString="0" |
|
||||||
Expression="i" |
|
||||||
PrimitiveValue="0" |
|
||||||
Type="System.Int32" /> |
|
||||||
</Item> |
|
||||||
<Item> |
|
||||||
<Value |
|
||||||
AsString="S" |
|
||||||
Expression="s" |
|
||||||
IsReference="True" |
|
||||||
PrimitiveValue="S" |
|
||||||
Type="System.String" /> |
|
||||||
</Item> |
|
||||||
<Item> |
|
||||||
<Value |
|
||||||
ArrayDimensions="{1}" |
|
||||||
ArrayLength="1" |
|
||||||
ArrayRank="1" |
|
||||||
AsString="{System.String[]}" |
|
||||||
Expression="args" |
|
||||||
IsReference="True" |
|
||||||
PrimitiveValue="{Exception: Value is not a primitive type}" |
|
||||||
Type="System.String[]" /> |
|
||||||
</Item> |
|
||||||
<Item> |
|
||||||
<Value |
|
||||||
AsString="null" |
|
||||||
Expression="n" |
|
||||||
IsNull="True" |
|
||||||
IsReference="True" |
|
||||||
PrimitiveValue="{Exception: Value is not a primitive type}" |
|
||||||
Type="System.Object" /> |
|
||||||
</Item> |
|
||||||
<Item> |
|
||||||
<Value |
|
||||||
AsString="{System.Object}" |
|
||||||
Expression="o" |
|
||||||
IsReference="True" |
|
||||||
PrimitiveValue="{Exception: Value is not a primitive type}" |
|
||||||
Type="System.Object" /> |
|
||||||
</Item> |
|
||||||
</LocalVariables> |
|
||||||
<ProcessExited /> |
|
||||||
</Test> |
|
||||||
</DebuggerTests> |
|
||||||
#endif // EXPECTED_OUTPUT
|
|
||||||
@ -1,31 +0,0 @@ |
|||||||
// <file>
|
|
||||||
// <copyright see="prj:///doc/copyright.txt"/>
|
|
||||||
// <license see="prj:///doc/license.txt"/>
|
|
||||||
// <owner name="David Srbecký" email="dsrbecky@gmail.com"/>
|
|
||||||
// <version>$Revision$</version>
|
|
||||||
// </file>
|
|
||||||
|
|
||||||
using System; |
|
||||||
|
|
||||||
namespace Debugger.Tests.TestPrograms |
|
||||||
{ |
|
||||||
public class Symbols |
|
||||||
{ |
|
||||||
public static void Main() |
|
||||||
{ |
|
||||||
System.Diagnostics.Debugger.Break(); |
|
||||||
} |
|
||||||
} |
|
||||||
} |
|
||||||
|
|
||||||
#if TEST_CODE
|
|
||||||
namespace Debugger.Tests { |
|
||||||
public partial class DebuggerTests |
|
||||||
{ |
|
||||||
|
|
||||||
} |
|
||||||
} |
|
||||||
#endif
|
|
||||||
|
|
||||||
#if EXPECTED_OUTPUT
|
|
||||||
#endif // EXPECTED_OUTPUT
|
|
||||||
@ -1,68 +0,0 @@ |
|||||||
// <file>
|
|
||||||
// <copyright see="prj:///doc/copyright.txt"/>
|
|
||||||
// <license see="prj:///doc/license.txt"/>
|
|
||||||
// <owner name="David Srbecký" email="dsrbecky@gmail.com"/>
|
|
||||||
// <version>$Revision$</version>
|
|
||||||
// </file>
|
|
||||||
|
|
||||||
using System; |
|
||||||
using System.Windows.Forms; |
|
||||||
|
|
||||||
namespace Debugger.Tests.TestPrograms |
|
||||||
{ |
|
||||||
public class Value_PropertyVariableForm |
|
||||||
{ |
|
||||||
public static void Main() |
|
||||||
{ |
|
||||||
Form form = new Form(); |
|
||||||
System.Diagnostics.Debugger.Break(); |
|
||||||
System.Diagnostics.Debugger.Break(); |
|
||||||
} |
|
||||||
} |
|
||||||
} |
|
||||||
|
|
||||||
#if TEST_CODE
|
|
||||||
namespace Debugger.Tests { |
|
||||||
public partial class DebuggerTests |
|
||||||
{ |
|
||||||
/* |
|
||||||
[NUnit.Framework.Test] |
|
||||||
public void PropertyVariableForm() |
|
||||||
{ |
|
||||||
Variable local = null; |
|
||||||
|
|
||||||
StartProgram("PropertyVariableForm.cs"); |
|
||||||
WaitForPause(); |
|
||||||
foreach(Variable var in process.SelectedFunction.LocalVariables) { |
|
||||||
local = var; |
|
||||||
} |
|
||||||
Assert.AreEqual("form", local.Name); |
|
||||||
Assert.AreEqual(typeof(Variable), local.GetType()); |
|
||||||
|
|
||||||
foreach(Variable var in local.Value.SubVariables) { |
|
||||||
Assert.AreEqual(typeof(UnavailableValue), var.Value.GetType(), "Variable name: " + var.Name); |
|
||||||
process.StartEvaluation(); |
|
||||||
WaitForPause(); |
|
||||||
Assert.AreNotEqual(null, var.Value.AsString, "Variable name: " + var.Name); |
|
||||||
} |
|
||||||
|
|
||||||
process.Continue(); |
|
||||||
WaitForPause(); |
|
||||||
|
|
||||||
foreach(Variable var in local.Value.SubVariables) { |
|
||||||
Assert.AreEqual(typeof(UnavailableValue), var.Value.GetType(), "Variable name: " + var.Name); |
|
||||||
} |
|
||||||
process.StartEvaluation(); |
|
||||||
WaitForPause(); |
|
||||||
|
|
||||||
process.Continue(); |
|
||||||
process.WaitForPrecessExit(); |
|
||||||
CheckXmlOutput(); |
|
||||||
} |
|
||||||
*/ |
|
||||||
} |
|
||||||
} |
|
||||||
#endif
|
|
||||||
|
|
||||||
#if EXPECTED_OUTPUT
|
|
||||||
#endif // EXPECTED_OUTPUT
|
|
||||||
@ -1,48 +0,0 @@ |
|||||||
// <file>
|
|
||||||
// <copyright see="prj:///doc/copyright.txt"/>
|
|
||||||
// <license see="prj:///doc/license.txt"/>
|
|
||||||
// <owner name="David Srbecký" email="dsrbecky@gmail.com"/>
|
|
||||||
// <version>$Revision$</version>
|
|
||||||
// </file>
|
|
||||||
|
|
||||||
using System; |
|
||||||
|
|
||||||
namespace Debugger.Tests.TestPrograms |
|
||||||
{ |
|
||||||
public class _Break |
|
||||||
{ |
|
||||||
public static void Main() |
|
||||||
{ |
|
||||||
System.Diagnostics.Debugger.Break(); |
|
||||||
} |
|
||||||
} |
|
||||||
} |
|
||||||
|
|
||||||
#if TEST_CODE
|
|
||||||
namespace Debugger.Tests { |
|
||||||
public partial class DebuggerTests |
|
||||||
{ |
|
||||||
[NUnit.Framework.Test] |
|
||||||
public void _Break() |
|
||||||
{ |
|
||||||
StartTest("_Break.cs"); |
|
||||||
|
|
||||||
EndTest(); |
|
||||||
} |
|
||||||
} |
|
||||||
} |
|
||||||
#endif
|
|
||||||
|
|
||||||
#if EXPECTED_OUTPUT
|
|
||||||
<?xml version="1.0" encoding="utf-8"?> |
|
||||||
<DebuggerTests> |
|
||||||
<Test |
|
||||||
name="_Break.cs"> |
|
||||||
<ProcessStarted /> |
|
||||||
<ModuleLoaded>mscorlib.dll (No symbols)</ModuleLoaded> |
|
||||||
<ModuleLoaded>_Break.exe (Has symbols)</ModuleLoaded> |
|
||||||
<DebuggingPaused>Break _Break.cs:16,4-16,40</DebuggingPaused> |
|
||||||
<ProcessExited /> |
|
||||||
</Test> |
|
||||||
</DebuggerTests> |
|
||||||
#endif // EXPECTED_OUTPUT
|
|
||||||
@ -1,48 +0,0 @@ |
|||||||
// <file>
|
|
||||||
// <copyright see="prj:///doc/copyright.txt"/>
|
|
||||||
// <license see="prj:///doc/license.txt"/>
|
|
||||||
// <owner name="David Srbecký" email="dsrbecky@gmail.com"/>
|
|
||||||
// <version>$Revision$</version>
|
|
||||||
// </file>
|
|
||||||
|
|
||||||
using System; |
|
||||||
|
|
||||||
namespace Debugger.Tests.TestPrograms |
|
||||||
{ |
|
||||||
public class _Template |
|
||||||
{ |
|
||||||
public static void Main() |
|
||||||
{ |
|
||||||
System.Diagnostics.Debugger.Break(); |
|
||||||
} |
|
||||||
} |
|
||||||
} |
|
||||||
|
|
||||||
#if TEST_CODE
|
|
||||||
namespace Debugger.Tests { |
|
||||||
public partial class DebuggerTests |
|
||||||
{ |
|
||||||
[NUnit.Framework.Test] |
|
||||||
public void _Template() |
|
||||||
{ |
|
||||||
StartTest("_Template.cs"); |
|
||||||
|
|
||||||
EndTest(); |
|
||||||
} |
|
||||||
} |
|
||||||
} |
|
||||||
#endif
|
|
||||||
|
|
||||||
#if EXPECTED_OUTPUT
|
|
||||||
<?xml version="1.0" encoding="utf-8"?> |
|
||||||
<DebuggerTests> |
|
||||||
<Test |
|
||||||
name="_Template.cs"> |
|
||||||
<ProcessStarted /> |
|
||||||
<ModuleLoaded>mscorlib.dll (No symbols)</ModuleLoaded> |
|
||||||
<ModuleLoaded>_Template.exe (Has symbols)</ModuleLoaded> |
|
||||||
<DebuggingPaused>Break _Template.cs:16,4-16,40</DebuggingPaused> |
|
||||||
<ProcessExited /> |
|
||||||
</Test> |
|
||||||
</DebuggerTests> |
|
||||||
#endif // EXPECTED_OUTPUT
|
|
||||||
Loading…
Reference in new issue