Can you draw 2Draycast so you can see the line in the editor?

Can you draw raycast2D like with normal raycast, so you can see the line in the editor?

Yes see Unity - Scripting API: Debug.DrawLine

Search this site or the web for more examples