mattzeunert/javascript-breakpoint-collection

Improve trace message for generic object get/set/call breakpoints

Closed this issue · 1 comments

screen shot 2016-05-08 at 14 16 11

This should show that the property was set to "Hello".

However, I think there is one issue here: We don't want to show a huge trace message. For example, a long string should be concatenated, and showing arrays with objects with them might not work well.

Maybe for now just logging numbers, booleans and truncated strings might be enough?

When accessType is set to 'set', the new property value is shown in the trace message, with ellipsis at the end if the length of the string exceeds 10 characters. Support added for strings, numbers and boolean types. Other objects will show as [omitted].