title: Debugging with Delve: execute function
body: <p>I setup a breakpoint in my Go code with <code>runtime.Breakpoint()</code>, save the file (my editor, Atom with <a href="https://atom.io/packages/go-plus" rel="nofollow noreferrer">go-plus installed</a>, runs <code>go install .</code> on save). Then I run Delve in terminal with <code>dlv debug</code>, and type <code>continue</code> after it starts.</p>
  
  <p>When the breakpoint kicks in, I want to test a couple of things (basically to print reader's data <a href="https://stackoverflow.com/a/9649061/55504">via a <code>bytes.Buffer</code></a>). But, I get the following error </p>
  
  <pre><code>buf := new(bytes.Buffer): "1:5: expected 'EOF', found ':='"
  </code></pre>
  
  <p>and in general cannot do much more than print values.</p>
  
  <p>Is it really not possible to do this sort of thing? I am used to Python's <code>pdb</code> where setting variables or calling functions is not a problem and I would expect Delve is capable of the same. </p>
  
  <p>So, what am I doing wrong?</p>