[mono-android] debugger constantly detaches

l0nestar allan.bentham at thumbstar.com
Sun Jun 10 17:03:59 UTC 2012


I can’t see anything that hints at failure from logcat at all. I’ve attached
the whole log from start to finish for completeness.

http://mono-for-android.1047100.n5.nabble.com/file/n5710269/log.txt log.txt 

Some way in to my code I have put a breakpoint on a Log.Debug call.. the
debugger never hits it.. but the debug message itself does output to logcat.
(many times..) 

Looking at the build output - just noticed that visual studio holds on to
this file after its finished debugging, and subsequent rebuilds create this:

HyemDroid -> <snip>\bin\Debug\Hyem.dll
C:\Program Files
(x86)\MSBuild\Novell\Novell.MonoDroid.Common.targets(988,2): warning : The
process cannot access the file <snip>\bin\Debug\Hyem.dll.mdb' because it is
being used by another process.
C:\Program Files
(x86)\MSBuild\Novell\Novell.MonoDroid.Common.targets(988,2): warning :    at
System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
C:\Program Files
(x86)\MSBuild\Novell\Novell.MonoDroid.Common.targets(988,2): warning :    at
System.IO.FileStream.Init(String path, FileMode mode, FileAccess access,
Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize,
FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean
bFromProxy, Boolean useLongPath)
C:\Program Files
(x86)\MSBuild\Novell\Novell.MonoDroid.Common.targets(988,2): warning :    at
System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access)
C:\Program Files
(x86)\MSBuild\Novell\Novell.MonoDroid.Common.targets(988,2): warning :    at
Mono.CompilerServices.SymbolWriter.MonoSymbolWriter.WriteSymbolFile(Guid
guid)
C:\Program Files
(x86)\MSBuild\Novell\Novell.MonoDroid.Common.targets(988,2): warning :    at
Pdb2Mdb.Converter.Convert(AssemblyDefinition assembly, IEnumerable`1
functions, MonoSymbolWriter mdb)
C:\Program Files
(x86)\MSBuild\Novell\Novell.MonoDroid.Common.targets(988,2): warning :    at
Pdb2Mdb.Converter.Convert(String filename)
C:\Program Files
(x86)\MSBuild\Novell\Novell.MonoDroid.Common.targets(988,2): warning :    at
Xamarin.Android.Tasks.ConvertDebuggingFiles.Execute()
========== Rebuild All: 1 succeeded, 0 failed, 0 skipped ==========

Although it isn’t counted as an error… Restarting VS makes it go away.
(although I have to do this after every debug session  )

--
View this message in context: http://mono-for-android.1047100.n5.nabble.com/debugger-constantly-detaches-tp5710262p5710269.html
Sent from the Mono for Android mailing list archive at Nabble.com.


More information about the Monodroid mailing list