Logging in cocos creator

I am new to CocosCreator. I have added a simple script to my prefab as you can see below

export class MermaidController extends Component {
    private _startAnim: boolean = false;

    start() {
        input.on(Input.EventType.MOUSE_UP, this.onMouseUp, this);
    }

    update(deltaTime: number) {
        console.log(deltaTime);
    }

    onMouseUp(event: EventMouse) {
        if(event.getButton() === EventMouse.BUTTON_LEFT) {
            console.log('start anim: ' + this._startAnim);
            this._startAnim = true;
            console.log('start anim: ' + this._startAnim);
        }
    }
}

However, I cannot see anything in the console. I don’t know if this is relevant but my prefab is created by importing a baked animation from Maya.

Somehow now everything is OK since I can see the log in the developer console.