debugModuleServer <- function(id, envir) {
moduleServer(
id,
function(input, output, session) {
observeEvent(input$button, {
eval(expr = expr(browser()), envir = envir)
})
}
)
}
debugModuleUI <- function(id) {
ns <- NS(id)
actionButton(ns("button"), label = "debug", icon = icon("life-ring"))
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.