mirror of
https://github.com/micropython/micropython.git
synced 2026-01-06 20:20:14 +01:00
py: Add module/function/class name to exceptions.
Exceptions know source file, line and block name. Also tidy up some debug printing functions and provide a global flag to enable/disable them.
This commit is contained in:
@@ -215,9 +215,8 @@ void rt_assign_byte_code(int unique_code_id, byte *code, uint len, int n_args, i
|
||||
DEBUG_printf(" %02x", code[i]);
|
||||
}
|
||||
DEBUG_printf("\n");
|
||||
#if MICROPY_SHOW_BC
|
||||
extern void mp_show_byte_code(const byte *code, int len);
|
||||
mp_show_byte_code(code, len);
|
||||
#if MICROPY_DEBUG_PRINTERS
|
||||
mp_byte_code_print(code, len);
|
||||
#endif
|
||||
|
||||
#ifdef WRITE_CODE
|
||||
|
||||
Reference in New Issue
Block a user