Folks!
Could you please share any best practices on how to debug Embedded Python code?
Given I have the following class method:
ClassMethod HideShip() As %Status [ Language = python ]
{
import iris
shipsgl=iris.gref(iris.cls(__name__)._GetParameter("BoardStorage"))
shipsgl.kill()
from random import Random
board=iris.cls(__name__)._GetParameter("BoardRange")
x=random.randint(0,board+1)
y=random.randint(0,board+1)
shipsgl.set([x,y],1)
}
And when I run it shows the following error:
USER>d ##class(eshvarov.sample.SeaBattle.GamePython).HideShip() D


.png)


