Debugger log messages #321
-
|
So when I use either debug mode or just tail the app_logs file (my preferred way) I can see the "print" statements and some other statements that I'm not sure what they are but not important. I can't see the I would like to see all the same messages in Thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
|
I'm not sure what you mean by You can add additional printing when some environmental variable is set: #if DEBUG
let isNvim = ProcessInfo.processInfo.environment["IS_NVIM"] != nil
#endif
private func log(_ message: String) {
#if DEBUG
if isNvim {
print(message)
}
#endif
}This way you can pass from Neovim environmental variable to see all logs. |
Beta Was this translation helpful? Give feedback.
I'm not sure what you mean by
logger.debugbut if you meanos.LoggerorNSLogthen those logs don't appear in the console.You can add additional printing when some environmental variable is set:
This way you can pass from Neovim environmental variable to see all logs.