0ad/binaries/data/mods/mod/tools/dap/plugin.js
trompetin17 20b7c3f9b8
Implement Debug Adapter Protocol (DAP) Interface in debugger.js
Adds initial support for the Debug Adapter Protocol (DAP) to
SpiderMonkey via debugger.js. This JavaScript-based implementation
enables external debuggers (e.g., VS Code) to interact with the JS
runtime using the DAP interface.

Implemented DAP requests and events:

- attach
- initialize (capabilities)
- stopped event
- threads
- scopes
- variables (globalThis pending)
- continue
- stepIn
- stepOut
- setBreakpoints
- Handling of debugger statements

This forms the foundation for interactive debugging of in-game scripts,
providing smoother integration with developer tools.
2025-07-11 11:06:05 -05:00

9 lines
181 B
JavaScript

import { logger } from 'tools/dap/logger.js';
export class Plugin {
constructor(name, type) {
this.name = name;
this.type = type;
this.logger = logger.getLogger(name);
}
}