add signal consumer breakpoints by eduhmc · Pull Request #69383 · angular/angular
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.
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.
| override setSignalBreakpoint(position: SignalNodePosition, target: Frame): void { | ||
| const setBreakpoint = ` | ||
| (() => { | ||
| const fn = inspectedApplication.findSignalNodeByPosition('${JSON.stringify(position)}'); |
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?
| const fn = inspectedApplication.findSignalNodeByPosition('${JSON.stringify(position)}'); | |
| const fn = inspectedApplication.findSignalNodeByPosition('${stringifyAndEscape(position)}'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters