RhinoCompute and Grasshopper call problem

I have made a simple grasshopper script that has some params exposed to compute (GetNumber,GetString …) the script works fine with defaults. Ok

Now recalling the same script from c# trough Rhino Compute (local machine) using same param values i get a error 500.

Ok I have a problem, my question How to debug this ?

I must say that another grasshopper script similar but not the same works fine, just to underline that RhinoCompute is initialized and working, so it seems a error within the particular grasshopper script

but i have no clue on how to detect what’s going wrong, any hint or way to print the error from grasshopper before it returns the generic 500 error code ?

tnks

Gerry

Doing further investigation:

the grasshopper script generates some geometry and writes a 3dm file

Now I see that the file is written with success so the gh script has terminated the work

but since I get a web server exception the return file is not processed

I’m lost

Gerry

Ok Running the Rhino.Compute in debug mode I see the log

How do i set the absolute tolerance, angle toll and units ? before calling the grasshopper script ?

tnks

Gerry