Written by

Developer, analyst, qa, moderator at TECCOD
Question Dmitrij Vladimirov · Jan 15, 2023

How to debug ObjectScript?

Very simple, how to debug? The settings recommended in the docs don't work. I need a convenient way to keep track of what a function returns, like in other languages, by displaying it in the console.

Comments

Dmitry Maslennikov · Jan 16, 2023

Should be quite simple, in some cases even without any configuration. Any ClassMethod has a shortcut to Debug it

Some more settings for different cases, you can find here

0
Ben Spead  Jan 17, 2023 to Dmitry Maslennikov

nice screen capture - a picture is worth 1000 words, but an animated GIF is worth 10,000 :)

0
Dmitrij Vladimirov  Jan 29, 2023 to Dmitry Maslennikov

Looks simple, but I'm still having trouble with it. First of all, do I have to be logged into Intersystems Servers in Intersystems Tools for debugging? Secondly, every time I start debugging I get an error.

What should I do about it? It prevents me from working.

0
Dmitry Maslennikov  Jan 30, 2023 to Dmitrij Vladimirov

If you use version 2022.2 it may not work, try with 2022.3 or 2022.1

0
Raj Singh  Jan 31, 2023 to Dmitry Maslennikov

@Dmitry Maslennikov is correct. There's a bug in 2022.2 builds that prevent debugging from working. The best solution is to move to 2022.3.

0
Evgeny Shvarov · Jan 16, 2023

Which console do you mean? IRIS Terminal or what?

0
Dmitrij Vladimirov  Jan 16, 2023 to Evgeny Shvarov

Any console with ability to display debug information. IRIS Terminal is too bulky to operate effichancy. I am searching for a simple ways to investigate what variables hold what and what return this or another method

0
Robert Cemper  Jan 16, 2023 to Dmitrij Vladimirov

if it's just for variables System Management Portal may do it.

0