Debug -> "Attach to Process" in Visual Studio 2022 Professional is not adding the Script file to the Solution Explorer

Sai Nagendra Srihari Vanumu 20 Reputation points
2025-07-27T15:48:00.7166667+00:00

Dear Microsoft team,

I am trying to attach my ALM application project workflow script using the instructions provided in the below link:

https://community.opentext.com/devops-cloud/aqm/f/discussions/89951/qc-alm-support-tip-how-to-debug-workflow-script-using-ms-visual-studio

Previosuly in Win 10, it used to work fine with VS 2022 professional 64 bit.

Recently i upgraded Win 10 to Win 11 and re installed fresh VS 2022 professional 64 bit, from then onwards the "Attach to Process" is not working, when i add the process , nothing is getting attached, previously a blank file used to attached and when i opened it, it used to display entire workflow script.

Please assist in solving this issue.

Regards, Srihari

Developer technologies | Visual Studio | Debugging
0 comments No comments
{count} votes

Accepted answer
  1. Gade Harika (INFOSYS LIMITED) 330 Reputation points Microsoft External Staff
    2025-07-30T11:39:39.72+00:00

    Thanks for your message. After upgrading to Windows 11 and reinstalling Visual Studio 2022, it seems the debugger no longer loads the script file—even during runtime errors, the script window remains blank.

    Here are a few troubleshooting steps to help resolve the issue:

    1.Manually Select the Code Type

    • Open the Attach to Process dialog.
    • Next to Attach to, click Select...
    • Choose either Script or Managed (.NET) depending on your ALM script type.

    2.Verify Symbols Are Loading

    • Navigate to Debug > Windows > Modules.
    • Check if symbols for the ALM process are loaded.
    • If they aren’t, try loading them manually.
    1. Enable Script Debugging in Visual Studio
    • Go to Tools > Options > Debugging.
    • Ensure Enable JavaScript/Script Debugging is checked.
    1. Run Visual Studio as Administrator
    • Some script engines require elevated permissions to attach properly.
    1. Check Security Software
    • Windows Defender or antivirus software might block debugging hooks.
    • Try disabling these temporarily to see if that resolves the issue.

    6.Compare Settings with Windows 10

    If possible, check registry settings and VS configuration from your previous Win10 setup.

    Compare with your current setup for any differences.

    Let me know if the problem persists after trying these steps. I’d be happy to assist further. If the issue has been resolved, feel free to mark this response as answered.

    0 comments No comments

3 additional answers

Sort by: Most helpful
  1. Gade Harika (INFOSYS LIMITED) 330 Reputation points Microsoft External Staff
    2025-07-29T07:24:30.36+00:00

    Thanks for providing detailed background on the issue.

    It sounds like you're encountering a change in behavior with “Attach to Process” in Visual Studio 2022 Professional after upgrading from Windows 10 to Windows 11. Previously, attaching to your ALM workflow would display a blank script file in Solution Explorer that allowed you to debug. Now, that isn’t showing up.

    Here are some steps you can try:

    Troubleshooting Steps

    Select the correct code type manually: Use the “Attach to:” dialog to explicitly choose the appropriate code type like “Script,” “Managed (.NET),” or “Native.”

    Run Visual Studio as Administrator: Elevated permissions can help ensure proper attachment.

    Update Visual Studio: Ensure you’re running the latest version (Help > Check for Updates).

    Enable Just-In-Time debugging: Go to Tools > Options > Debugging > Just-In-Time and confirm that relevant types are enabled.

    Verify the target process is running: Make sure the ALM application process is visible in Task Manager before attempting to attach.

    Try “Select Window” option: Attach to the application by selecting its window instead of just its process.

    • Manually set code type to Native: Some scripts may default to incorrect types like Python; switching to “Native” has helped other users.

    Let me know if the issue persists after following these steps. I’ll be happy to assist further if needed.


  2. Gade Harika (INFOSYS LIMITED) 330 Reputation points Microsoft External Staff
    2025-07-29T10:19:18.84+00:00

    Thanks again for your detailed updates — really helpful for narrowing things down. Since the usual fixes haven’t resolved the issue, here’s a more comprehensive plan that might get things working again:

    Next Steps to Resolve the Visual Studio Debugging Issue

    1. Ensure Script Debugging Is Fully Enabled

    Check your system-level settings:

    Go to Internet Options > Advanced

    Under Browsing, make sure both:

    “Enable script debugging (Internet Explorer)”

      “Enable script debugging (Other)” …are checked.
    ```2. **Verify Script Engine Registration**
    
    Based on the CLSID `{94A554C5-71CE-430C-A466-941A9EC1BDFB}`, it may be related to a script debugging COM component.
    
    Open **regedit**
    
    Navigate to `HKEY_CLASSES_ROOT\CLSID`
    
    Confirm that the `{94A...}` key is present and correctly registered
    
    To re-register key components:
    
    Next Steps to Resolve the Visual Studio Debugging Issue
    
    1. **Ensure Script Debugging Is Fully Enabled**
    
    Check your system-level settings:
    
    Go to **Internet Options > Advanced**
    
    Under **Browsing**, make sure both:
    
       “Enable script debugging (Internet Explorer)”
       
    ```dockerfile
      “Enable script debugging (Other)” …are checked.
    ```2. **Verify Script Engine Registration**
    
    Based on the CLSID `{94A554C5-71CE-430C-A466-941A9EC1BDFB}`, it may be related to a script debugging COM component.
    
    Open **regedit**
    
    Navigate to `HKEY_CLASSES_ROOT\CLSID`
    
    Confirm that the `{94A...}` key is present and correctly registered
    
    To re-register key components:  
    bat
    
    
    ```yaml
    regsvr32 jscript.dll
    regsvr32 vbscript.dll
    
    1. Manually Load the Script as a Workaround

    Until the script loads automatically, try this approach:

    Open Visual Studio

    Use File > Open > File… to load your ALM workflow script manually

    Set breakpoints as needed

    Then Attach to Process normally

    1. Confirm Debugging Components Are Installed

    In Visual Studio Installer:

    Choose Modify

    Check under Individual Components for script debugging options (e.g., “JavaScript diagnostics,” “Web development tools,” etc.)

    1. Try an Alternate Visual Studio Build

    Some recent updates may affect attach-to-script behavior:

    If possible, test using:

    • Visual Studio 2022 17.9.x

    OR the Preview edition

    1. Enable Diagnostic Logging

    Run Visual Studio with:

    bash

    devenv /log
    

    Check log file at:

    %APPDATA%\Microsoft\VisualStudio\<version>\ActivityLog.xml
    

    It may contain silent errors or loading failures.

    1. Contact OpenText Support

    If none of the above resolves it, the ALM workflow debugging may have changed for Windows 11. Reaching out via OpenText’s Community Thread is a good move — they might have platform-specific updates.

    Let me know if the issue persists after following these steps. I’ll be happy to assist further if needed. If the issue has been resolved, kindly mark the response as answered."


  3. Gade Harika (INFOSYS LIMITED) 330 Reputation points Microsoft External Staff
    2025-07-30T11:32:08.44+00:00

    Thanks a lot for your response, please find below steps.

    However, after upgrading to Windows 11 and reinstalling Visual Studio 2022, the debugger no longer loads the script file—even when a runtime error is triggered, the script appears blank. Here are some steps to help identify what might be blocking the script from loading:

    Manually Select Code Type:

    • In the "Attach to Process" dialog, click Select... next to "Attach to:" and explicitly choose Script or Managed (.NET) depending on your ALM script type.

    Check Symbol Loading:

      - Go to **Debug > Windows > Modules** and verify if the symbols for the ALM process are loaded. If not, try loading them manually.
      
      **Enable Script Debugging in VS**:
      
         - Ensure that **Tools > Options > Debugging > Enable JavaScript/Script Debugging** is checked.
         
         **Run Visual Studio as Administrator**:
         
            - Some script engines may require elevated permissions to attach properly.
            
            **Check Windows Defender or Antivirus**:
            
               - Security software might block script injection or debugging hooks. Try disabling temporarily to test.
               
    
    1. Compare with Win10 Setup:
      • If possible, compare registry settings or Visual Studio configurations between your old Win10 setup and the new Win11 one.
      Let me know if the issue persists after following these steps. I’ll be happy to assist further if needed. If the issue has been resolved, kindly mark the response as answered.
    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.