Skip to content
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

Feature idea: option to wait until niddler debugger is attached before letting requests through #18

Closed
maartenvang opened this issue Oct 9, 2020 · 4 comments

Comments

@maartenvang
Copy link
Contributor

maartenvang commented Oct 9, 2020

Right now it's impossible to rewrite/debug requests that happen at the startup of your app, because you can't attach the debugger fast enough. It would be nice to have a flag/feature to block the app launch or block all requests until you have attached the niddler debugger.

How Android does it would be really cool: https://user-images.githubusercontent.com/22808988/59292310-d1fd0780-8c4a-11e9-929b-d2a5ff18ee92.png

But without UI this feature would still be very useful, imo.

@NicolaVerbeeck
Copy link
Collaborator

This already exists. You can pass an integer extra to the launch intent (by configuring a new launch configuration in Android studio for example). The option you need to pass is (I think, no access to my pc right now) : -ei Niddler-Wait-For-Debugger=1

This should give you exactly what you expect if you use the automatic niddler life cycle watcher (default operation)

@NicolaVerbeeck
Copy link
Collaborator

I checked, it is: --ei Niddler-Wait-For-Debugger 1

@matejdro
Copy link

matejdro commented Nov 3, 2021

Could this be documented somewhere?

@NicolaVerbeeck
Copy link
Collaborator

I have added a section in the readme

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

No branches or pull requests

3 participants