Print variable values trough console

Hi,

im wondering how i can print a variable into web console so i can trace the fault of my cuztomized report

im tried using frappe.throw() but it think thats not quite right

please advise

Thanks,
Bobby

Use bench frappe --serve to run your development server and just use print.

You will see the messages in your shell.

1 Like

In addition to what @rmehta mentioned, just FYI, if you want to debug Javascript code, you can use console.log(_variable-name_) to print the variables and such in the Browser console