Implement comprehensive debug mode for Doc Detective with step-through and breakpoint debugging#53
Draft
Implement comprehensive debug mode for Doc Detective with step-through and breakpoint debugging#53
Conversation
Co-authored-by: hawkeyexl <5209367+hawkeyexl@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Debug mode
Implement comprehensive debug mode for Doc Detective with step-through and breakpoint debugging
Aug 13, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR implements a comprehensive debug mode for Doc Detective that enables developers to pause test execution, inspect state, and control test flow for enhanced debugging capabilities.
Overview
The debug mode provides three key debugging workflows:
--debug): Pauses execution at steps marked with"breakpoint": true--stepThrough): Pauses at every step for granular controlKey Features
Interactive Debug Interface
When paused, users see a comprehensive debug display:
Failure Recovery Options
When a step fails in debug mode, users get four recovery options:
Schema Integration
Uses existing schema properties with full backward compatibility:
Implementation Details
--debugand--stepThroughflags override config settingsBackward Compatibility
Dependencies Added
inquirer@^9.2.0: Interactive command-line promptschalk@^4.1.2: Terminal color outputFixes #52.
Warning
Firewall rules blocked me from connecting to one or more addresses
I tried to connect to the following addresses, but was blocked by firewall rules:
app.posthog.comnode /home/REDACTED/work/.github/.github/core/node_modules/.bin/mocha test/core.test.js test/debug.test.js(dns block)node src/index.js --input ../core/test/debug-test.spec.json --logLevel info(dns block)node src/index.js --input ../core/test/debug-test.spec.json --debug --logLevel info(dns block)googlechromelabs.github.ionode scripts/postinstall.js(dns block)hg.mozilla.orgnode ./dist/install.js(dns block)product-details.mozilla.orgnode scripts/postinstall.js(dns block)this-domain-does-not-exist-12345.comnode src/index.js --input ../core/test/debug-fail-test.spec.json --debug --logLevel info(dns block)www.google.comnode /home/REDACTED/work/.github/.github/core/node_modules/.bin/mocha test/core.test.js test/debug.test.js(dns block)If you need me to access, download, or install something from one of these locations, you can either:
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.