Hello everyone, just thought I'd throw this out there. Any likelihood we'll one day see a cga debugger which would allow us to step through our code line by line? Something like that sure would help me out.
Do you use the Model Hierarchy? It is kind of like that, but not quite. In any case, the Inspect Model mode is a necessity for debugging CGA. Printing to the console is also very useful.
CC: Pascal Mueller
Thanks Chris. I am fairly new to CityEngine/CGA and don’t know of the model hierarchy. I will investigate it.
Along with the methods suggested by Chris, I have found color flagging to be surprisingly very helpful for debugging and getting relative location. I usually define rules named red, white and blue is most rules I write to determine where I am spatially in each model. Essentially it help to define rules that create visual representations of potential problems, but all the conventional debugging methods Chris mentioned are also critical (inspect model is the easiest way to determine shape scope/alignment etc).
Retrieving data ...