Eric Streit 7f406a2fcd Oberon native extensions: compiler, debug, workbench 3 giorni fa
..
src 7f406a2fcd Oberon native extensions: compiler, debug, workbench 3 giorni fa
README.md 7f406a2fcd Oberon native extensions: compiler, debug, workbench 3 giorni fa
package.json 7f406a2fcd Oberon native extensions: compiler, debug, workbench 3 giorni fa
tsconfig.json 7f406a2fcd Oberon native extensions: compiler, debug, workbench 3 giorni fa

README.md

oberon-debug

GDB-backed Debug Adapter Protocol integration for Oberon.

  • src/adapter/mi.ts: minimal GDB/MI output parser (plain Node, tested against live captures).
  • src/adapter/gdb-adapter.ts: DAP adapter driving gdb --interpreter=mi over stdio (launch, breakpoints + conditions, continue, next, stepIn, stepOut, pause, threads, stackTrace, Locals + Module scopes with record expansion, evaluate, disconnect).
  • src/node/debug-adapter-contribution.ts: backend DebugAdapterContribution for debug type oberon (schema, default config from oberon.json, fork executable).

Usage: build with gm2 -g (source lines), open the Run and Debug view, create a oberon configuration (program defaults to bin/<name> from oberon.json), set breakpoints in .mod files, press F5.