About Inspecting Variables

You can stop execution of python code and inspect local and global variables with

1
2
breakpoint()
# or `import pdb; pdb.set_trace()` before Python 3.7

To achieve the same in JavaScript, put this in your code:

1
debugger;

Tips and Tricks Programming Development Python 3 JavaScript