title: How to debug vbscript with Visual Studio Community (2019)
body: <p>I'd like to find a free solution to debug vbscripts, and I tried Visual Studio 2019 Community Edition. I did the very basic installation with only one additional component, the Just-In-Time debugger. I ran all the following steps as administrator.</p>
  
  <p>I have created the file <code>Script2.vbs</code> with this very simple script:</p>
  
  <pre><code>a=1
  b=1/0
  c=1
  </code></pre>
  
  <p>I started the command line (cmd.exe) and entered <code>cscript.exe /x "C:\...\Script2.vbs</code> 
  <a href="https://i.stack.imgur.com/U5thR.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/U5thR.png" alt="cscript debug vbs"></a></p>
  
  <p>The script is executed and fails as expected at line 2 but</p>
  
  <blockquote>
    <p>the problem is that the Just-In-Time debugger doesn't start.</p>
  </blockquote>
  
  <p>(I expect the popup which is below "The Visual Studio Just-In-Time Debugger window appears" in this <a href="https://docs.microsoft.com/en-us/visualstudio/debugger/just-in-time-debugging-in-visual-studio" rel="nofollow noreferrer">Microsoft article</a>)</p>
  
  <p>I have found in <a href="https://stackoverflow.com/questions/44226237/visual-studio-2017-debugging-vbscript">this question about the previous version of the Community Edition</a> that there should be the option "Script", but I don't have it:</p>
  
  <p><a href="https://i.stack.imgur.com/RSolP.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/RSolP.png" alt="visual studio community options debugger jit script"></a></p>
  
  <p>Note also that if I try to start the script from Visual Studio Community, the menu Debug > Start debugging is grayed out:</p>
  
  <p><a href="https://i.stack.imgur.com/SGfPY.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/SGfPY.png" alt="visual studio community start debugging grayed out"></a></p>
  
  <p>My main question is:</p>
  
  <blockquote>
    <p>Is the feature of debugging scripts turned off with Visual Studio <strong>Community Edition</strong>?</p>
  </blockquote>
  
  <p>(which leads to the second question: is there a solution to debug VBS scripts for free?)</p>