Skip to content

Add pause button to debug sidebar#5390

Merged
knolleary merged 4 commits intodevfrom
Add-pause-button-to-debug-sidebar
Jan 21, 2026
Merged

Add pause button to debug sidebar#5390
knolleary merged 4 commits intodevfrom
Add-pause-button-to-debug-sidebar

Conversation

@dceejay
Copy link
Copy Markdown
Member

@dceejay dceejay commented Dec 17, 2025

  • Bugfix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)

Proposed changes

As per discussion in forum here https://discourse.nodered.org/t/suspend-debug-button/99952
This PR adds a simple pause button to the debug sidebar

Screen.Recording.2025-12-17.at.19.47.09.mov

clicking it pauses handling of any incoming messages (I.E. it drops them completely). So the list stops scrolling immediately. Clicking again lets more messages arrive - but there will of course be a gap in the sequence.

This only affects the browser side - it does not stop the server sending messages.

Checklist

  • I have read the contribution guidelines
  • For non-bugfix PRs, I have discussed this change on the forum/slack team.
  • I have run npm run test to verify the unit tests pass
  • I have added suitable unit tests to cover the new/changed functionality

@gorenje
Copy link
Copy Markdown
Contributor

gorenje commented Dec 18, 2025

Something that just dawned on me is the confusion factor of this feature - someone turns on pause, forgets its on, does some debugging, gets no output, comes to the forum, saying they got no output from the debug node, long discussion ensues until someone asks about the debug pause button.

Perhaps a notification if messages are dropped to indicate that - bottom of the debug panel, a friendly counter "XYZ debug messages dropped" - ideally in red, bold lettering!

@dceejay
Copy link
Copy Markdown
Member Author

dceejay commented Dec 18, 2025

Well it's non sticky - so a simple refresh/reload clears it. Let's not over-engineer it at this point.
There is of course a small space at the bottom of the debug window that would allow us to add a "Paused" label if required - but then that begs the question as to whether that should be the button/clickable etc... but I think it makes most sense to be at the top as it is more like an on/off "uber-filter" and fits with the other filter options

@dceejay dceejay added this to the 5.0 milestone Dec 18, 2025
@knolleary
Copy link
Copy Markdown
Member

I have pushed an update to show a paused message in the stream of debug messages itself, which also shows a count of how many messages have been dropped. This reinforces that messages are dropped, rather than queued up. It also helps to see in the stream of messages where the gaps are.

Screen.Recording.2026-01-21.at.11.18.51.mov

@knolleary knolleary merged commit 8e45561 into dev Jan 21, 2026
5 checks passed
@knolleary knolleary deleted the Add-pause-button-to-debug-sidebar branch January 21, 2026 11:22
@gorenje
Copy link
Copy Markdown
Contributor

gorenje commented Jan 21, 2026

Looks amazing! 👍

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants