summaryrefslogtreecommitdiffstatshomepage
path: root/py/runtime.c
diff options
context:
space:
mode:
Diffstat (limited to 'py/runtime.c')
-rw-r--r--py/runtime.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/py/runtime.c b/py/runtime.c
index 8852b7d80d..3cdbd22305 100644
--- a/py/runtime.c
+++ b/py/runtime.c
@@ -69,11 +69,14 @@ const mp_obj_module_t mp_module___main__ = {
};
void mp_init(void) {
- // call port specific initialization if any
+ // call port specific initialization if any
#ifdef MICROPY_PORT_INIT_FUNC
MICROPY_PORT_INIT_FUNC;
#endif
+ // __debug__ enabled by default
+ mp_set_debug(true);
+
mp_emit_glue_init();
// init global module stuff