DrawLine Is not doing anything.

I just need to draw a line over a vector for debug purposes.
This is what I have:

var ownPos : Vector3 = transform.position;

var gravObj = GameObject.FindGameObjectsWithTag ("Gravity");

for (all in gravObj){
		var allPos : Vector3 = all.transform.position;
		Debug.DrawLine(ownPos, allPos, Color.red);
}

No errors.

Why do you do another Find with every object if you already have it in all? You can just do

allPos = all.transform.position;

and Debug.DrawLines are usually only visible in SceneView. Make sure you didn’t turn off Gizmos

I found the issue. DrawLine isn’t active in in the scene view unless the game is running. My scene view was merged with game view so that I had more viewing space. When I click to start the game, the scene view switches to game view making DrawLine useless. When the game stops, so does DrawLine.