oven-sh/bun · error · Error
No target found.
Error message
No target found.
What it means
Error "No target found." thrown in oven-sh/bun.
Source
Thrown at packages/bun-debug-adapter-protocol/src/debugger/adapter.ts:1142
targets,
};
}
#addTarget<T extends DAP.GotoTarget | DAP.StepInTarget>(target: T & { source: Source }): T {
const { id } = target;
this.#targets.set(id, target);
return target;
}
#getTarget(targetId: number): Target | undefined {
return this.#targets.get(targetId);
}
async goto(request: DAP.GotoRequest): Promise<void> {
const { targetId } = request;
const target = this.#getTarget(targetId);
if (!target) {
throw new Error("No target found.");
}
const { source, line, column } = target;
const location = this.#generatedLocation(source, line, column);
await this.send("Debugger.continueToLocation", {
location,
});
}
async evaluate(request: DAP.EvaluateRequest): Promise<DAP.EvaluateResponse> {
const { expression, frameId, context } = request;
const callFrameId = this.#getCallFrameId(frameId);
const objectGroup = callFrameId ? "debugger" : context;
const { result, wasThrown } = await this.evaluateInternal({
expression,
objectGroup,View on GitHub (pinned to 8c5296ac45)
When it happens
Trigger: Thrown at packages/bun-debug-adapter-protocol/src/debugger/adapter.ts:1142 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/79f8a57f3a6c085a.
Report an issue: GitHub.