# Debugging Linux Applications locally

You may either start a local debugging session on a new process or start a local debugging session and attach it to an existing process. Both options are accessible through the command line.

`ida -rlinux MY_PROGRAM`

will start the program, create a temporary database that allows the user to work with the target at once.

![start\_local\_process.png](https://3899235193-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fd4yKxBBBv1qcoSuL2US4%2Fuploads%2Fgit-blob-dac2d4368bf4ad6fbb83c30e4ba06d54b805f756%2F00_start_local_process.png?alt=media)

The command

`ida -rlinux+`

will offer you a choice of running processes to connect to.

![select\_local\_process](https://3899235193-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fd4yKxBBBv1qcoSuL2US4%2Fuploads%2Fgit-blob-6bc046edad861a0e448f0b54a24f280a167f9c37%2F01_select_local_process.png?alt=media)

and we can proceed with our local Linux debugging session.

![attached\_to\_local\_process](https://3899235193-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fd4yKxBBBv1qcoSuL2US4%2Fuploads%2Fgit-blob-f3c65dca8369c5d170093165848fe5dfed197c0b%2F03_attached_to_local_process.png?alt=media)
