Skip to content

add signal consumer breakpoints#69383

Draft
eduhmc wants to merge 2 commits into
angular:mainfrom
eduhmc:add-signal-consumer-breakpoints
Draft

add signal consumer breakpoints#69383
eduhmc wants to merge 2 commits into
angular:mainfrom
eduhmc:add-signal-consumer-breakpoints

Conversation

@eduhmc

@eduhmc eduhmc commented Jun 16, 2026

Copy link
Copy Markdown
Contributor
  • feat(core): expose debuggableFn for effects in signal debug graph
  • feat(devtools): add prototype for setting signal breakpoints

Expose the underlying user function (fn) as debuggableFn for effect nodes in the signal debug graph. This allows debugging tools to locate and set breakpoints on effects.
@angular-robot angular-robot Bot added detected: feature PR contains a feature commit area: core Issues related to the framework runtime area: devtools labels Jun 16, 2026
@ngbot ngbot Bot added this to the Backlog milestone Jun 16, 2026
Add a 'Set Breakpoint' button to the signal details panel. It uses the Chrome Console Utilities debug() and inspect() APIs to programmatically set breakpoints and navigate to the source code without requiring extra permissions for the prototype.
@eduhmc eduhmc force-pushed the add-signal-consumer-breakpoints branch from 8bac4db to 6a0fd1c Compare June 16, 2026 21:36
override setSignalBreakpoint(position: SignalNodePosition, target: Frame): void {
const setBreakpoint = `
(() => {
const fn = inspectedApplication.findSignalNodeByPosition('${JSON.stringify(position)}');

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could it be that we want to use stringifyAndEscape to follow the same standard that was added at #69309?

Suggested change
const fn = inspectedApplication.findSignalNodeByPosition('${JSON.stringify(position)}');
const fn = inspectedApplication.findSignalNodeByPosition('${stringifyAndEscape(position)}');

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: core Issues related to the framework runtime area: devtools detected: feature PR contains a feature commit

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants