Skip to content

Conversation

@donofrio
Copy link
Contributor

This addresses Issue tactcomplabs#42 (and a little bit of tactcomplabs#44 ) by adding functionality for the debugger to pause long running (multiple screens, or long lines) outputs. Currently if the output of the ls command goes beyond 50 lines the user is greeted with the message:

--Type <RET> for more, q to quit, c to continue without paging--

In addition, any lines longer than 160 characters are truncated with ...

This is accomplished by adding a new stream class DebugStream - declared as a new member named dout in SimpleDebugger It is used as a drop in replacement for std::cout and has an overloaded << operator. The key difference is you must call dout << dreset after each use to reset the stream state. No additional buffers are needed. DebugStream may implement other stream modifiers that are passed in as function pointers.

Along with this PR is a slight change to the CaptCrunch_Interactive test - an independent PR for that is also posted in the sst-ext-tests repo.

@github-actions github-actions bot added AT: WIP Mark PR as a Work in Progress (No Autotesting Performed) AT: CLANG-FORMAT PASS and removed AT: WIP Mark PR as a Work in Progress (No Autotesting Performed) labels Jan 30, 2026
@github-actions
Copy link

CLANG-FORMAT TEST - PASSED

@sst-autotester
Copy link
Contributor

Status Flag 'Pre-Test Inspection' - - This Pull Request Requires Inspection... The code must be inspected by a member of the Team before Testing/Merging
NO INSPECTION HAS BEEN PERFORMED ON THIS PULL REQUEST! - This PR must be inspected by setting label 'AT: PRE-TEST INSPECTED'.

@kpgriesser
Copy link
Contributor

@gvoskuilen When you get a chance, could you give this a try with your memhiearchy debug case and let us know what you think?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants