1# devicedebug 2 3 4devicedebug provides the capability of sending signals to applications for debugging purposes. Currently, signals can be sent only to processes of debuggable applications managed by AMS to terminate these processes. 5 6> **NOTE** 7> 8> Before using this tool, you must obtain <!--Del-->[<!--DelEnd-->hdc<!--Del-->](../../device-dev/subsystems/subsys-toolchain-hdc-guide.md)<!--DelEnd--> and run the **hdc shell** command. 9 10**Table 1** devicedebug commands 11 12| Command| Description| 13| -------- | -------- | 14| help/-h | Displays the commands supported by the devicedebug tool.| 15| kill | Kills a process with a specified PID.| 16 17 18## Help Command 19```bash 20devicedebug help 21``` 22 23**Table 2** Help command 24 25| Command | Description | 26| ------- | ---------- | 27| devicedebug help | Displays the commands supported by devicedebug.| 28 29Example: 30 31```bash 32# Display the help information. 33devicedebug help 34``` 35 36 37## Kill Command 38 39```bash 40devicedebug kill 41``` 42Sends the signal (1-64) to a process of the debuggable application. After receiving the signal, the application terminates the corresponding process. 43 44**Table 3** Kill command parameters 45 | Command| Description| 46 | -------- |-------------------| 47 | help/-h | Help information.| 48 | -\<signal\> \<pid\> | **signal** (1-64) indicates the kill signal, which is used to kill a process of the debuggable application with a specified PID. This field is mandatory.| 49 50 **Return value** 51 52 If the process corresponding to the PID is a non-application process, "devicedebug: kill: {pid}: No such app process" is displayed. If the corresponding process is not a debuggable application process, "devicedebug: kill: process: {pid} is not debuggable app" is displayed. 53 54Example: 55 ```bash 56 # Kill the 12111 process using signal 9. 57 devicedebug kill -9 12111 58 ``` 59