How to debug the Cadence code?

How to debug the Cadence code ?
Is it possible to put breakpoints?
Please provide, if you have any tutorial or document on this?

No breakpoints, but you can use log(variable) in Cadence code and the emulator will show these if it is in verbose mode
flow emulator -v