MCPcopy Index your code
hub / github.com/cloudfoundry/java-buildpack / isEnabled

Method isEnabled

src/java/frameworks/debug.go:91–102  ·  view source on GitHub ↗

isEnabled checks if debugging is enabled

()

Source from the content-addressed store, hash-verified

89
90// isEnabled checks if debugging is enabled
91func (d *debugConfig) isEnabled() bool {
92 // Check BPL_DEBUG_ENABLED first (Cloud Native Buildpacks convention)
93 bplEnabled := os.Getenv("BPL_DEBUG_ENABLED")
94 if bplEnabled == "true" || bplEnabled == "1" {
95 return true
96 }
97 if bplEnabled == "false" || bplEnabled == "0" {
98 return false
99 }
100
101 return d.Enabled
102}
103
104// getPort returns the debug port
105func (d *debugConfig) getPort() int {

Callers 3

DetectMethod · 0.45
SupplyMethod · 0.45
FinalizeMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected