You can debug in Postman console, use ctrl+alt+C to show console, and then use console.log to see what of your variables is undefined. For example, in the pre-request scripts tab at the collection level:
Assuming you set up an environment and populated all the variables, make sure you actually have the environment selected in the picker at the top-right. This is common for people to forget