-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[NativeAOT] No variables or object inspection when debugging class library #82802
Comments
Tagging subscribers to this area: @agocke, @MichalStrehovsky, @jkotas Issue DetailsIt seems that if you have a native executable that loads a NativeAOT-built class library, when stepping into the C# code, there's no ability to view variables or introspect the C# side of things at all (not even parameters, etc); is this intentional, or is something set up incorrectly on my end? I did see some people say that they could view variables/introspect objects in other issues, but I'm not sure why that's not possible in this case.
|
Could you please share more details about your environment:
|
Did the debugger find symbols for the NativeAOT-built library. The library behaves like native code, without symbols the debugger won't see pretty much anything. /cc @LakshanF |
This ended up being user error; I was using |
This might be that DWARF information isn't as good as it could be. See #72552 I'll start looking into Release codegen specifically. We might be able to do better than we are right now. |
There are some reports (dotnet#82802) that debugging might be particularly bad in Release.
* Enable DwarfDump AOT test in Release There are some reports (#82802) that debugging might be particularly bad in Release. * Update warning counts for Release
It seems that if you have a native executable that loads a NativeAOT-built class library, when stepping into the C# code, there's no ability to view variables or inspect the C# side of things at all (not even parameters, etc); is this intentional, or is something set up incorrectly on my end? I did see some people say that they could view variables/inspect objects in other issues, but I'm not sure why that's not possible in this case.
The text was updated successfully, but these errors were encountered: