So the question was, how I could deselect Visual Studio as the default debugger and choose the native Microsoft Script Debugger, in using which I was comfortable. Then I did the registry trick mentioned below which helped me significantly in achieving my objective. Using this trick, you can easily select any program as a script debugger, make sure it can do so.

Set Default Script Debugger in Windows 10

  1. Press Windows Key + R combination, type put Regedt32.exe in Run dialog box and hit Enter to open the Registry Editor.

  2. Navigate to the following location:

  3. In the left pane of this location, right-click over key CLSID and select New -> Key. Name the newly created key as: Now create the subkey to this newly created key and name it LocalServer32. Now came to the right pane of this subkey LocalServer32 or registry location: Double click on the (Default) string (REG_SZ) there. The Value data of this string manages the default script program for Windows. You’ll now get this:

  4. In the above box, put the Value data as the file location of the program which you desire to be as default script debugger. For example, to restore native Microsoft Script Editor, I put the Value data as C:\Program Files\Microsoft Script Debugger\msscrdlbg.exe. Here C: is necessarily the system root drive. When you’re done inputting Value data, click OK and you may now close the Registry Editor and reboot the machine to get results. Trust it helps you someday! Read: A debugger has been found running in your system.