vs变量监视提示-VAR-CREATE: UNABLE TO CREATE VARIABLE OBJECT解决方法

本文介绍了一个在Linux环境下使用Visual Studio进行远程调试时遇到的问题:监视变量时出现-VAR-CREATE:UNABLETOCREATEVARIABLEOBJECT错误提示。通过添加-gdwarf-2编译选项解决了该问题。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

昨天有个linux应用在使用vs 远程debug的时候,debug可以正常进行,但是监视变量的时候提示-VAR-CREATE: UNABLE TO CREATE VARIABLE OBJECT,经测试,加上-gdwarf-2编译选项即可。

Unhandled exception: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.TypeInitializationException: The type initializer for 'SkiaSharp.SKImageInfo' threw an exception. ---> System.DllNotFoundException: Unable to load shared library 'libSkiaSharp' or one of its dependencies. In order to help diagnose loading problems, consider using a tool like strace. If you're using glibc, consider setting the LD_DEBUG environment variable: /home/jay/WattToolkit/assemblies/libSkiaSharp.so: cannot open shared object file: No such file or directory /home/jay/WattToolkit/dotnet/shared/Microsoft.NETCore.App/9.0.3/libSkiaSharp.so: cannot open shared object file: No such file or directory /home/jay/WattToolkit/assemblies/liblibSkiaSharp.so: cannot open shared object file: No such file or directory /home/jay/WattToolkit/dotnet/shared/Microsoft.NETCore.App/9.0.3/liblibSkiaSharp.so: cannot open shared object file: No such file or directory /home/jay/WattToolkit/assemblies/libSkiaSharp: cannot open shared object file: No such file or directory /home/jay/WattToolkit/dotnet/shared/Microsoft.NETCore.App/9.0.3/libSkiaSharp: cannot open shared object file: No such file or directory /home/jay/WattToolkit/assemblies/liblibSkiaSharp: cannot open shared object file: No such file or directory /home/jay/WattToolkit/dotnet/shared/Microsoft.NETCore.App/9.0.3/liblibSkiaSharp: cannot open shared object file: No such file or directory at SkiaSharp.SkiaApi.sk_colortype_get_default_8888() at SkiaSharp.SkiaApi.sk_colortype_get_default_8888() at SkiaSharp.SKImageInfo..cctor() --- End of inner exception stack trace --- at Avalonia.Skia.PlatformRenderInterface..ctor(Nullable`1 maxResourceBytes) at Avalonia.Skia.SkiaPlatform.Initialize(SkiaOptions options) at Avalonia.SkiaApplicationExtensions.<>c.<UseSkia>b__0_0() at Avalonia.AppBuilder.SetupUnsafe() at Avalonia.AppBuilder.Setup() at Avalonia.AppBuilder.SetupWithLi
05-10
评论 6
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值