    

 ## On this page

  

 

 # setReferenceDebugMode

 Last update: 16.07.2025 

public [setReferenceDebugMode](set-reference-debug-mode.md)(on: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html))

When set to true, the system will keep a list of active COM objects that are allocated but not yet released since this method was invoked.