its a client script so log.debug logs to the serve...
# suitescript
c
its a client script so log.debug logs to the server. You want console.log not log.debug