You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As some may already experienced, debugging engine may be difficult and tiring. Especially some more complicated parts like: operational transformation or model-view conversion could use a tool that will help in debugging.
In this issue I propose introducing a method, that when called, will enhance engine classes with additional functionalities. For now we could settle with calling the function manually (i.e. at the beginning of manual sample or unit test that we want to debug).
The list of features introduced by the debug tools is not closed, for now I propose:
add log method to model deltas, operations, ranges and positions - the function will output clean and brief information about object so it is easier to check if, for example an operation has correct parameters,
print model tree, view tree and DOM tree for given root,
store model document state since last n operations ("history" of model document states) - to be able to easier track what changed in the model after applying an operation, stored model document will have to be printable (and maybe diffable with current model?), I think that 5-10 operations history will be enough,
logs in transforming operations (to see what operations/deltas where input and what was the transformation result) - possible addition, I am not sure if it will be doable this way,
at some point we will also probably need some help debugging LiveRanges / Markers but these will be added if and when needed.
The text was updated successfully, but these errors were encountered:
As some may already experienced, debugging engine may be difficult and tiring. Especially some more complicated parts like: operational transformation or model-view conversion could use a tool that will help in debugging.
In this issue I propose introducing a method, that when called, will enhance engine classes with additional functionalities. For now we could settle with calling the function manually (i.e. at the beginning of manual sample or unit test that we want to debug).
The list of features introduced by the debug tools is not closed, for now I propose:
log
method to model deltas, operations, ranges and positions - the function will output clean and brief information about object so it is easier to check if, for example an operation has correct parameters,LiveRange
s /Marker
s but these will be added if and when needed.The text was updated successfully, but these errors were encountered: