I have this simple method CallMethod made in Notepad++ with CsScript. How to invoke in from VS ?
namespace TestCall
{
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
public class ClassCall
{
public void CallMethod()
{
Console.Write("MethodCalling");
}
}
}
I made this invoker
namespace TestCall
{
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
public class Class1
{
public ClassCall a = new ClassCall();
public void Invoker()
{
Console.Write("MethodCall");
a.CallMethod();
Console.Write("MethodCalled");
}
}
}
But how to call it to be opened with Notepad++ with CSScript, so i can debug it? Thanks
CS-Script offers a debugging option which can be used when you create an script. Here's the github documentation.
Put the cursor on the line you want a breakpoint and press F9.