delphidebugging

Delphi 10.4.2 and Delphi 11.0 cannot debug -


I cannot run Delphi in Debug. was previously running in Delphi 10.4.1 Now running both Delphi 10.4.2 in Windows 64-bit FMX and it gave the dreaded error "Unable to create process, 'c:\Win64\Debug\project1.exe'.

I googled. Some mentioned that it can be firewall setting (see below, which was automatically created). Some mentioned that it has to do with bds.exe permissions. One person ever mentioned to try running in Administrator mode. I tried all but it doesn't work.

Any ideas?

Firewall Incoming connections setting


Solution

  • I just checked the Windows Firewall. Bring up the Control Panel, click System and Security, Windows Defender Firewall, Allow app through Windows Firewall.

    Click [Change Settings] button.

    The Embarcadero Debugger Kernel is originally installed as:

    C:\Program Files (x86)\Embarcadero\Studio\21.0\bin\dbkw64_28_0.exe

    Remove it, and add in

    C:\Program Files (x86)\Embarcadero\Studio\22.0\bin\dbkw64_28_0.exe

    Restart Delphi. Bingo! It now works