If Jordan is right and you're indeed trying this from perspective, try system.perspective.print() instead.
This will print to the designer's console AND the browser's console.
Thank you that worked. Do you have any tips on how to access the data within a table? My button is in a flex container and my table is in a different flex container .
In the above video he does
event.source.parent.getComponent("table")
however, my event object is entirely empty, and certainly do not have a "source" option
event.source is purely a Vision thing. In Perspective, the equivalent is simply self. You should use the property selector tool to help you connect to other components' properties. (Though, generally, it is best to connect to view custom properties bidirectionally--avoids later problems when you rearrange your components.)
(Also, don't use videos from Vision as references in Perspective. Utterly different technologies.)