Files
openidea/src/features/debugger/js/EventBreakpoints.module.css
T
ntbang0901 0cd19a8c0f feat(debugger): break on DOM events and requests in a debugged page (#3306)
The Breakpoints dialog gets a JavaScript Events and Requests section: stop when a debugged page handles a mouse, keyboard, form, page or timer event, or sends a request whose URL contains a given text. They are kept per project and sent through js-debug's setCustomBreakpoints to every page session, live ones at once and later ones when they start. A page's requests wait until js-debug has answered its launch, since requests sent while it sets the session up are acknowledged and dropped. A stop on one of these says what it was for above the frames, and js-debug's Caught Exceptions filter explains that it is how errors a framework catches are stopped at. A new page session whose id was used before (after a backend restart) also gets the breakpoints.

Co-authored-by: ntbang0901 <121003585+ntbang0901@users.noreply.github.com>
2026-11-14 15:26:07 +08:00

55 lines
790 B
CSS

.section {
flex: none;
max-height: 40%;
overflow: auto;
border-top: 1px solid var(--border-popup);
padding: 6px 12px 8px;
display: flex;
flex-direction: column;
gap: 2px;
}
.title {
font-size: var(--fs-small);
font-weight: 600;
color: var(--fg-muted);
padding: 2px 0 2px;
}
.hint {
font-size: var(--fs-small);
color: var(--fg-subtle);
padding-bottom: 4px;
}
.refused {
font-size: var(--fs-small);
color: var(--danger);
padding-bottom: 4px;
}
.groups {
display: flex;
flex-wrap: wrap;
gap: 4px 20px;
}
.group {
display: flex;
flex-direction: column;
gap: 2px;
}
.groupTitle {
font-size: var(--fs-small);
color: var(--fg-subtle);
padding-top: 4px;
}
.row {
display: flex;
align-items: center;
gap: 6px;
min-height: 22px;
}