# Pega Studio 22 Version - C# script debugging

**URL:** <https://forums.pega.com/t/pega-studio-22-version-c-script-debugging/8079>\
**Category:** General\
**Tags:** pega-robotic-process-automation, healthcare-and-life-sciences, solutions-engineer, robotic-process-automation\
**Created:** [August 16, 2024, 12:21pm UTC](https://forums.pega.com/t/pega-studio-22-version-c-script-debugging/8079 "2024-08-16T12:21:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![PraneshP9696](https://yyz2.discourse-cdn.com/pega/user_avatar/forums.pega.com/praneshp9696/32/12326_2.png) [@PraneshP9696](https://forums.pega.com/u/PraneshP9696)\
**Post date:** [August 16, 2024, 12:21pm UTC](https://forums.pega.com/t/pega-studio-22-version-c-script-debugging/8079/1 "2024-08-16T12:21:11Z")

</div>

How to debug ‘line by line’ from a C# script component in Pega Studio 22 Version? I don’t find an option of “Start C# Debugging” in the latest studio. Please help at the earliest in this regard. Most of our projects require debugging at C# script level.

---

<div class="post-metadata">

**Author:** ![ThomasSasnett](https://yyz2.discourse-cdn.com/pega/user_avatar/forums.pega.com/thomassasnett/32/7690_2.png) [@ThomasSasnett](https://forums.pega.com/u/ThomasSasnett)\
**Post date:** [August 16, 2024, 1:30pm UTC](https://forums.pega.com/t/pega-studio-22-version-c-script-debugging/8079/2 "2024-08-16T13:30:12Z")

</div>

@PraneshP9696Script debugging is not available in 22.1. If you are going to do a lot of C# code in your Robotics projects, I suggest writing and testing that code in Visual Studio before copying into a script container. You might also consider writing to the runtime log inside your script to assist in debugging. Examples of how to log inside of a script are added to each new script container, so you may copy those to use for your logging.
