ZW in other stack frames



is it possible to ZW variables in stack frames above the current one? I am calling a custom logging method, and would like to log variables from the point of call.



  • 0
  • 0
  • 165
  • 0
  • 2


Just for debugging, you can use this command

Do LOG^%ETN("some message")

It will collect all variables, on every stack level. And you can find this logs in SMP by  System > System Logs > View Application Error Log > Application Error Dates > Application Errors.

But be careful, this is only for debugging, because creating a log, may take a long time.

Another option is to use a classmethod %SYS.ProcessQuery::ExamStackByPid().