title: Where to see out put of Print_r() in codeigniter
body: <p>i am learning codeigniter and i use methods(functions) in model to get data from the database. i am not sure whether my method is fetching correct data i want to use print_r(); exit; to debug but do not know where and how to see the output. can any one help me</p>
  
  <p>for example my method in a model is </p>
  
  <pre><code>    public function get_price($check)
     {
  
      $this-&gt;db-&gt;select('*');
      $this-&gt;db-&gt;where('name', $check);
      $this-&gt;db-&gt;from('group_test');
      $query = $this-&gt;db-&gt;get();
  
      print_r($query); exit;
      return $query-&gt;result();
     }
  </code></pre>