submissions 
 Thanks & regards mohamed magdiSales  DepartmentDirector of SalesRetal solution 
& Developer Program Mobile: 002- 01005440676  Mobile: 002-01000409898E-Mail: : 
[email protected] Web Site: retalsolve.weebly.com                      
                                                                                
                                                 


     On Wednesday, March 18, 2015 2:00 PM, "[email protected]" 
<[email protected]> wrote:
   

 Send Mono-list mailing list submissions to
    [email protected]

To subscribe or unsubscribe via the World Wide Web, visit
    http://lists.ximian.com/mailman/listinfo/mono-list
or, via email, send a message with subject or body 'help' to
    [email protected]

You can reach the person managing the list at
    [email protected]

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Mono-list digest..."


Today's Topics:

  1. soft debugger and embedded API (Jonathan Mitchell)


----------------------------------------------------------------------

Message: 1
Date: Wed, 18 Mar 2015 10:38:25 +0000
From: Jonathan Mitchell <[email protected]>
To: [email protected]
Subject: [Mono-list] soft debugger and embedded API
Message-ID: <[email protected]>
Content-Type: text/plain; charset=utf-8

HI

I am trying to connect via the soft debugger to an app that uses the embedded 
API.

The debuggee is on OS X, the debugger is on a windows machine VM at 
192.168.1.72.
The debugee has .mdb files available that reference symbol source locations on 
the debugger.

I have been guided by the following so far:
http://www.jeffongames.com/2012/03/debugging-embedded-mono/

On the debug I do my setup like so prior to loading any app specific assemblies:

    _monoDomain = mono_jit_init_version(domainName, version);
    mono_debug_init(MONO_DEBUG_FORMAT_MONO);
    mono_debug_domain_create(_monoDomain);

    const char* jit_options[] = {
        "--soft-breakpoints",
        "--debugger-agent=transport=dt_socket,address=192.168.1.72:10000"
    };
    
    mono_jit_parse_options(2, (char**)jit_options);


I have configured Xamarin Studio to use the soft debugger and when it is 
listening I can telnet into 192.168.1.72:10000.
However I don?t get any sort of debug activity when I run the debugee with the 
debugger listening.

Any pointers would be appreciated.

Two points:

1. The link above states : If the Mono client can't connect to the debugging 
server when it starts up, it will call exit, which is no good.
I don?t see this behaviour. The app runs whether the debug server is up or not.

2. A source note for mono_debug_init at 
https://github.com/mono/mono/blob/adb9681393a8dfec2ca9c2e8c5a4ed72d663878d/mono/metadata/mono-debug.c#L121
says 

 * This method must be called after loading corlib,
 * but before opening the application's main assembly because we need to set 
some
 * callbacks here.

Is the prior call to  mono_jit_init_version enough to satisfy the above 
condition?

Thanks

Jonathan












------------------------------

_______________________________________________
Mono-list mailing list
[email protected]
http://lists.ximian.com/mailman/listinfo/mono-list


End of Mono-list Digest, Vol 119, Issue 11
******************************************


  
_______________________________________________
Mono-list maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-list

Reply via email to