RStudio IDE debugger enters infinite recursion after update

After updating to R version 4.4.1 (2024-06-14 ucrt) -- "Race for Your Life"
and updating to RStudio-Desktop RStudio 2023.12.1+402 "Ocean Storm" Release (4da58325ffcff29d157d9264087d4b1ab27f7204, 2024-01-28) for windows RStudio does not enter debugging mode but enters an infinite recursion with the following error message:

Error: INTEGER() can only be applied to a 'integer', not a 'unknown type #29'
In addition: Warning:
Type 29 is not implemented 'type2char'

Reproductible Example:

f <- function(x) print(x)
debug(f)
f("x")

Things I have tried:

  • Deleted the folder %appdata%\RStudio in local/and roaming/
  • Restarted OS

After updating to Version RStudio 2024.09.0+375 "Cranberry Hibiscus" Release (c8fc7aee6dc218d5687553f9041c6b1e5ea268ff, 2024-09-16) for windows the issue was solved.