Handling High-Frequency Breakpoints in JavaScript
I want to create a breakpoint that invokes a JavaScript function. WinDbg/dx echoes the call to that function every time the breakpoint is hit. This kills performance and readability of output.
Here's my breakpoint command.
> bp ucrtbase!malloc "dx @$scriptContents.OnMallocEntry(); gc"
When it runs, I see endless copies of
@$scriptContents.OnMallocEntry()
@$scriptContents.OnMallocEntry()
@$scriptContents.OnMallocEntry()
@$scriptContents.OnMallocEntry()
@$scriptContents.OnMallocEntry()
@$scriptContents.OnMallocEntry()
Is there some way to avoid this echoing?
- Can I invoke the function some other way besides
dx? - Can I suppress the echo?