Skip to content

Commit

Permalink
tag Shiny server function for special debug treatment if needed
Browse files Browse the repository at this point in the history
  • Loading branch information
jmcphers committed Oct 2, 2013
1 parent bc3322d commit 9fb61d8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions R/shiny.R
Original file line number Diff line number Diff line change
Expand Up @@ -938,7 +938,12 @@ resourcePathHandler <- function(req) {
shinyServer <- function(func) {
.globals$server <- func
if (!is.null(func))
{
# Tag this function as the Shiny server function. A debugger may use this
# tag to give this function special treatment.
attr(.globals$server, "shinyServerFunction") <- TRUE
registerDebugHook("server", .globals, "Server Function")
}
invisible()
}

Expand Down

0 comments on commit 9fb61d8

Please sign in to comment.