CSharpEditor
CSharpEditor copied to clipboard
Breakpoint doesn't work in Top-level statements
Nice work! It seems that Breakpoint doesn't work Top-level statements (programs without Main methods).
string localVariable = "Hello world!";
/* Breakpoint */
Console.WriteLine(localVariable);
https://github.com/arklumpus/CSharpEditor/blob/5af79d42f275f04dd84d602410b6d63ac77bda8e/CSharpEditor/Editor.public.cs#LL582C34-L582C34
No SyntaxKind.MethodDeclaration found.
Hi! Thanks for pointing this out, I have changed the code to allow (synchronous) breakpoints in top-level statements.
I pushed a new version 1.1.6-a1 to Nuget with this fix (it might take a few minutes to appear).