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

Option to run with no opcode counter #1

Closed
mjpieters opened this issue Sep 17, 2018 · 0 comments
Closed

Option to run with no opcode counter #1

mjpieters opened this issue Sep 17, 2018 · 0 comments

Comments

@mjpieters
Copy link
Contributor

Currently, you must run bots locally with a tracer (when using Python 3.7 at least), which slows execution down and hinders debugging.

I hacked up my client to accept a negative opcode limit, to turn off the tracer altogether:

    if opcode_limit is None:
        opcode_limit = utils.get_setting("botany_opcode_limit")
    if opcode_limit < 0:
        opcode_limit = None

This isn't the cleanest approach, but illustrates an approach.

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

1 participant