Skip to content

How to debug? #22

@JumpinJon

Description

@JumpinJon

I'm having problems trying to develop apps for the built-in UI, i.e system/apps/myApp/init.py

What is the best way to debug these apps? I need to be able to output diags to the console - either by print("foo") or logging.debug("bar") - and examine that, but I can't work out how to achieve that.

I'm currently editing my app in Notepad++ from the mounted drive in USB Disk Mode. (Once I reboot the Tufty, of course the editor is then unhappy that the current file is on an ejected device.) If I get an error, that is displayed on the screen, but not the console output as described above.

Thonny doesn't seem to quite support these devices properly. I can force a Stop and see the device, but the file system seems to be Read-only?? What am I missing?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions