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

Expand frame working only for first 10 frames #2239

Merged
merged 1 commit into from Oct 6, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGES.rst
Expand Up @@ -37,6 +37,8 @@ Unreleased
- Fix type annotation in ``CallbackDict``, because it is not
utilizing a bound TypeVar. :issue:`2235`
- Fix setting CSP header options on the response. :pr:`2237`
- Fix an issue lines not expanding on click in the interactive
debugger for very long tracebacks. :pr:`2239`


Version 2.0.1
Expand Down
4 changes: 2 additions & 2 deletions src/werkzeug/debug/shared/debugger.js
Expand Up @@ -21,9 +21,9 @@ docReady(() => {
});

function addToggleFrameTraceback(frames) {
frames.forEach((frame, i) => {
frames.forEach((frame) => {
frame.addEventListener("click", () => {
frame.getElementsByTagName("pre")[i].parentElement.classList.toggle("expanded");
frame.getElementsByTagName("pre")[0].parentElement.classList.toggle("expanded");
});
})
}
Expand Down