Le 17/10/2015 21:19, Guillaume Munch a écrit :
Le 17/10/2015 15:13, Richard Heck a écrit :
On 10/16/2015 12:34 PM, Guillaume Munch wrote:
The id is now only on InsetMathNest. Please, tell me if you still feel
uncomfortable about this id and I will try a version with pointer
comparison. This incremental id, I found, gives interesting clues in
debug mode when trying to understand how math in LyX works by seeing
how much the id changes. For instance it has been invaluable for
knowing how to even start looking for the cause of the bug addressed
by patch 0006.
Is it possible to activate this only in devel mode? not in release mode?
Then we have the convenience of the debug feature, while keeping memory
usage in releases low.
Richard
I thought about that, but I do not want to introduce a divergence in the
behaviour of release mode compared to devel mode in a fundamental
aspect. This can open the door to a lot of problems: unreproducibility
of bugs, etc.
...as perfectly exemplified by the segfault that I just described.