ERPNext Conference 2019* Blog

How to add debugger in frappe?


I want to add debugger so how to add that please help?


Server side you can use:

frappe.throw("What went wrong")


frappe.log_error("Write this to error log")

And client side you can use:



console.log("got it");


Thank you so much


There’s also frappe.msgprint('debug message') for gentler debug prints on the backend.


is it for development or preoduction??


It works for production configuration with developer_mode enabled. I didn’t test it on the pure production server yet.


ok thanks for the reply


it works there also