Session.DebugLogPath is a property, which you need to set.
https://beta.winscp.net/eng/docs/library_session#debuglogpath
Session.DebugLogPath is a property, which you need to set.
Session.DebugLogPath) for that?
C:\ProgramData\Microsoft\AppV\...)