No patch needed.
A new core package was added to the IDE. When that happens the IDE can not rebuild itself (i.e. an older IDE can not build the newer codebase). You need an updated IDE exe, to build it.
- This can be obtained using the makefile.
- Or the package can be opened and installed by hand, and then it will work (at least for the current case / workaround).
Because core packages are hardcoded, they are only found by an IDE that has the hardcode code compiled into it. An IDE without that added code, does not know about the package, therefore such an IDE can't build code that needs that package.
It has happened before. It will happen again...
Btw the package is "IdeDebugger". And that will pull in LazDebuggerIntf too.
"DebuggerIntf" (which you added) is an older package, it should be found, unless your IDE executable is many years old.
"DebuggerIntf" does not contain Debugger. Even if FPC mentions it in one of the error messages. Read the error again....