How do I watch value of variables while debugging blueprints?

Hi,

I have a blueprint FlowerItem whose parent class is GridItem, which defines a function called setRandomGridPosition. level blueprint spawns a number of FlowerItem and for each it calls function setRandomGridPosition. I set a breakpoint inside that function and script correctly stops there.

Here’s problem: If I hover mouse over variables inside function, I can’t see actual value of those variables (remember, function is defined in parent class, I don’t know if that’s problem). At same time, I can see values of all variables in level blueprint no problem.

I also set debug filter on object spawned.

What am I doing wrong?

Thank you!

Update: I just discovered that If I add a watch to variables I can see values correctly…isn’t it strange that I can see values just by hovering over variables in level blueprint, but same isn’t happening in custom blueprint?

Hey ,

You should be able to see values by hovering over connections on nodes in any Blueprint while it is running, not just Level Blueprint. It’s possible that your Debug Filter isn’t set to current Blueprint. Once you hit Play, click Debug Filter dropdown in Blueprint Editor’s Toolbar, and select Blueprint running in level that you want to watch. values will be visible then.

Hope that helps!

Thank you for your response.

way you explained it is just like way I’m doing it, with debug filter set and mouse hovering over variable. I’m attaching two screenshots which I took at same time and as you can see, only in Level Blueprint I can see value of variable, while in custom blueprint I had to put a watch to see actual value (you can see that tooltip only says “int Left”).

Anyway, It’s not that big of a problem, I’m reporting it cause I think it’s strange to have two different behaviors.

Thank you again for taking your time!

That is strange, I’m not seeing that behavior at all. Does this happen in any other Blueprints, or just your GridItem Blueprint? Does it happen in EventGraph for GridItem as well?

I’m glad you’re able to get around it by watching variables, but if possible I would like to make sure this gets reported if there’s a bug. Thanks!

I made some tests.

problem happens in EventGraph of GridItem as well (see first screenshot).
To be more precise, what I’m debugging is an instance of FlowerItem, which inherits from GridItem. function which I’m debugging is defined in parent class.

In second test I tried to spawn GridItem ( parent class) while debugging same function, same breakpoint…and variable values now are correctly visible!

It seems to me that problem happens only while debugging an inherited blueprint function.

Hi ,

I believe this has been fixed in 4.4; variables should show a value when hovering over them, even in inherited functions. If you get a chance to check this after upgrading, please let me know if you still see same problem. Thanks!

This was broken and tracked as UE-20846 . I think behavior is better now?