oven-sh/bun · error · Error
No program specified
Error message
No program specified
What it means
Launch request validation in the DAP adapter: unless __skipValidation is set, a launch configuration must include a program (a file path or '-'); without it there is nothing to run under the debugger.
Solutions
- Add a "program" entry to the launch configuration in the IDE
- Pass '-' as program with stdin if launching from piped source
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at packages/bun-debug-adapter-protocol/src/debugger/adapter.ts:2175 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of oven-sh/bun@8c5296ac45 (2026-08-16).
Data as JSON: /api/errors/4b838555b302293b.
Report an issue: GitHub.
Appendix: source
Thrown at packages/bun-debug-adapter-protocol/src/debugger/adapter.ts:2175
}
async #launch(request: LaunchRequest): Promise<void> {
const {
runtime = "bun",
runtimeArgs = [],
program,
args = [],
cwd,
env = {},
strictEnv = false,
watchMode = false,
stopOnEntry = false,
__skipValidation = false,
stdin,
} = request;
if (!__skipValidation && !program) {
throw new Error("No program specified");
}
const processArgs = [...runtimeArgs];
if (program === "-" && stdin) {
processArgs.push("--eval", stdin);
} else if (program) {
processArgs.push(program);
}
processArgs.push(...args);
if (program && isTestJavaScript(program) && !runtimeArgs.includes("test")) {
processArgs.unshift("test");
}
if (watchMode && !runtimeArgs.includes("--watch") && !runtimeArgs.includes("--hot")) {
processArgs.unshift(watchMode === "hot" ? "--hot" : "--watch");View on GitHub (pinned to 8c5296ac45)