# Enable comprehensive debugging
options(
shiny.error = browser,
shiny.reactlog = TRUE,
shiny.trace = TRUE
)
# View reactive dependencies
reactlogShow()
# Performance profiling
library(profvis)
profvis({
# Your expensive Shiny operations
expensive_reactive()
})
# Memory monitoring
cat("Memory:", gc()[2,2], "MB\n") Quick Tip: Enable reactlog to visualize which reactive expressions are firing and their dependencies
