How can I see real time server side varibles

Hi @Valcare,

It’s possible to debug either client or server while running in the editor. If you open the blueprint you would like to debug and hit Play, you’ll see two dropdowns in the toolbar, the first one allowing you to choose the world (client or server), and the second the specific blueprint instance that you would like to debug:

296180-annotation-2020-02-02-080203.png

296182-annotation-2020-02-02-080228.png

As mentioned in the [docs][3], when All Worlds is chosen then break points in any of all server and client worlds will be triggered.

In addition, to monitor specific variables you can add them to the [Watch Window][4] where their values can be displayed, but only when execution is paused (for example when hitting a break point).

In order to continuously monitor a variable in real time like you requested, a little trick you can use is to keep printing the value of that variable inside your blueprint’s tick function but to specify a value of 0 for the print duration, which will continuously print the updated value neatly in the same location :

296183-annotation-2020-02-02-081203.png

Unreal’s print functionality conveniently adds a Server or Client# prefix to the printed message which lets you know which blueprint’s variable you’re printing, like this:

296184-annotation-2020-02-02-081414.png

Edit: To be able to choose actors from a specific world to inspect in the World Outliner, look under the View Options dropdown on the bottom right of this panel:

Hope that helps.

1 Like