How to draw a line in debug mode like Debug.DrawLine

Hello,

How to draw a line only visible in debug mode?

I would like to see the physics racasts by drawing lines in debug mode.

In Unity wa can use this method: Debug.DrawLine();

Thanks.

You can use GeometryRenderer, like this: