File tree Expand file tree Collapse file tree 4 files changed +17
-1
lines changed
Expand file tree Collapse file tree 4 files changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ Lang | Debug String | Debug Variable
6464Arduino | :heavy_check_mark : | :heavy_check_mark :
6565Awk | :x : | :x :
6666C | :heavy_check_mark : | :heavy_check_mark :
67- C# | :x : | :x :
67+ C# | :heavy_check_mark : | :heavy_check_mark :
6868C++ | :heavy_check_mark : | :heavy_check_mark :
6969CMake | :heavy_check_mark : | :heavy_check_mark :
7070D | :x : | :x :
Original file line number Diff line number Diff line change 1+ function ! s: DebugStringFunBase (desc, var )
2+ let l: debug_str = ' System.Console.WriteLine($"'
3+ \ . a: desc
4+ \ . ' {' . a: var . ' }'
5+ \ . ' ");'
6+ return l: debug_str
7+ endfunc
8+
9+ command ! - buffer -nargs =0 AddDebugString
10+ \ put = s: DebugStringFunBase (g: DebugstringPrefixStr (), g: debugStringCounter )
11+ command ! - buffer -nargs =1 AddDebugStringExpr
12+ \ put = s: DebugStringFunBase (<args> . ' : ' , <args> )
Original file line number Diff line number Diff line change @@ -38,6 +38,8 @@ Execute (C):
3838 :set filetype=c
3939Execute (C++):
4040 :set filetype=cpp
41+ Execute (C#):
42+ :set filetype=cs
4143Execute (CMake):
4244 :set filetype=cmake
4345Execute (Haskell):
Original file line number Diff line number Diff line change 1+ System . Console . WriteLine ( $ "[[Vader-workbench]:$1$] DEBUGGING STRING ==> { $2 $} ");
2+ System . Console . WriteLine ( $ "a**2 + b**2: { a * * 2 + b * * 2 } ");
You can’t perform that action at this time.
0 commit comments