GX-TXT Script Debugger – Scientific Debugging with GNU Octave and Python

by Giux 16 articles last on November 21, 2026 0 comments

A hands-on learning project focused on scientific debugging with GNU Octave and Python in GX-TXT. Through reproducible exercises, examples tested in real sessions and illustrated tutorials, readers will learn to follow program execution, inspect variables, identify errors and understand how scripts interact with the framework’s public APIs.

The project grew out of practical work with the Octave Script Workspace and GX-TXT’s managed script execution tools. Rather than merely explaining where debugger controls are located, it offers a progressive series of experiments: from the first breakpoint to investigating scientific workflows involving Datasets, metadata and CORE services.

An evolving learning laboratory

The GX-TXT debugger is actively evolving. The articles therefore have two complementary goals: to teach debugging techniques applicable to GNU Octave and Python, and to verify the capabilities actually available in GX-TXT through practical examples. Later tutorials will address new interface features, richer inspection tools and improved error diagnostics as these capabilities are implemented and tested.

Every exercise is checked against the GX-TXT version used for the test. Each article identifies the framework version, the official GitHub source commit and any limitations observed, allowing readers to distinguish proven functionality from features introduced in later revisions.

Part one — Six practical guides

  1. Getting started with the GNU Octave debugger: breakpoints and variables. Creating and registering a script, running it through Script Jobs, using breakpoints, Continue, Step Into, Step Over and Step Out, and examining the Call Stack and local variables. Two working examples introduce nested function calls and temperature conversion through GX-TXT’s public Numeric API.
  2. Python debugging: controlled execution and state inspection. Debugging Python scripts, navigating functions and stack frames, monitoring values while the program runs, and comparing the Python and GNU Octave debugging workflows.
  3. What happens when a GX-TXT API is unavailable? Discovering registered APIs, checking requirements and public operations, and reading diagnostic messages. Exercises with nonexistent APIs, missing providers and incompatible requests distinguish mistakes in the script from problems in the framework.
  4. Finding and fixing runtime errors. Out-of-bounds vector access, exceptions, diagnostic messages and locating the failing source line.
  5. Debugging scientific data: vectors, structures and Datasets. Inspecting arrays and structures, reading Datasets through canonical identifiers, handling Variable IDs and verifying results returned by public GX-TXT APIs.
  6. Debugging a complete scientific workflow. From reading data and performing numerical computations to publishing results: an end-to-end workflow covering the Script Registry, immutable execution snapshots, Script Jobs, logs and reproducibility checks.

Download the six practical guides’ scripts (ZIP).

Part two — The debugger course in 10 modules

The course brings together 60 short chapters in 10 modules. It starts with a temperature conversion you can check in the debugger, then moves on to breakpoints, the Call Stack and variables. The final modules apply the same method to Datasets, public APIs, multifile projects and a reproducible final project.

  1. Module 01 — Foundations and the first Debug Job
  2. Module 02 — Breakpoints and source code
  3. Module 03 — Control flow and the call stack
  4. Module 04 — Variables and diagnostics
  5. Module 05 — Core debugging cases in Python
  6. Module 06 — Core debugging cases in GNU Octave
  7. Module 07 — Scientific data and GX-TXT APIs
  8. Module 08 — Projects, revisions and Sessions
  9. Module 09 — Integrated practical cases
  10. Module 10 — Independent debugging and the final project

Download the Python and GNU Octave examples for all 10 modules (ZIP). Extract the archive and keep the original folders intact for multifile examples.

Future developments

Features that will be added to the debugger, such as deeper inspection of structures and arrays, exception presentation, advanced analysis tools, Call Stack navigation and comparisons between runs, will be documented in new articles only after they have been implemented and verified with reproducible examples.

Working method and materials

  • Runnable examples: every tutorial includes test scripts and expected results.
  • Authentic illustrations: screenshots captured during real debugging sessions, accompanied by explanations of the controls and displayed information.
  • Public APIs only: GX-TXT integration uses documented public contracts rather than private CORE implementation details.
  • Progressive explanations: each API introduced is explained in terms of its purpose, syntax, parameters, results and possible errors.
  • Traceability: articles identify the GX-TXT version and the relevant GitHub commit, clearly separating completed tests from future developments.
  • Downloadable resources: GNU Octave .m scripts, Python .py scripts and supporting documentation accompany their respective articles. All source-code comments are in English.

Who is this project for?

The tutorials are intended for students, researchers, laboratory technicians and software developers who use programming for numerical computing, experimental data analysis and scientific automation. No prior debugging experience is required: the first exercises introduce the fundamentals, while later tutorials address increasingly complex situations.

Source code and references

The framework’s source code is available in the official GX-TXT GitHub repository. Every tutorial references the public API contracts and documentation associated with its tested version. Educational scripts include the appropriate license notices.

All the project articles, the six practical guides and the ten course modules, are collected in the diary below.

Software used

  • GX-TXT The framework that runs the scripts and the debugger: source code on GitHub.

Documents and handouts

Project log 16

  1. Oct 18, 2026 Debugging GNU Octave in GX-TXT: Breakpoints, Variables and Public APIs An illustrated introduction to the GNU Octave debugger in GX-TXT. Two examples tested in dev-107 cover nested functions, breakpoints, the Call Stack, local variables…
  2. Nov 21, 2026 GX-TXT Debugger · Module 08 — Projects, revisions and Sessions Follow registration, revisions and snapshots in GX-TXT. Handle Session changes, debugger panels and multifile projects.
  3. Nov 21, 2026 GX-TXT Debugger · Module 09 — Integrated practical cases Apply scientific debugging to time series, missing data, fitting, integration, plots and multifile projects in GX-TXT.
  4. Nov 21, 2026 GX-TXT Debugger · Module 10 — Independent debugging and the final project Isolate defects, compare Python and GNU Octave, and solve startup problems. Complete the GX-TXT course with a reproducible debugging project.
  5. Nov 21, 2026 GX-TXT Debugger · Guide 05 — Debugging scientific data: vectors, structures and Datasets Check data shapes, element-wise operators and variables. Publish synthetic data and verify Dataset IDs, Variable IDs and results in GX-TXT.
  6. Nov 21, 2026 GX-TXT Debugger · Guide 06 — Debugging a complete scientific workflow Follow a scientific example from units to Dataset to plot. Record Jobs, revisions and results so the diagnosis can be reproduced in GX-TXT.
  7. Nov 21, 2026 GX-TXT Debugger · Module 01 — Foundations and the first Debug Job Start your first GX-TXT Debug Job. Prepare a Session, compare Run with Debug and verify a calculation using a breakpoint and frame variables.
  8. Nov 21, 2026 GX-TXT Debugger · Module 02 — Breakpoints and source code Set and manage GX-TXT breakpoints. Read the editor gutter and check how physical lines and saved source correspond to the Debug Job snapshot.
  9. Nov 21, 2026 GX-TXT Debugger · Module 03 — Control flow and the call stack Use Step Over, Step Into, Step Out and the Call Stack in GX-TXT. Follow functions, loops and stack frames in Python and GNU Octave.
  10. Nov 21, 2026 GX-TXT Debugger · Module 04 — Variables and diagnostics Read Locals and Globals, data summaries, output streams and tracebacks. Learn to recognize the different states of a GX-TXT Debug Job.
  11. Nov 21, 2026 GX-TXT Debugger · Module 05 — Core debugging cases in Python Practice GX-TXT Python debugging with indices, slicing, aliases, dictionaries, exceptions, nested functions and asynchronous Pause.
  12. Nov 21, 2026 GX-TXT Debugger · Module 06 — Core debugging cases in GNU Octave Debug indices, shapes, operators, .m files and runtime errors in GNU Octave. Plan pauses using breakpoints and stepping commands.
  13. Nov 21, 2026 GX-TXT Debugger · Module 07 — Scientific data and GX-TXT APIs Use the debugger to check parameters, public API availability, Variable IDs, units and Dataset publication in GX-TXT.
  14. Nov 21, 2026 GX-TXT Debugger · Guide 02 — Python debugger: controlled execution and state inspection Use Step Over, Step Into and Step Out in the GX-TXT Python debugger. Read stack frames and see how local variables change in a…
  15. Nov 21, 2026 GX-TXT Debugger · Guide 03 — When a GX-TXT API is unavailable Use GX-TXT diagnostics to distinguish an absent API, an incompatible provider, an unavailable operation and a missing Dataset.
  16. Nov 21, 2026 GX-TXT Debugger · Guide 04 — Finding and correcting runtime errors Reproduce an indexing error in Python and GNU Octave, read the traceback and verify the fix in the GX-TXT debugger.

All projects