Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. Script Editor Debug-Optionen

    NEWS

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    Script Editor Debug-Optionen

    This topic has been deleted. Only users with topic management privileges can see it.
    • Gargano
      Gargano last edited by Negalein

      Hi,
      In den Debug-Optionen kann man debug und verbose einstellen.
      Welche Funktion steckt hinter den Debug-Optionen im Script Editor oben rechts ?
      Welche Funktion oder Variable muß ich abfragen um eine Log Ausgabe je nach Einstellung zu bekommen :
      if (?) log (....

      Viele Grüße


      Mod-Edit: Thema verschoben!Kursivschrift

      Mojito Joe HauWi112 paul53 4 Replies Last reply Reply Quote 0
      • Mojito Joe
        Mojito Joe @Gargano last edited by

        @Gargano Würde mich auch interessieren.... 🤔

        1 Reply Last reply Reply Quote 0
        • HauWi112
          HauWi112 @Gargano last edited by

          @gargano

          1 Reply Last reply Reply Quote 0
          • HauWi112
            HauWi112 @Gargano last edited by

            interssiert mich auch!

            1 Reply Last reply Reply Quote 0
            • htrecksler
              htrecksler Forum Testing last edited by

              const logging = false;
              if (logging) log('LOGEINTRAG', 'warn');
              

              Durch das 'warn' am Ende bekommst du den logeintrag farbig dargestellt.

              1 Reply Last reply Reply Quote 0
              • htrecksler
                htrecksler Forum Testing last edited by

                durch den Debug-Nodus erreicht man glaube ich (bin nicht ganz sicher, wurde hier aber schonmal behandelt) das die setState nicht ausgeführt werden sondern in log geschrieben werden

                1 Reply Last reply Reply Quote 0
                • paul53
                  paul53 @Gargano last edited by

                  @gargano said:
                  Welche Funktion steckt hinter den Debug-Optionen im Script Editor oben rechts ?

                  Das kann man leicht ausprobieren:
                  Debug verhindert die Ausführung von setState() und erzeugt stattdessen ein Warning-Log.
                  Verbose erzeugt zusätzliche Info-Logs aus der JS-Instanz.

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

                  Support us

                  ioBroker
                  Community Adapters
                  Donate
                  FAQ Cloud / IOT
                  HowTo: Node.js-Update
                  HowTo: Backup/Restore
                  Downloads
                  BLOG

                  545
                  Online

                  31.9k
                  Users

                  80.2k
                  Topics

                  1.3m
                  Posts

                  debug-optionen
                  5
                  7
                  1047
                  Loading More Posts
                  • Oldest to Newest
                  • Newest to Oldest
                  • Most Votes
                  Reply
                  • Reply as topic
                  Log in to reply
                  Community
                  Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
                  The ioBroker Community 2014-2023
                  logo