[tools] Automatic build and debug environment setup