Written by

Question Jiri Svoboda · Jun 1, 2017

ZW in other stack frames

Hello,

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.

Thanks

Jiri

Comments

Dmitry Maslennikov · Jun 1, 2017

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.

0
Alexey Maslov · Jun 1, 2017

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

0