Skip to content

[Feature]: Ability to connect debugger to tests #19938

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
markmatney opened this issue May 16, 2025 · 0 comments
Open

[Feature]: Ability to connect debugger to tests #19938

markmatney opened this issue May 16, 2025 · 0 comments
Labels

Comments

@markmatney
Copy link

Is the feature relevant to the Firefox PDF Viewer?

No

Feature description

In attempting to connect a debugger to the integration tests

node --inspect-brk node_modules/.bin/gulp integrationtest

I discovered that the gulpfile spawns a subprocess, and in doing so drops the --inspect-brk flag.

I have found my temp workaround

   // passed to the Node.js process itself and not to the script that it runs.
+  args.unshift("--inspect-brk")
   args.unshift("--max-http-header-size=80000");
   return spawn("node", args, options);
 }

to be quite useful in allowing me to step through the automated user interactions and observe the expected behavior of the app. It would be nice if this was configurable on the command line.

Other PDF viewers

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants