Track in which line an object was created

BlitzMax Forums/BlitzMax Programming/Track in which line an object was created

beanage(Posted 2010) [#1]
Is there actually a regular way to do this? The function in it is was created would be enough to know.. just to save me some time looking for some special object created but not released :)


Jesse(Posted 2010) [#2]
no definite way. you might be able to trace it back through the debug tab on the right of the Bmax IDE but that depends if you put a debugSstop or there was a bug that caused the program to crash in that same cycle when it was created.
note that that it is not always possible sense there are bugs that are not detected by the debugger. The operating system itself will shut it down.


Czar Flavius(Posted 2010) [#3]
Assuming your type has a Create function, add as an extra parameter a string and in each place you call the function, put the name of that function as the string.