MCPcopy Create free account
hub / github.com/cloudfoundry/java-buildpack / Detect

Method Detect

src/java/frameworks/debug.go:23–35  ·  view source on GitHub ↗

Detect checks if debugging should be enabled

()

Source from the content-addressed store, hash-verified

21
22// Detect checks if debugging should be enabled
23func (d *DebugFramework) Detect() (string, error) {
24 // Check if debug is enabled in configuration
25 config, err := d.loadConfig()
26 if err != nil {
27 d.context.Log.Warning("Failed to load debug config: %s", err.Error())
28 return "", nil // Don't fail the build
29 }
30 if !config.isEnabled() {
31 return "", nil
32 }
33
34 return "Remote Debug", nil
35}
36
37// Supply performs debug setup during supply phase
38func (d *DebugFramework) Supply() error {

Callers

nothing calls this directly

Calls 2

loadConfigMethod · 0.95
isEnabledMethod · 0.45

Tested by

no test coverage detected