Пример #1
0
        private HandlerAction DoAssemblyLoadEvent(AssemblyLoadEvent e)
        {
            if (m_breakInMain && e.Assembly.EntryPoint != null)
            {
                AddBreakpoint(new Breakpoint("entry point", 1), e.Assembly.EntryPoint, 0);
            }

            NSApplication.sharedApplication().BeginInvoke(() => m_debugger.OnAssemblyLoad(e));

            return HandlerAction.Resume;
        }
Пример #2
0
        private void OnAssemblyLoad(AssemblyLoadEvent e)
        {
            var assembly = e.Assembly;
            ProcessLoadedAssembly(assembly);
            var debugAssembly = DebugAssemblyFor(assembly);

            AssemblyUnloaded(debugAssembly);
        }
Пример #3
0
        internal void OnAssemblyLoad(AssemblyLoadEvent e)
        {
            if (DebuggerWindows.WriteEvents)
                m_transcript.WriteLine(Output.Normal, "Loaded assembly '{0}'", e.Assembly.GetName().Name);

            try
            {
                e.Assembly.Metadata = AssemblyCache.Load(e.Assembly.Location, false);

                Broadcaster.Invoke("debugger loaded assembly", e.Assembly);
            }
            catch (Exception ee)
            {
                m_transcript.WriteLine(Output.Error, "Couldn't load {0} ({1})", e.Assembly.Location, ee.Message);
            }
        }