You can debug your source code by playing a MIDI file generated by LilyPond. Just insert a \midi block inside a \score block.
\score { \new StaffGroup << \new Staff << \global \violineOne >> \new Staff << \global \violineTwo >> >> \layout { } \midi { \tempo 2 = 90 } }