有使用C# 做过C#调试器的大侠们 , 请进来帮个忙, 有一个问题想请教一下.
- C# code
Object res;Process proc = Process.GetProcessById(pid);IEnumUnknown runtimes = metahost.EnumerateLoadedRuntimes(proc.Handle);ICLRRuntimeInfo runtime = GetRuntime(runtimes, desiredVersion);runtime.GetInterface(ref CLSID_ICorDebug, ref IID_ICorDebug, out res);((ICorDebug)res).Initialize();((ICorDebug)res).SetManagedHandler(new ManagedCallback(options));
已实现将调试器附加到进程和设置断点等功能, 但调试器应该怎样安全结束, 才能够保证现有被调试的进程可以继续运行呢?
目前的情况是调试器一旦停止 , 被调试的进程也立即被结束了.
献出我全部的240分, 感谢高手指点....
[解决办法]
高深了点,接分
[解决办法]
[解决办法]
太厉害了,现在工作时间充足,标记下,以后像lZ请教交流。
[解决办法]
[解决办法]
感谢分享,接分~