Best Practices for writing and debugging plugins

• Aug 9, 2024 - 16:14

Hello,

What tools do you use to write and debug plugins for musescore 4.x ?

I'm using notepad, but I can't see the output written to the console, making it hard to debug.
For now, I returned to musescore 3 so that I can use the plugin creator.

Thanks,
Luc.


Comments

In reply to by lucvdv

No, no. You have to expicitly construct consolelog like messages, e.g.
s = mergetick[j] + "\t" + mergenote[j] + "\t" + mergechord[j] + "\t" + mergecol[j]
output += s + "\n";
EDIT Another useful trick to leave the plugin at a particular place is:
throw new Error("message");

In reply to by elsewhere

Yes, that's what I thought. So where do the implicit error messages go to? I don't find a musescore errorlog file.

I understand that there are other priorities than implementing the plugin editor for MS4 and I respect that choice.
I also think that the importance of the plugin creator is underestimated.

Thanks,
Luc.

Do you still have an unanswered question? Please log in first to post your question.