Debug fails but works in other cases
<p>WHy do I always get |Access is denied| exception during debug ?</p>

<pre><code>foreach(Process p in Process.GetProcesses())
{
   string module=p.MainModule.Filename;
}
</code></pre>

<p>Whatever process it is, the exeption's always called.
But it works if I just start without debugging. 
I'd like to get the full path of the process by the way/.</p>
