在Visual Studio 2022中,如何使调试窗口显示字符串变量作为字符串?

huangapple go评论76阅读模式
英文:

In Visual Studio 2022, how to make the Debug window show the string variables as strings?

问题

我正在使用 Windows 10 64 位计算机,运行 Microsoft Visual Studio Professional 2022(64 位)- 版本 17.6.4

在这里,我正在尝试在 Visual Studio 调试窗口中检查一个变量。
有一个名为 project_repository_ 的字符串,它显示为字符数组。因此,每次对于每个字符串变量,我都需要展开并检查其中的每个字符。

在Visual Studio 2022中,如何使调试窗口显示字符串变量作为字符串?

在哪里找到设置以直接显示字符串变量?

英文:

I am using Windows 10 64 bit PC where I am running Microsoft Visual Studio Professional 2022 (64-bit) - version 17.6.4

Here I am trying to check a variable in Visual Studio debug window.
There is a string project_repository_ which shows the string as character arrays. So, every time, for every string variable, I need to expand and check every character inside.

在Visual Studio 2022中,如何使调试窗口显示字符串变量作为字符串?

Where to find the setting to show string variables directly?

答案1

得分: 0

我没有找到问题的根本原因,但在将我的个人电脑升级到64位的Windows 11之后,问题现在不存在了。

我现在可以看到整个字符串,而不需要展开每个字符。

感谢每个尝试帮助解决此问题的人的时间和努力。

谢谢各位!

英文:

I did not find the root cause of the problem, but the problem now does not exist after upgrading my PC to Windows 11 64 bit.

I can now see the whole string without expanding to every single character
在Visual Studio 2022中,如何使调试窗口显示字符串变量作为字符串?

I appreciate everyone's time and effort who tried to help resolve this issue.

Thanks guys!

huangapple
  • 本文由 发表于 2023年7月11日 11:08:39
  • 转载请务必保留本文链接:https://go.coder-hub.com/76658480.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定