class Byebug::Runner

def check_syntax(program_name)


Exits and outputs error message if syntax of the given program is invalid.
def check_syntax(program_name)
  output = `ruby -c "#{program_name}" 2>&1`
  return unless $CHILD_STATUS.exitstatus != 0
  Byebug.errmsg(output)
  exit($CHILD_STATUS.exitstatus)
end