# How to watch value of FString on debug mode?

**URL:** <https://forums.unrealengine.com/t/how-to-watch-value-of-fstring-on-debug-mode/287743>\
**Category:** Debugging, Optimization, & Profiling\
**Tags:** fstring, unreal-engine, question\
**Created:** [July 9, 2014, 2:01pm UTC](https://forums.unrealengine.com/t/how-to-watch-value-of-fstring-on-debug-mode/287743 "2014-07-09T14:01:43Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Muzaheed](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/muzaheed/32/778940_2.png) [@Muzaheed](https://forums.unrealengine.com/u/Muzaheed)\
**Post date:** [July 9, 2014, 2:01pm UTC](https://forums.unrealengine.com/t/how-to-watch-value-of-fstring-on-debug-mode/287743/1 "2014-07-09T14:01:43Z")

</div>

in VS2013 how to watch value of FString on debug mode?  
Char or TCHAR shows ok.  
but FString does not show .

is it a visual Studio specific function or Unreal specific?

someone from IRC said me to install “Engine\Extras\VisualStudioDebugging\ue4.natvis”  
i did that according to the doc.  
copied it to “\Documents\Visual Studio 2013\Visualizers” and “C:\Program Files\Microsoft Visual Studio 12.0\Common7\Packages\Debugger\Visualizers”

then i did rebuild using “debugEditor” configuration .  
but still no luck.

am i missing something?  
is there anyway to make sure that visual studio loading ue4.natvis successfully?

i am using visual studio 2013 ultimate edition.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_7a9aff171](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_7a9aff171](https://forums.unrealengine.com/u/anonymous_user_7a9aff171)\
**Post date:** [July 9, 2014, 2:37pm UTC](https://forums.unrealengine.com/t/how-to-watch-value-of-fstring-on-debug-mode/287743/2 "2014-07-09T14:37:08Z")

</div>

The file ue4.natvis should only be copied to one location, and I guess the installation folder of Visual Studio would be a safer bet. If your system is 64bit, the correct path should be inside “Program Files (x86)” since Visual Studio is only available in 32bit binaries.  
For example, I have these folders:

```
C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\Packages\Debugger\Visualizers
C:\Program Files\Microsoft Visual Studio 12.0\Common7\Packages\Debugger

```

The first one is correct, the second one is not.  
Also, do you have it installed on the system drive (the one where Windows resides)? The installer could have made Common7/… folder structure on both drives, and you should select the one which has more files.

---

<div class="post-metadata">

**Author:** ![Muzaheed](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/muzaheed/32/778940_2.png) [@Muzaheed](https://forums.unrealengine.com/u/Muzaheed)\
**Post date:** [July 11, 2014, 2:08pm UTC](https://forums.unrealengine.com/t/how-to-watch-value-of-fstring-on-debug-mode/287743/3 "2014-07-11T14:08:34Z")

</div>

“Also, do you have it installed on the system drive (the one where Windows resides)? The installer could have made Common7/… folder structure on both drives, and you should select the one which has more files.”

ooooooooow.  
that solved it.  
yup.  
i installed it in d drive.after putting it inside “D:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\Packages\Debugger\Visualizers” everything started to work fine.  
already have lost 5 valuable days only for this ■■■■.

anyway,thanks man.  
[  
epic should add this in their doc.anyway to notify them?  
]

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_925b2f74](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_925b2f74](https://forums.unrealengine.com/u/anonymous_user_925b2f74)\
**Post date:** [December 16, 2015, 11:45am UTC](https://forums.unrealengine.com/t/how-to-watch-value-of-fstring-on-debug-mode/287743/4 "2015-12-16T11:45:44Z")

</div>

Also, from Microsoft’s documentation find in here:

> **[Create Custom Views of Native Objects - Visual Studio 2015](https://learn.microsoft.com/en-us/previous-versions/visualstudio/visual-studio-2015/debugger/create-custom-views-of-native-objects?view=vs-2015&redirectedfrom=MSDN)**

you can add a new .natvis file, to an open C++ project, selecting the project node in the Solution Explorer, and clicking Add / New item / Visual C++ / Utility / Debugger visualization file (.natvis).  
This works also for the solution node.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_b666e59e](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_b666e59e](https://forums.unrealengine.com/u/anonymous_user_b666e59e)\
**Post date:** [December 17, 2015, 10:26pm UTC](https://forums.unrealengine.com/t/how-to-watch-value-of-fstring-on-debug-mode/287743/5 "2015-12-17T22:26:59Z")

</div>

Hi Muzaheed,

Sorry for the slow response. I’ll check and see what we can do to improve the documentation in this area.

---

<div class="post-metadata">

**Author:** ![Jeffshen](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Jeffshen](https://forums.unrealengine.com/u/Jeffshen)\
**Post date:** [November 21, 2016, 11:27am UTC](https://forums.unrealengine.com/t/how-to-watch-value-of-fstring-on-debug-mode/287743/6 "2016-11-21T11:27:19Z")

</div>

Hello, I am also encounter one question: how to watch the content of FString variable when gdb Dedicated Server on linux platform? It is extremely grateful for a mechanism!

---

<div class="post-metadata">

**Author:** ![Muzaheed](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/muzaheed/32/778940_2.png) [@Muzaheed](https://forums.unrealengine.com/u/Muzaheed)\
**Post date:** [April 18, 2017, 4:07pm UTC](https://forums.unrealengine.com/t/how-to-watch-value-of-fstring-on-debug-mode/287743/7 "2017-04-18T16:07:04Z")

</div>

is there any same kind of alternative for xcode on mac ?
