Console for Frappe Backend

Powerful Console for Frappe Backend
It allows you to use the same as the console statement in Python as it is in JavaScript

How to Install

  1. bench get-app https://github.com/yrestom/Console.git
  2. bench build --app console
  3. bench --site [your.site.name] install-app console
  4. bench restart

How to use:

in python file:

from console import console

my_list = ['foo', 4, 5, 'bar', 0.4]

console(my_list).log()

In browser console:

>(5) ["foo", 4, 5, "bar", 0.4]

Supported methods :

log , table, warn, error, info, group, groupEnd, time, timeEnd, debug, trace, count

14 Likes

Thanks. It is a great addition for fixing bugs.

1 Like

If you try to console a list of dictionaries or objects like items child table in Sales Invoice with console(doc.items).table() you will get something like this in the browser console:

4 Likes

very handy, I will be using this for sure.

1 Like

Great tool from great person.

2 Likes