Eric Streit 4740734a28 Pascal native extensions: compiler, debug, workbench 3 天之前
..
src 4740734a28 Pascal native extensions: compiler, debug, workbench 3 天之前
README.md 4740734a28 Pascal native extensions: compiler, debug, workbench 3 天之前
package.json 4740734a28 Pascal native extensions: compiler, debug, workbench 3 天之前
tsconfig.json 4740734a28 Pascal native extensions: compiler, debug, workbench 3 天之前

README.md

pascal-debug

GDB-backed Debug Adapter Protocol integration for Pascal.

  • 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 pascal (schema, default config from pascal.json, fork executable).

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