Go into the macro editor
Put the cursor at the start of the macro
<F5> will run the macro
<F8> will advance 1 line (execute current line, move to the next line
.
You can set "watch points" , or "break points" (to stop execution), you can type commands into the "Immediate" window to see values.
https://www.myonlinetraininghub.com/debugging-vba-code
https://www.tutorialspoint.com/excel_macros/excel_macros_debugging_code.htm
https://www.mrexcel.com/excel-tips/debugging-vba-macro/ (video and example file https://corporatefinanceinstitute.com/resources/excel/study/vba-how-to-debug-code/