HISE Logo Forum
    • Categories
    • Register
    • Login

    How do you Print to console? in SNEX

    Scheduled Pinned Locked Moved Solved ScriptNode
    3 Posts 2 Posters 161 Views
    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.
    • griffinboyG
      griffinboy
      last edited by griffinboy

      I think this has been answered somewhere else,
      but it is obscure and I couldn't find the post.

      To those who have knowledge:

      How can I print to console inside a snex node? I've had no success so far and I need it for debugging.

      Christoph HartC 1 Reply Last reply Reply Quote 0
      • griffinboyG griffinboy marked this topic as a question on
      • Christoph HartC
        Christoph Hart @griffinboy
        last edited by

        @griffinboy Console.print works in snex too but you have to enable debug mode (the bug icon in the snex editor).

        Also make sure that you don‘t clog the console. Printing a line every sample will blow up the console pretty fast.

        I usually resort to the script watch table for debugging (and if I need to inspect a temp variable I just temporarily make it a member variable of the class so that it shows up in the list).

        griffinboyG 1 Reply Last reply Reply Quote 0
        • griffinboyG
          griffinboy @Christoph Hart
          last edited by griffinboy

          @Christoph-Hart
          Thanks, I'll look into the script watch table.

          I've not used it yet, I'll have a go!

          Edit:
          Yep that's ideal, thank you:

          5d882ec3-7bb7-42ef-9c00-debcbf0d9053-image.png

          1 Reply Last reply Reply Quote 0
          • griffinboyG griffinboy has marked this topic as solved on
          • First post
            Last post

          32

          Online

          1.7k

          Users

          11.9k

          Topics

          103.5k

          Posts