[Monodevelop-devel] Linux Remote Debugging

Peter Siegel siegelpeter2009 at gmail.com
Thu Dec 1 05:15:24 EST 2011


Monodevelop on windows uses the Mono 2.10.6 Runtime and automatically
generates mdb and pdb files.

when running the app on the device i get a stackttrace but with
"filename unkown:0"  But if i run the exe with mono --debug on windows
i get the filename / numbers.

I tried to rebuild the mdb with pdb2mdb on linux which worked ok, but
still no line numbers.

thank you for your help


On the Linux Box its the same (2.10.6)

Am 30. November 2011 20:28 schrieb Michael Hutchinson
<m.j.hutchinson at gmail.com>:
> On 27 November 2011 16:17, Peter Siegel <siegelpeter2009 at gmail.com> wrote:
>> Hi!
>> Im writing an Addin for Monodevelop which can debug mono Applications
>> on remote Linux hosts based on the Meego Plugin. It seems like the
>> Meego Addin has been discontinued... So i try to resurrect it as a
>> general Linux Remote Debugging Addin.... ;-)
>> I got it up and running, and the Debugger connects successfully, Pause
>> and Continue works, but the Debugger ignores all breakpoints.
>> I think the problem might be with the Assembly path in the  MDB files
>> which are transfered to the Linux Host from my Windows PC, because
>> FindLocation in ResolveBreakPoint is null.. and inisideLoadedRange ==
>> false
>>  Is there a way to change the Path info's in the MDB, so that i can
>> use them on windows and linux devices?
> That shouldn't matter, the paths are handled only in the context of
> the host. We did initially have some issue but fixed them so that
> MonoDevelop on Windows could debug Mono for Android apps.
> How are you building the apps on Windows? I assume you selected the
> Mono runtime so that your apps are built with mcs and have mdb
> debugging files. If you're using the .NET target runtime, then your
> apps will be built with csc files so will only have pdb files, which
> Mono cannot handle directly. You'd need to use pdb2mdb
> (mcs/tools/pdb2mdb) to convert them.
> What version of Mono is running on the target device? Can you verify
> that stack traces on the target device have file/line information that
> corresponds to real files on the Windows host?
> --
> Michael Hutchinson
> http://mjhutchinson.com

More information about the Monodevelop-devel-list mailing list