Skip to content

Conversation

roed314
Copy link
Member

@roed314 roed314 commented Jun 6, 2022

Our debugger has been broken for a while. There has been recent progress in Cypari toward fixing it for real, but that still hasn't been achieved. However, there is a workaround that can get some of the functionality back.

There are two features that using --debug gives you: it gives you an in-browser traceback and debug prompt, and it makes it so that the application automatically restarts if source files are changed. It's actually this second feature that conflicts with Pari's threading, and it's possible to separate the two. This PR adds a new command line argument, --restart, for this second feature (off by default). As a consequence, if you're working on parts of the LMFDB that use pari you can use --debug successfully, but you'll have to restart manually if there are code changes. If you're working on a part of the LMFDB where pari isn't being called you can use --debug --restart to get the original behavior.

To test, you can use the fact that http://localhost:37777/NumberField/8.0.97571192547662768845333987328.43
is currently causing server errors.

@edgarcosta edgarcosta merged commit 912273c into LMFDB:master Jun 6, 2022
@roed314 roed314 deleted the debug_fix branch January 21, 2024 16:46
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

Successfully merging this pull request may close these issues.

2 participants