Game Development Community

What script called my c++ code? The answer

by Brandon James · in Torque Game Engine · 06/08/2006 (11:40 am) · 2 replies

While at a breakpoint in torque c++ code this watch tells me what
script method called the executing code

(*(*(((gEvalState).stack).mArray))).scopeName

I was wondering how to do this for ages and hadn't really looked too hard at it. Then I found it kind of by luck so I thought I'd share this with you all. Very handy when you find yourself in a method you didn't expect the script to be calling.

#1
06/08/2006 (2:04 pm)
Very interesting, thanks!
#2
06/08/2006 (3:38 pm)
A pet peeve of mine. VC++ does this...

(*(*(((gEvalState).stack).mArray))).scopeName

... when this is much easier to read...

(*gEvalState.stack.mArray)->scopeName

Silly debugger. :)

Good tip Brandon!