I find it inconvenient to add parameters for debugging in the classFile role, whereas scripting in the miniProgram role is much more convenient.
I have an idea: add a button to the toolbar to switch between the two roles, making it easier to debug functions in the class
For example:
Clicking the button for the first time sets the script role to miniProgram, resulting in the following code:
/*/ role miniProgram; /*/
static class TaskB
{
static void Main()
{
Thread(5);
}
public static void Thread(int x)
{
dialog.show(null, $"TaskB, x={x}");
}
}
_______________________________________________________________________________________________________
Clicking the button for the second time sets the script role to classFile, resulting in the following code:
static class TaskB
{
static void _Main()
{
Thread(5);
}
public static void Thread(int x)
{
dialog.show(null, $"TaskB, x={x}");
}
}
I have an idea: add a button to the toolbar to switch between the two roles, making it easier to debug functions in the class
For example:
Clicking the button for the first time sets the script role to miniProgram, resulting in the following code:
/*/ role miniProgram; /*/
static class TaskB
{
static void Main()
{
Thread(5);
}
public static void Thread(int x)
{
dialog.show(null, $"TaskB, x={x}");
}
}
_______________________________________________________________________________________________________
Clicking the button for the second time sets the script role to classFile, resulting in the following code:
static class TaskB
{
static void _Main()
{
Thread(5);
}
public static void Thread(int x)
{
dialog.show(null, $"TaskB, x={x}");
}
}