Detect checks if debugging should be enabled
()
| 21 | |
| 22 | // Detect checks if debugging should be enabled |
| 23 | func (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 |
| 38 | func (d *DebugFramework) Supply() error { |
nothing calls this directly
no test coverage detected