Closed 0xC4DE closed 3 months ago
I am running into this with the same situation, trying to debug an application where there's already parameters in the query string.
Happy to review a PR. Presumably it's an issue in the JavaScript where it's constructing the URLs.
When using flask, with debug enabled, and attempting to debug a page with any URL parameter present, the debugger will malfunction and throw the error: "Error: Could not verify PIN. Network error?" it also does not print the debugger pin into the console, unless upon startup
To replicate this, make a simple Flask test app that throws an error like so:
Now, navigate to
localhost:5000
. After which the debug terminal will appear and work as intended. This is what appears in the console:Do not insert the debugger pin, instead navigate to
localhost:5000?test=test
(any url parameter will cause this). The debug console will appear, upon clicking the terminal button, to cause the PIN prompt, the prompt will appear; however, the error will appear a second time in the terminal, and no PIN will appear.Naturally, the debugger ping should exist anyway. I think the issue is that
?__debugger__...
is inserted instead of&__debugger__...
in circumstances where URL parameters are already present. I cannot verify as I'm not certain where this should live. It's possible this is a Werkzeug problem. Feel free to tell me, and I'll reopen over there.Environment: