Beef icon indicating copy to clipboard operation
Beef copied to clipboard

[Enhancement] DeallocStackTrace

Open disarray2077 opened this issue 4 years ago • 0 comments

A "DeallocStackTrace" could be quite useful while debugging double deletes or attempts to access deleted objects.

Currently, it's possible to get it if you use the code below and look at the _deallocStackTrace's AllocStackTrace, but if this was available by default or as an opt-in setting in the Workspace properties it surely would be better.

#if DEBUG
private Object _deallocStackTrace ~ { _ = new Object(); delete _; }
#endif

disarray2077 avatar Dec 02 '21 19:12 disarray2077