how to disable jit debugger

masood ahmad 0 Reputation points
2024-03-30T11:41:28.53+00:00

WHEN I OPEN OPEN A FILE SO WRITE <system.windows.forms jitDebugging="true" /> SO HOW TO disable that the <system.windows.forms jitDebugging="true" /> jit debuger not come i am see in youtube go to reg and do this and do this but not working how to disable jit

Windows for business Windows Client for IT Pros User experience Other
{count} votes

2 answers

Sort by: Most helpful
  1. Anonymous
    2024-04-01T04:17:27.7066667+00:00

    Hi masood ahmad,

    If you're a Visual Studio user, you can disable Just-In-Time debugging from Visual Studio.

    If you had Visual Studio installed but no longer do, you may need to disable Just-In-Time debugging from the Windows registry.

    If you don't have Visual Studio installed, you can prevent Just-In-Time debugging by disabling script debugging or server-side debugging.

    https://learn.microsoft.com/en-us/visualstudio/debugger/just-in-time-debugging-in-visual-studio?view=vs-2022

    Best Regards,

    Ian Xue


    If the Answer is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

  2. Anshul Kushwaha 75 Reputation points Student Ambassador
    2024-04-01T04:35:14.6733333+00:00

    Hi Masood Ahmad,

    To disable Just-In-Time (JIT) debugging for the <system.windows.forms> configuration, you need to modify the appropriate registry settings on your system.

    Here's how you can do it:

    Open Registry Editor:

    Press Win + R to open the "Run" dialog.

    Type **`regedit`** and press Enter.
    
    1. Navigate to the Registry Key: In the Registry Editor, navigate to the following key:
           Copy code
           HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework\DbgManagedDebugger
           
      
    2. Modify the Value: Find the jitDebugging value under this key. Set its value to 0 to disable JIT debugging. If the value doesn't exist, you may need to create it as a DWORD (32-bit) Value. Restart Your Computer:
      After making the changes, restart your computer for the changes to take effect.
      

    This should prevent the <system.windows.forms> JIT debugger from appearing when you open a file.

    Best Regards,

    Anshul Kushwaha

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.