---
title: quit命令
description: "立即终止调试会话并退出程序。"
url: https://www.hikunpeng.com/document/detail/zh/kunpengdevps/debugging/debugger/KunpengDevKitCli_0148.html
sourcePath: /source/zh/kunpengdevps/debugging/debugger/KunpengDevKitCli_0148.html
indexId: 9cb0edc8d41596e162b00832c62139450265f330ce1efa6a92c342a20d2212d969
---
# quit命令

#### 命令功能

立即终止调试会话并退出程序。


#### 命令格式

```
quit/q [-h | --help]
```

quit命令可简写为q。


#### 参数说明


**表1 quit命令参数**

| 参数 | 参数说明 |
| --- | --- |
| 无 | 立即终止调试会话并退出程序。 |
| \-h/\-\-help | 可选参数，获取帮助信息。 |


#### 使用示例

执行以下命令，查看quit支持的功能信息：

```
quit -h
```

返回信息如下：

```
OVERVIEW
    Run this command to terminate the debugging session and exits the application immediately.

USAGE
    quit/q
    [-h | --help]

OPTIONS
    -h, --help
    Get help information.

EXAMPLE
    # Terminates the debugging session and exits the application immediately.
    quit
```
