'Debug.Log()/Print()/UnityEngine.Debug.Log() not working

My project is working with Oculus Quest 2 and Virtual Reality. I am writing a script that should detect when the hand collides with a game object. The script isn't working so I tried adding some Debug.Log() statements to isolate the problem but they don't print to the console. Any advice on these problems is appreciated

using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class colliderHit : MonoBehaviour
{
    public GameObject myHand;
    public GameObject menuItem;
    public GameObject sublevel;
    public GameObject topMenu;
    Collider menuItemCollider;
    Collider myHandCollider;

    // Start is called before the first frame update
    void Start()
    {
        if(menuItem != null)
        {
            menuItemCollider = menuItem.GetComponent<Collider>();
            UnityEngine.Debug.Log("Menu Item not null");
        }
        else
        {
            print("Menu Item null");
        }

        if (myHand != null)
        {
            myHandCollider = myHand.GetComponent<Collider>();
        }
        else
        {
            Debug.Log("Hand Item null");
        }
    }

    // Update is called once per frame
    void Update()
    {
        if (myHandCollider.bounds.Intersects(menuItemCollider.bounds))
        {
            topMenu.SetActive(false);
            sublevel.SetActive(true);
            Debug.Log("Bounds intersecting");
        }
    }
}


Solution 1:[1]

Are you absolutely sure you didn't disable messages in the console log? I only ask this because I tend to forget about that as well

example console

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Ruzihm