techl / MonoRemoteDebugger

Other
83 stars 18 forks source link

Solved! [Problem | Bug] Never hit a BreakPoint - RaspberryPi3 w/ Mono #25

Closed JnrGuerreiro closed 7 years ago

JnrGuerreiro commented 8 years ago

Could help me with problem described below ?

Installed product versions

Problem while try to debug a program running on Raspberry Pi 3 w/ mono 4.4.2

Current behavior

The program is compiled, sent and run normally on Raspberry Pi 3, but never hit any breakpoint added in VS15.

Expected behavior

This tool need to hit breakpoints using VisualStudio 2015 Community, to be possible debug any program remotely

MonoRemoteDebbuger.Log - This is Log of an application with breakpoint that was runned on Debugger .

2016-09-09 23:00:44.6462|TRACE|MonoRemoteDebugger.SharedLib.Server.MonoDebugServer|Start announcing 2016-09-09 23:00:45.1252|INFO|MonoRemoteDebugger.SharedLib.Server.MonoDebugServer|Waiting for client 2016-09-09 23:01:01.1066|INFO|MonoRemoteDebugger.SharedLib.Server.MonoDebugServer|Accepted client: 192.168.140.1:55358 2016-09-09 23:01:01.6260|TRACE|MonoRemoteDebugger.SharedLib.Server.ClientSession|New Session from 192.168.140.1 2016-09-09 23:01:01.6894|TRACE|MonoRemoteDebugger.SharedLib.Server.ClientSession|Receiving content from 192.168.140.1 2016-09-09 23:01:01.8954|TRACE|MonoRemoteDebugger.SharedLib.Server.ClientSession|Extracted content from 192.168.140.1 to /tmp/MonoRemoteDebugger/qiyi6g75.yr2 2016-09-09 23:01:01.9245|TRACE|MonoRemoteDebugger.SharedLib.Server.Pdb2MdbGenerator|/tmp/MonoRemoteDebugger/qiyi6g75.yr2 2016-09-09 23:01:01.9309|TRACE|MonoRemoteDebugger.SharedLib.Server.Pdb2MdbGenerator|1 2016-09-09 23:01:01.9853|TRACE|MonoRemoteDebugger.SharedLib.Server.Pdb2MdbGenerator|Generate mdp for: /tmp/MonoRemoteDebugger/qiyi6g75.yr2/Teste.exe 2016-09-09 23:01:02.3724|TRACE|MonoRemoteDebugger.SharedLib.Server.Pdb2MdbGenerator|Transformed Debuginformation pdb2mdb 2016-09-09 23:01:15.9224|INFO|MonoRemoteDebugger.SharedLib.Server.ClientSession|CommunicationError : System.Xml.XmlException: Document element did not appear. Line 1, position 1. at Mono.Xml2.XmlTextReader.Read () [0x00000] in <filename unknown>:0 at System.Xml.XmlTextReader.Read () [0x00000] in <filename unknown>:0 at System.Xml.XmlSimpleDictionaryReader.Read () [0x00000] in <filename unknown>:0 at System.Xml.XmlReader.MoveToContent () [0x00000] in <filename unknown>:0 at System.Runtime.Serialization.XmlFormatterDeserializer.Deserialize (System.Xml.XmlReader reader, System.Type declaredType, System.Runtime.Serialization.KnownTypeCollection knownTypes, IDataContractSurrogate surrogate, System.Runtime.Serialization.DataContractResolver resolver, System.Runtime.Serialization.DataContractResolver defaultResolver, System.String name, System.String ns, Boolean verifyObjectName) [0x00000] in <filename unknown>:0 at System.Runtime.Serialization.DataContractSerializer.ReadObject (System.Xml.XmlDictionaryReader reader, Boolean verifyObjectName) [0x00000] in <filename unknown>:0 at System.Runtime.Serialization.XmlObjectSerializer.ReadObject (System.Xml.XmlDictionaryReader reader) [0x00000] in <filename unknown>:0 at System.Runtime.Serialization.DataContractSerializer.ReadObject (System.Xml.XmlReader reader) [0x00000] in <filename unknown>:0 at System.Runtime.Serialization.XmlObjectSerializer.ReadObject (System.IO.Stream stream) [0x00000] in <filename unknown>:0 at MonoRemoteDebugger.SharedLib.TcpCommunication.ReceiveContent (Int32 size) [0x00000] in <filename unknown>:0 at MonoRemoteDebugger.SharedLib.TcpCommunication.Receive () [0x00000] in <filename unknown>:0 at MonoRemoteDebugger.SharedLib.Server.ClientSession.HandleSession () [0x00000] in <filename unknown>:0 2016-09-09 23:01:15.9340|INFO|MonoRemoteDebugger.SharedLib.Server.MonoDebugServer|Waiting for client

techcap commented 8 years ago

What mono version did you use? I tested on pi3 with mono 4.4.1.

JnrGuerreiro commented 8 years ago

This is the version Installed.

Mono JIT compiler version 4.4.2 (Stable 4.4.2.11/f72fe45 Fri Jul 29 10:21:58 UTC 2016) Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com TLS: __thread SIGSEGV: normal Notifications: epoll Architecture: armel,vfp+hard Disabled: none Misc: softdebug LLVM: supported, not enabled. GC: sgen

JnrGuerreiro commented 8 years ago

If I Try to debug normally on Visual Studio, this works. So I open Debug/Windows/Modules and when in MonoRemoteDebbug, there's no modules loaded, and in the icon of breakpoint on VS I got a message; The breakpoint will not currently be hit. No symbols have been loaded for this document.

techcap commented 7 years ago

Today I tested also on pi3 with mono 4.6.1, and it works well. Did you test on simple console application?

File

JnrGuerreiro commented 7 years ago

I've Tried with a lot of versions of mono but the problem was solved when I've Downloaded and Compiled Mono version 4.9.0 On Raspberry PI.

image

With Mono 4.9.0 the Debugger is working pretty good. Thanks for attention.

image