File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -51,6 +51,7 @@ specific variable.
5151
5252Lang | Debug String | Debug Variable
5353--- | --- | ---
54+ Arduino | :heavy_check_mark : | :heavy_check_mark :
5455Awk | :x : | :x :
5556C | :heavy_check_mark : | :heavy_check_mark :
5657C# | :x : | :x :
Original file line number Diff line number Diff line change 1+ function ! s: DebugStringFun ()
2+ let l: debug_str = ' Serial.println("' . g: DebugstringPrefixStr () . g: debugStringCounter . ' ")'
3+ return l: debug_str
4+ endfunc
5+
6+ function ! s: DebugStringFunExpr (expr )
7+ let l: debug_str = ' Serial.print("' . a: expr . ' : ' . ' ")' . ' ; ' . ' Serial.println(' . a: expr . ' )'
8+ return l: debug_str
9+ endfunc
10+
11+ command ! - buffer -nargs =0 AddDebugString put = s: DebugStringFun ()
12+ command ! - buffer -nargs =1 AddDebugStringExpr put = s: DebugStringFunExpr (<args> )
13+
14+
Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ Execute (Vim):
6262 :set filetype=vim
6363Execute (Fortran):
6464 :set filetype=fortran
65+ Execute (Arduino):
66+ :set filetype=arduino
6567
6668================================================================================
67-
68-
Original file line number Diff line number Diff line change 1+ Serial.println("[[Vader-workbench]:$1$] DEBUGGING STRING ==> $2$")
2+ Serial.print("a**2 + b**2: "); Serial.println(a**2 + b**2)
Original file line number Diff line number Diff line change 11console . log ( "[[Vader-workbench]:$1$] DEBUGGING STRING ==> $2$" ) ;
2- console . log ( `a**2 + b**2: ${ a ** 2 + b ** 2 } ` )
2+ console . log ( `a**2 + b**2: ` , a ** 2 + b ** 2 )
Original file line number Diff line number Diff line change 11#! /usr/bin/env bash
22# file taken directly from https://github.com/junegunn/vader.vim
33
4+ set -e
5+
46# Do not "cd" to any existing "test" dir from CDPATH!
57unset CDPATH
68
You can’t perform that action at this time.
0 commit comments