您可以在「Run」分頁的「Run」 >「Edit configurations」中,設定 Cloud Code Kubernetes 和 Cloud Run 設定的監看模式:
手錶模式
說明
隨選
新執行設定的預設值。
Cloud Code 只會在觸發時重建及重新部署應用程式。如要觸發「隨選」模式,請按一下「Trigger Build and Deploy」(觸發建構及部署) ,或按下 Mac OS 上的 Option+Cmd+Comma 鍵或 Windows 上的 Ctrl+Alt+Comma 鍵 (預設的按鍵繫結)。
[[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["缺少我需要的資訊","missingTheInformationINeed","thumb-down"],["過於複雜/步驟過多","tooComplicatedTooManySteps","thumb-down"],["過時","outOfDate","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["示例/程式碼問題","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間:2025-08-11 (世界標準時間)。"],[[["Cloud Code's watch mode allows for rapid application changes during development or debugging, offering a faster feedback loop in Kubernetes and emulated Cloud Run sessions."],["Watch mode can be set to \"On demand,\" where manual triggering is required via the \"Trigger Build and Deploy\" button or specified keyboard shortcuts, or \"On file save\" for automatic rebuilds and redeploys when changes are saved, though the latter is unavailable in debug mode."],["The \"Trigger Build and Deploy\" function, which defaults to `Option+Cmd+Comma` on Mac OS and `Ctrl+Alt+Comma` on Windows, can have custom key bindings configured in the IDE's Keymap settings."],["When debugging with \"On demand\" mode, triggering a rebuild and redeploy will terminate and reattach the debugger, and a prompt will appear to confirm this action before proceeding."],["Using watch mode, a developer can fix a bug during a debug session, trigger a rebuild and redeployment, then reattach the debugger to verify changes without restarting the application manually."]]],[]]