Debugger string representation for RaycastResult

As a Roblox developer, it is currently too hard to inspect raycast information from RaycastResult via the debugger. The data type does not have a string conversion like other data types and variables instead show up as *cannot read value as a string in the Watch window, as well as when hovered.

The individual fields can be read by setting up expressions in My Watches, such as myRaycastResult.Instance.

If Roblox is able to address this issue, it would improve my development experience by saving time setting up custom watches or prints to inspect raycast results. Sometimes a single glance on the instance name is all that is needed to find a bug.

3 Likes