File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ Fortran | :heavy_check_mark: | :heavy_check_mark:
5757Go | :x : | :x :
5858Haskell | :heavy_check_mark : | :heavy_check_mark :
5959Java | :heavy_check_mark : | :heavy_check_mark :
60- Javascript | :heavy_check_mark : | :x :
60+ Javascript | :heavy_check_mark : | :heavy_check_mark :
6161Julia | :x : | :x :
6262Lua | :x : | :x :
6363Matlab | :x : | :x :
Original file line number Diff line number Diff line change @@ -3,4 +3,12 @@ function! s:DebugStringFun()
33 :return l: debug_str
44endfunc
55
6+ function ! s: DebugVarFun (desc, var )
7+ let l: debug_str = ' console.log(`' . a: desc . ' ${' . a: var . ' }`)'
8+ return l: debug_str
9+ endfunc
10+
11+
612command ! - buffer -nargs =0 AddDebugString put = s: DebugStringFun ()
13+ command ! - buffer -nargs =1 AddDebugStringExpr
14+ \ put = s: DebugVarFun (<args> . ' : ' , <args> )
You can’t perform that action at this time.
0 commit comments