本文整理汇总了C#中ICorDebugAppDomain类的典型用法代码示例。如果您正苦于以下问题:C# ICorDebugAppDomain类的具体用法?C# ICorDebugAppDomain怎么用?C# ICorDebugAppDomain使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
ICorDebugAppDomain类属于命名空间,在下文中一共展示了ICorDebugAppDomain类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Break
public void Break(ICorDebugAppDomain pAppDomain, ICorDebugThread pThread)
{
EnterCallback(PausedReason.Break, "Break", pThread);
pauseOnNextExit = true;
ExitCallback();
}
示例2: Breakpoint
public virtual void Breakpoint(
ICorDebugAppDomain appDomain,
ICorDebugThread thread,
ICorDebugBreakpoint breakpoint)
{
this.DefaultHandler(appDomain);
}
示例3: Breakpoint
// Do not pass the pBreakpoint parameter as ICorDebugBreakpoint - marshaling of it fails in .NET 1.1
public void Breakpoint(ICorDebugAppDomain pAppDomain, ICorDebugThread pThread, IntPtr pBreakpoint)
{
ManagedCallback managedCallback = GetProcessCallbackInterface(pAppDomain);
if (managedCallback != null) {
managedCallback.Breakpoint(pAppDomain, pThread, pBreakpoint);
}
}
示例4: StepComplete
public void StepComplete(ICorDebugAppDomain pAppDomain, ICorDebugThread pThread, ICorDebugStepper pStepper, CorDebugStepReason reason)
{
ManagedCallback managedCallback = GetProcessCallbackInterface(pAppDomain);
if (managedCallback != null) {
managedCallback.StepComplete(pAppDomain, pThread, pStepper, reason);
}
}
示例5: GetProcessWrapper
private DebuggeeProcess GetProcessWrapper(ICorDebugAppDomain appDomain)
{
ICorDebugProcess process;
appDomain.GetProcess(out process);
return GetProcessWrapper(process);
}
示例6: DnAppDomain
internal DnAppDomain(DnProcess ownerProcess, ICorDebugAppDomain appDomain, int incrementedId) {
this.ownerProcess = ownerProcess;
this.assemblies = new DebuggerCollection<ICorDebugAssembly, DnAssembly>(CreateAssembly);
this.appDomain = new CorAppDomain(appDomain);
this.incrementedId = incrementedId;
NameChanged();
}
示例7: CorDebugAppDomain
public CorDebugAppDomain(ICorDebugAppDomain _appdomain) {
m_appdomain = _appdomain;
uint size = 0;
m_appdomain.GetName(0, out size, null);
StringBuilder name = new StringBuilder((int)size);
_appdomain.GetName((uint)name.Capacity, out size, name);
Name = name.ToString();
}
示例8: Breakpoint
public void Breakpoint(
ICorDebugAppDomain pAppDomain,
ICorDebugThread pThread,
ICorDebugBreakpoint pBreakpoint)
{
m_listner.PostBreakPoint(new CorThread(pThread));
//controller.Continue(0);
}
示例9: EditAndContinueRemap
public virtual void EditAndContinueRemap(
ICorDebugAppDomain appDomain,
ICorDebugThread thread,
ICorDebugFunction function,
bool accurate)
{
this.DefaultHandler(appDomain);
}
示例10: DnAppDomain
internal DnAppDomain(DnProcess ownerProcess, ICorDebugAppDomain appDomain, int uniqueId, int uniqueIdProcess) {
Process = ownerProcess;
assemblies = new DebuggerCollection<ICorDebugAssembly, DnAssembly>(CreateAssembly);
CorAppDomain = new CorAppDomain(appDomain);
UniqueId = uniqueId;
UniqueIdProcess = uniqueIdProcess;
NameChanged();
}
示例11: CreateAppDomain
public void CreateAppDomain(ICorDebugProcess pProcess, ICorDebugAppDomain pAppDomain)
{
var domain = new DebugDomain(null, pAppDomain);
Logger.WriteLine("App domain {0} created", domain.Name);
pAppDomain.Attach();
pProcess.Continue(0);
}
示例12: Breakpoint
public void Breakpoint(ICorDebugAppDomain pAppDomain, ICorDebugThread pThread, ICorDebugBreakpoint pBreakpoint)
{
var handler = OnBreakpoint;
if (handler != null)
{
handler(this, new DebuggerBreakpointEventArgs(pThread, pBreakpoint));
}
pAppDomain.Continue(0);
}
示例13: HandleEvalEvent
private void HandleEvalEvent(ICorDebugAppDomain pAppDomain, ICorDebugThread pThread, ICorDebugEval pEval)
{
var domain = GetProcessWrapper(pAppDomain).GetAppDomain(pAppDomain);
var thread = domain.GetThread(pThread);
var eval = Session.ComInstanceCollector.GetWrapper<RuntimeEvaluation>(pEval);
var eventArgs = new DebuggerEventArgs(domain, true);
eval.DispatchEvaluationCompleted(eventArgs);
FinalizeEvent(eventArgs);
}
示例14: MoveNext
//
// IEnumerator interface
//
#region IEnumerator Members
public bool MoveNext()
{
var a = new ICorDebugAppDomain[1];
uint c = 0;
int r = m_enum.Next((uint) a.Length, a, out c);
if (r == 0 && c == 1) // S_OK && we got 1 new element
m_ad = new CorAppDomain(a[0]);
else
m_ad = null;
return m_ad != null;
}
示例15: GetProcessCallbackInterface
public ManagedCallback GetProcessCallbackInterface(string name, ICorDebugAppDomain pAppDomain)
{
ICorDebugProcess pProcess;
try {
pProcess = pAppDomain.Process;
} catch (COMException e) {
debugger.TraceMessage("Ignoring callback \"" + name + "\": " + e.Message);
return null;
}
return GetProcessCallbackInterface(name, pProcess);
}