test(app): debug messages for app.stack building

Log app.stack content in debug mode.