# Writing a Debugger From Scratch - DbgRs Part 1 - Attaching to a Process

DevFeed: [Writing a Debugger From Scratch - DbgRs Part 1 - Attaching to a Process](<https://devfeed.tech/articles/writing-a-debugger-from-scratch-dbgrs-part-1-attaching-to-a-process-39733.md>)

Original publisher: [Read original article](<https://www.timdbg.com/posts/writing-a-debugger-from-scratch-part-1/>)

Author: Tim Misiak

Published: 2023-02-13T16:20:24Z

Content type: tutorial

Language: en

Sources: [TimDbg](<https://devfeed.tech/sources/timdbg.md>)

Topics: [debugging](<https://devfeed.tech/topics/debugging.md>), [Rust](<https://devfeed.tech/topics/rust.md>), [Processes](<https://devfeed.tech/topics/processes.md>), [Windows](<https://devfeed.tech/topics/windows.md>), [GitHub](<https://devfeed.tech/topics/github.md>), [Visual Studio Code](<https://devfeed.tech/topics/visual-studio-code.md>)

Tags: [code](<https://devfeed.tech/tags/code.md>), [debugger](<https://devfeed.tech/tags/debugger.md>), [debugging](<https://devfeed.tech/tags/debugging.md>), [github](<https://devfeed.tech/tags/github.md>), [ide](<https://devfeed.tech/tags/ide.md>), [os](<https://devfeed.tech/tags/os.md>), [rust](<https://devfeed.tech/tags/rust.md>)

## AI overview

This tutorial begins a series on writing a debugger from scratch in Rust. It introduces debugger concepts and describes the goal of implementing live user-mode debugging on Windows, while focusing on concepts and APIs that apply across programming languages and operating systems.

## Source excerpt

I've left the Microsoft Debugger Platform team twice, and each time I've started writing my own debugger. I must really like debuggers or something. This time, I have two reasons for writing a new debugger. The first is because I want to learn Rust better, and writing something I already understand pretty well seems like a good way to learn. The second reason is to make it easier for people to learn how a debugger works.