title: How to display line number where an exception happens during runtime without a debugger?
body: <p>I have an exception happening during runtime which is non reproducible and therefore I can't debug it in the IDE/debugger. I want to know where in the code this happens so I surrounded the code with try/except statement, inserted a 'raise exception' statement for testing &amp; displayed the stacktrace like this to see if it works:</p>
  
  <pre><code>   on e: exception do begin
            showmessage(e.StackTrace);
      end;
  </code></pre>
  
  <p>However the message displayed was empty. Why was it empty? Is there another way to know where an exception happened? Using Delphi XE.</p>