# Debugging with OpenOCD

Make sure the following line is present in the .cfg file for your target:

```
 gdb_port 3333
```

Edit the port number if necessary. Specify that port in the process options and use the Debugger, Attach command.

Tips: Use the [GDB command line](https://docs.hex-rays.com/8.4/user-guide/user-interface/command-line) to send commands directly to OpenOCD interpreter. Back to [Remote GDB Debugger](https://docs.hex-rays.com/8.4/user-guide/debugger/remote-debugging/remote-gdb-debugger)
