title: Debugger error 193 lazarus
body: <p>I can't debug one of my programs for a year now. When I press the green Run button, the following error message appears:</p>
  
  <p><a href="https://i.stack.imgur.com/VIVw4.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/VIVw4.png" alt="enter image description here"></a></p>
  
  <p>The full text is: </p>
  
  <pre><code>The GDB command:
  "-exec-run"
  returned the error:
  ",msg="Error creating process C:/Users/leven/OneDrive/J\341t\351kpogramok/People/people.exe, (error 193).""
  </code></pre>
  
  <p>I've read many forums about this error, but my case looks a bit different...</p>
  
  <ol>
  <li>As you can see, the file's path doesn't include any characters that could occur this problem (no spaces, no special letters). I've tried running outside OneDrive, same error.</li>
  <li>I've spent a lot of time looking for something in my program that occurs this error and found that if I delete some parts of it (eg. a few procedures or functions, which contains a lot of code though), the program is debuggable again! So the trouble is with some parts of the program, but I still don't know the exact problem.</li>
  <li>As I can remember, I've always debugged this program in a 64bit OP.</li>
  <li>The one thing that could be problematic is that I probably started writing the program using Windows 7 or 8, and now I want to run it using Windows 10, but I still don't understand, why deleting some parts of the program is a solution...</li>
  </ol>
  
  <p>Thanks in advance for your help!</p>
  
  <p><strong>UPDATE:</strong> </p>
  
  <p>I've found, that the line </p>
  
  <pre><code>p[x,y,2,1]:=r;
  </code></pre>
  
  <p>cannot be debugged by the compiler. 
  Description: </p>
  
  <pre><code>p: array [1..15000, 1..10000, 1..7, 1..4] of integer;
  </code></pre>
  
  <p>p[] is a game field. The first two parameters are coordinates, the third and the fourth are not important. </p>
  
  <p>x, y and r are integers.</p>
  
  <p>So, the command seen above writes a number into the game field (p[]) array using the x, y coordinates.</p>