How to debug a python shiny app in a vm shiny server

Hi everyone,

I'm working on debugging a Shiny app written in Python, which is hosted on an Azure VM using Shiny Server. The server is up and running, but I'm struggling to access detailed error logs from the app's online usage. Specifically, I'd like to see the errors triggered by user interactions (e.g., when a button is pressed and the app gets stuck) directly in VS Code, so I can continue debugging effectively.

So far, I've only been able to access logs that indicate when connections open or close, but they don't provide any information on what went wrong within the app itself. Any guidance on how to capture these error logs in VS Code would be greatly appreciated.

Until now, I have just managed to access the logs, but they do not mention what went wrong with the app, but just if the connection opens or closes.