You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For some months we've been having issues to debug native Android libraries, if I set a breakpoint in the application it works, but if I set a breakpoint in a library it is completely ignored.
Additionally, I see the following in the Debug console
System.IndexOutOfRangeException: Index was outside the bounds of the array.
at Mono.Debugger.Soft.Connection.decode_int(Byte[] packet, Int32& offset) in D:\a_work\1\s\External\debugger-libs\Mono.Debugger.Soft\Mono.Debugger.Soft\Connection.cs:line 732
at Mono.Debugger.Soft.Connection.Method_GetLocalsInfo(Int64 id) in D:\a_work\1\s\External\debugger-libs\Mono.Debugger.Soft\Mono.Debugger.Soft\Connection.cs:line 2308
at Mono.Debugger.Soft.MethodMirror.GetLocals() in D:\a_work\1\s\External\debugger-libs\Mono.Debugger.Soft\Mono.Debugger.Soft\MethodMirror.cs:line 276
at Mono.Debugger.Soft.StackFrame.GetVisibleVariableByName(String name) in D:\a_work\1\s\External\debugger-libs\Mono.Debugger.Soft\Mono.Debugger.Soft\StackFrame.cs:line 246
at Mono.Debugging.Soft.SoftDebuggerAdaptor.OnGetLocalVariable(EvaluationContext ctx, String name) in D:\a_work\1\s\External\debugger-libs\Mono.Debugging.Soft\SoftDebuggerAdaptor.cs:line 1072
at Mono.Debugging.Evaluation.NRefactoryExpressionEvaluatorVisitor.VisitIdentifierName(IdentifierNameSyntax node) in D:\a_work\1\s\External\debugger-libs\Mono.Debugging\Mono.Debugging.Evaluation\NRefactoryExpressionEvaluatorVisitor.cs:line 660
at Microsoft.CodeAnalysis.CSharp.CSharpSyntaxVisitor1.Visit(SyntaxNode node) at Mono.Debugging.Evaluation.NRefactoryExpressionEvaluatorVisitor.VisitMemberAccessExpression(MemberAccessExpressionSyntax node) in D:\a\_work\1\s\External\debugger-libs\Mono.Debugging\Mono.Debugging.Evaluation\NRefactoryExpressionEvaluatorVisitor.cs:line 979 at Microsoft.CodeAnalysis.CSharp.CSharpSyntaxVisitor1.Visit(SyntaxNode node)
at Mono.Debugging.Evaluation.NRefactoryExpressionEvaluatorVisitor.VisitBinaryExpression(BinaryExpressionSyntax node) in D:\a_work\1\s\External\debugger-libs\Mono.Debugging\Mono.Debugging.Evaluation\NRefactoryExpressionEvaluatorVisitor.cs:line 578
at Microsoft.CodeAnalysis.CSharp.CSharpSyntaxVisitor`1.Visit(SyntaxNode node)
at Mono.Debugging.Evaluation.ObjectValueAdaptor.GetExpressionValue(EvaluationContext ctx, String exp) in D:\a_work\1\s\External\debugger-libs\Mono.Debugging\Mono.Debugging.Evaluation\ObjectValueAdaptor.cs:line 1418
And the crash show some exception that I can not understand how it happens
The debugging shows nothing for the local field "thickness" but three dots, and I can not comprehend how something can be null here, when there is an if before that to avoid it, and the properties are of type double.
We're in a critical situation where we can not continue developing, because the debugger doesn't work, and the runtime exceptions are incomprehensible.
Steps to Reproduce
I don't have a reproduction steps for now
Link to public reproduction project repository
No response
Version with bug
8.0.3 GA
Is this a regression from previous behavior?
Yes, this used to work in .NET MAUI
Last version that worked well
6.0
Affected platforms
Android
Affected platform versions
No response
Did you find any workaround?
No
Relevant log output
System.IndexOutOfRangeException: Index was outside the bounds of the array.
at Mono.Debugger.Soft.Connection.decode_int(Byte[] packet, Int32& offset) in D:\a\_work\1\s\External\debugger-libs\Mono.Debugger.Soft\Mono.Debugger.Soft\Connection.cs:line 732
at Mono.Debugger.Soft.Connection.Method_GetLocalsInfo(Int64 id) in D:\a\_work\1\s\External\debugger-libs\Mono.Debugger.Soft\Mono.Debugger.Soft\Connection.cs:line 2308
at Mono.Debugger.Soft.MethodMirror.GetLocals() in D:\a\_work\1\s\External\debugger-libs\Mono.Debugger.Soft\Mono.Debugger.Soft\MethodMirror.cs:line 276
at Mono.Debugger.Soft.StackFrame.GetVisibleVariableByName(String name) in D:\a\_work\1\s\External\debugger-libs\Mono.Debugger.Soft\Mono.Debugger.Soft\StackFrame.cs:line 246
at Mono.Debugging.Soft.SoftDebuggerAdaptor.OnGetLocalVariable(EvaluationContext ctx, String name) in D:\a\_work\1\s\External\debugger-libs\Mono.Debugging.Soft\SoftDebuggerAdaptor.cs:line 1072
at Mono.Debugging.Evaluation.NRefactoryExpressionEvaluatorVisitor.VisitIdentifierName(IdentifierNameSyntax node) in D:\a\_work\1\s\External\debugger-libs\Mono.Debugging\Mono.Debugging.Evaluation\NRefactoryExpressionEvaluatorVisitor.cs:line 660
at Microsoft.CodeAnalysis.CSharp.CSharpSyntaxVisitor`1.Visit(SyntaxNode node) at Mono.Debugging.Evaluation.ObjectValueAdaptor.GetExpressionValue(EvaluationContext ctx, String exp) in D:\a\_work\1\s\External\debugger-libs\Mono.Debugging\Mono.Debugging.Evaluation\ObjectValueAdaptor.cs:line 1418
The text was updated successfully, but these errors were encountered:
Hi I'm an AI powered bot that finds similar issues based off the issue title.
Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!
Description
For some months we've been having issues to debug native Android libraries, if I set a breakpoint in the application it works, but if I set a breakpoint in a library it is completely ignored.
Additionally, I see the following in the Debug console
And the crash show some exception that I can not understand how it happens
![image](https://private-user-images.githubusercontent.com/17496741/344737683-88188c9e-3420-49f4-8d78-227c4e2c4d8e.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjAxMDc1MDEsIm5iZiI6MTcyMDEwNzIwMSwicGF0aCI6Ii8xNzQ5Njc0MS8zNDQ3Mzc2ODMtODgxODhjOWUtMzQyMC00OWY0LThkNzgtMjI3YzRlMmM0ZDhlLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MDQlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzA0VDE1MzMyMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTZiNmY1ZWZkNDRiMjQ5M2QwZjQyZTg1ZWQ4MmYyYTE2MGRhNzc1MWI2OTQ1ODIyYzA2MGMyNjllNWVlZjY0MjcmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.7Q647EzuyBDpffaoi9yqXPMm8VKAnKzEgiXVoYzYlRg)
The debugging shows nothing for the local field "thickness" but three dots, and I can not comprehend how something can be null here, when there is an if before that to avoid it, and the properties are of type double.
We're in a critical situation where we can not continue developing, because the debugger doesn't work, and the runtime exceptions are incomprehensible.
Steps to Reproduce
I don't have a reproduction steps for now
Link to public reproduction project repository
No response
Version with bug
8.0.3 GA
Is this a regression from previous behavior?
Yes, this used to work in .NET MAUI
Last version that worked well
6.0
Affected platforms
Android
Affected platform versions
No response
Did you find any workaround?
No
Relevant log output
The text was updated successfully, but these errors were encountered: