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

verbose output #490

Closed
dl1ksv opened this issue Nov 15, 2015 · 1 comment
Closed

verbose output #490

dl1ksv opened this issue Nov 15, 2015 · 1 comment

Comments

@dl1ksv
Copy link
Contributor

dl1ksv commented Nov 15, 2015

If I run
python -v
I get more verbose output. This is helpfull to debug import statements.

Is there a way to get more verbose output on android, too ?

@inclement
Copy link
Member

You'd want to first check if this can be somehow enabled from within python, this would be easiest.

Other than that, you could modify the C initialisation code to either manually change the argv and add the -v (at https://github.com/kivy/python-for-android/blob/master/pythonforandroid/bootstraps/pygame/build/jni/application/src/start.c#L58, or similar for other bootstraps or the old toolchain), or possibly try to find the python C api calls to enable it and add them instead. This might be fiddly though.

If you have a specific problem, feel free to post it on the normal channels. There also should be nothing too special about Android, with python code either installed to site-packages (in which case it's in the path and should be fine) or in your local directory structure which is copied exactly and so relative imports should be the same.

Edit: I'll close this as not really a bug, but if you wanted to add the feature then I'd be happy to accept a good PR about it. In this case you'd want to also add a toggle to enable it via a command line parameter.

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

No branches or pull requests

2 participants