Skip to content

Child AppDomain code points not resolved #191

Open
@ezverev

Description

@ezverev

I have a test project which I try to debug with Mono.Debugging.Soft:

        public static void Main(string[] args)
        {
            string appName = "ChildAppDomainTest";

            AppDomainSetup setup = new AppDomainSetup();
            setup.ApplicationBase = AppDomain.CurrentDomain.BaseDirectory;
            setup.ApplicationName = appName;

            AppDomain newDomain = AppDomain.CreateDomain(appName, AppDomain.CurrentDomain.Evidence, setup);
            ChildDomainLogic childDomainProxy = (ChildDomainLogic)newDomain.CreateInstanceAndUnwrap(
                typeof(ChildDomainLogic).Assembly.FullName,
                typeof(ChildDomainLogic).FullName,
                true,
                BindingFlags.Default,
                null,
                new object[] { },
                null,
                null);

            DateTime result = childDomainProxy.Test1();
        }

the child domain logic is simple:

    public class ChildDomainLogic : MarshalByRefObject
    {
        public DateTime Test1()
        {
            Debug.WriteLine("ChildDomainLogic.Test1");
            return DateTime.Now;
        }
    }

If I set a breakpoint into the ChildDomainLogic it gets hit but the debugger does not resolve it as user code (shown as external code at the Callstack window) and code stepping does not show the execution location.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions