🤖Have you ever tried Chat.M5Stack.com before asking??😎
    M5Stack Community
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Need some help with debugging

    UiFlow 2.0
    2
    3
    1.1k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M
      mchott
      last edited by

      I´m using the version 2.0.3 for UI Flow and the firmware on my Atom S3 Lite. I´ve now an little bit complex part of script designed with the graphical interface. If I now send this to my Atom I get random errors for syntax. But if I send the same code several times I get random line references and also running the code without issues.

      How can I now make sure, that my code is correct and starts every time? Which lines of code are mentioned because sometimes the reference is an empty line of code.

      1 Reply Last reply Reply Quote 0
      • ajb2k3A
        ajb2k3
        last edited by

        The joys of debugging Micropython. The errors aren’t always random. The secret is to count the actual line of code and ignore the empty lines

        UIFlow, so easy an adult can learn it!
        If I don't know it, be patient!
        I've ether not learned it or am too drunk to remember it!
        Author of the WIP UIFlow Handbook!
        M5Black, Go, Stick, Core2, and so much more it cant be fit in here!

        1 Reply Last reply Reply Quote 0
        • M
          mchott
          last edited by

          I will try the "ignore empty lines" method.

          It feels random because of .. first try line 162, second try line 198, third try line 67 and finally it´s working without an issue .. and I don´t change anything in the meantime.

          1 Reply Last reply Reply Quote 0
          • First post
            Last post