# Editing and debugging a SwiftPM plugin?

**URL:** <https://forums.swift.org/t/editing-and-debugging-a-swiftpm-plugin/71935>\
**Category:** Using Swift\
**Created:** [May 19, 2024, 12:06am UTC](https://forums.swift.org/t/editing-and-debugging-a-swiftpm-plugin/71935 "2024-05-19T00:06:27Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![eskimo](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/eskimo/32/13558_2.png) [@eskimo](https://forums.swift.org/u/eskimo)\
**Post date:** [May 23, 2024, 7:30am UTC](https://forums.swift.org/t/editing-and-debugging-a-swiftpm-plugin/71935/6 "2024-05-23T07:30:22Z")

</div>

My favourite trick for this problem in general is to add a `pause()` system call to the front of my code. That stops the process until it receives a signal, and the act of attaching the debugger generates that signal and thus you can just continue from there.

Note that I’ve never tried it with SwiftPM plug-in, but I’ve used it in a wide variety of other circumstances.

Share and Enjoy

Quinn “The Eskimo!” @ DTS @ Apple

---

_[View the full topic](https://forums.swift.org/t/editing-and-debugging-a-swiftpm-plugin/71935)._
