> 1. Why the red condition doesn't work?
There's no if/else statement in qbs like in C.
> 2. How to debug qbs script? e.g. print some debug information?
Use the print function for that. For example
someProperty: {
print("x is " + x)
return x
}
BR,
Jörg