<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Line Number on Amit Agarwal Linux Blog</title>
    <link>/tags/line-number/</link>
    <description>Recent content in Line Number on Amit Agarwal Linux Blog</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en</language>
    <lastBuildDate>Fri, 16 Sep 2011 08:00:08 +0000</lastBuildDate>
    
	<atom:link href="/tags/line-number/index.xml" rel="self" type="application/rss+xml" />
    
    
    <item>
      <title>better bash debugging</title>
      <link>/2011/09/16/bash-debugging/</link>
      <pubDate>Fri, 16 Sep 2011 08:00:08 +0000</pubDate>
      
      <guid>/2011/09/16/bash-debugging/</guid>
      <description>&lt;p&gt;I was trying to &lt;a class=&#34;zem_slink&#34; title=&#34;Debugging&#34; href=&#34;http://en.wikipedia.org/wiki/Debugging&#34; rel=&#34;wikipedia&#34;&gt;debug&lt;/a&gt; some &lt;a class=&#34;zem_slink&#34; title=&#34;Bash (Unix shell)&#34; href=&#34;http://tiswww.case.edu/php/chet/bash/bashtop.html&#34; rel=&#34;homepage&#34;&gt;bash&lt;/a&gt; scripts yesterday and learnt something new 😉&lt;br&gt;
There are lot of things in bash that you can use to debug and to start with you can enable xtrace mode as follows:&lt;/p&gt;
&lt;pre class=&#34;brush: bash; gutter: true; first-line: 1; &#34;&gt;set -x&lt;/pre&gt;
&lt;p&gt;With this set you will see that all the commands are printed along with all other information as they are executed.&lt;br&gt;
This you can do for any line or for the function or for the whole script. Once you set the option you can turn it&lt;br&gt;
off with&lt;/p&gt;</description>
    </item>
    
  </channel>
</rss>
