Hi ,
how to add below commands in code instead of command window.
log >test.log
d &data[0] , &data[1024]
log off
Learn about debugger scripts, and how to attach them to menu buttons in the IDE.