• src/sbbs3/jsdebug.c

    From Deucе@1:103/705 to Git commit to main/sbbs/master on Sunday, April 12, 2026 00:30:06
    https://gitlab.synchro.net/main/sbbs/-/commit/d1ba227b807bb2dd1e0a13ee
    Modified Files:
    src/sbbs3/jsdebug.c
    Log Message:
    jsdebug: add source line display to backtraces and list command

    Backtraces now show the source line text below each frame (read from
    the file path returned by JS_GetScriptFilename). Silently omitted
    when the file can't be opened (dynamic scripts, cwd changes, etc).

    New "l"/"list" command works like gdb's: shows 11 lines of source
    context centered on the current PC line, with a ">" marker on the
    current line. Accepts an optional line number argument, and bare
    "l" after a previous listing continues where it left off.

    You're welcome nelgin.

    Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
    --- SBBSecho 3.37-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)