Jump to content

Debug ComponentSystem


photo

Recommended Posts

Hello,

I am wondering if a custom component object can be debugged at runtime? As you can see in the screenshot below, the variable bRenderClouds in my property file is set as enabled in the editor. My ComponentClass-variable is set to 0 (in the header-file as PROP_PARAM). So, the debugger shown the variable as 0 (disabled) but the if-case is still true (that's because the variable is set in the editor). Thus makes debugging ComponentObjects really hard. Is there any solution to this? I tested it in version 2.7.3 and 2.8, getting the same behavior.

screenshot_debug.thumb.png.6bdd4a70e6a2fe95411e53bd066e1c8a.png

 

Thanks in advance!

Link to comment

In runtime, the value is taken from the property. Debugger shows only the default value.
To see the current value, add the .get () method to ComponentVariable.

I agree, it's uncomfortable. We’ll think about how to solve it, maybe add a rule to .natives

5767-debug-componentsystem.png

Link to comment
×
×
  • Create New...