techl / MonoRemoteDebugger

Other
83 stars 18 forks source link

Breakpoints don't work on ARM based machine + XmlException #24

Open damgot opened 8 years ago

damgot commented 8 years ago

Installed product versions

I'm using MonoRemoteDebugger on a ARM machine based on a OpenEmbedded OS. I'm able to start MonoRemoteDebugger.Server and my program is well transfered from my VS to my ARM machine and then executed. But breakpoints don't work at all : "this breakpoint will not currently be hit. No symbols have been loaded for this document. Also, when my program ended, I've the following error from MonoRemoteDebugger.Server :

2016-09-06 09:14:31.4129|INFO|MonoRemoteDebugger.SharedLib.Server.ClientSession|CommunicationError : System.Xml.XmlException: Unexpected end of file.
  at System.Xml.EncodingStreamWrapper.ReadBOMEncoding (Boolean notOutOfBand) <0xb42c5a18 + 0x001e0> in <filename unknown>:0
  at System.Xml.EncodingStreamWrapper..ctor (System.IO.Stream stream, System.Text.Encoding encoding) <0xb42c5000 + 0x000b3> in <filename unknown>:0
  at (wrapper remoting-invoke-with-check) System.Xml.EncodingStreamWrapper:.ctor (System.IO.Stream,System.Text.Encoding)
  at System.Xml.XmlUTF8TextReader.SetInput (System.IO.Stream stream, System.Text.Encoding encoding, System.Xml.XmlDictionaryReaderQuotas quotas, System.Xml.OnXmlDictionaryReaderClose onClose) <0xb43e4500 + 0x00063> in <filename unknown>:0
  at System.Xml.XmlDictionaryReader.CreateTextReader (System.IO.Stream stream, System.Text.Encoding encoding, System.Xml.XmlDictionaryReaderQuotas quotas, System.Xml.OnXmlDictionaryReaderClose onClose) <0xb43e2860 + 0x0005f> in <filename unknown>:0
  at System.Xml.XmlDictionaryReader.CreateTextReader (System.IO.Stream stream, System.Xml.XmlDictionaryReaderQuotas quotas) <0xb43e2810 + 0x00023> in <filename unknown>:0
  at System.Runtime.Serialization.XmlObjectSerializer.ReadObject (System.IO.Stream stream) <0xb43e2450 + 0x00037> in <filename unknown>:0
  at MonoRemoteDebugger.SharedLib.TcpCommunication.ReceiveContent (Int32 size) <0xb43e1338 + 0x0013b> in <filename unknown>:0
  at MonoRemoteDebugger.SharedLib.TcpCommunication.Receive () <0xb43e0d50 + 0x00053> in <filename unknown>:0
  at MonoRemoteDebugger.SharedLib.Server.ClientSession.HandleSession () <0xb43dfd18 + 0x000b7> in <filename unknown>:0
Program closed: 0

How can I fix ?

Thanks

techcap commented 7 years ago

Did you test on simple console application? Current version doesn't support breakpoints on Thread.

Displaying 'unexpected end of file' is normal when the program ended.

TechneWare commented 7 years ago

Same issue as above. Debugging on a Raspberry PI zero.

The debugger knows its attached and responds to the stop command but but no symbols are loaded. Using .NET 4.5.2 Application runs fine just can't break point.

2017-01-14 19:30:27.1124|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 :0 at System.Xml.XmlTextReader.Read () [0x00000] in :0 at System.Xml.XmlSimpleDictionaryReader.Read () [0x00000] in :0 at System.Xml.XmlReader.MoveToContent () [0x00000] in :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 :0 at System.Runtime.Serialization.DataContractSerializer.ReadObject (System.Xml.XmlDictionaryReader reader, Boolean verifyObjectName) [0x00000] in :0 at System.Runtime.Serialization.XmlObjectSerializer.ReadObject (System.Xml.XmlDictionaryReader reader) [0x00000] in :0 at System.Runtime.Serialization.DataContractSerializer.ReadObject (System.Xml.XmlReader reader) [0x00000] in :0 at System.Runtime.Serialization.XmlObjectSerializer.ReadObject (System.IO.Stream stream) [0x00000] in :0 at MonoRemoteDebugger.SharedLib.TcpCommunication.ReceiveContent (Int32 size) [0x00000] in :0 at MonoRemoteDebugger.SharedLib.TcpCommunication.Receive () [0x00000] in :0 at MonoRemoteDebugger.SharedLib.Server.ClientSession.HandleSession () [0x00000] in :0 Program closed: 137 2017-01-14 19:30:27.1500|INFO|MonoRemoteDebugger.SharedLib.Server.MonoDebugServer|Waiting for client

tom-2015 commented 7 years ago

Have the same problem on the Raspberry Pi. I like this tool because it's really easy to set up and it would be great to have support for the Raspberry and VB .NET so I can get rid of printing debug info to the console.

techcap commented 7 years ago

I'm sorry but I don't know VB.net so can't test it.

jeroen94704 commented 7 years ago

Any progress on this issue? I'm having the same problem. Trying to debug a very basic C# console application (just printing helloworld from Main) using Mono 4.0.3 on an ARM-based embedded Linux machine, and while the application starts and runs fine when I select remote debugging from the MonoRemoteDebugger menu item, breakpoints do not get hit. While the application is running breakpoints are disabled with the "Breakpoint will not be hit. No symbols have been loaded for this document" hint.

Please let me know if there's anything I can do to help you diagnose what's going on here.