# Debugging Slim3 from PHPStorm with Xdebug

**URL:** <https://discourse.slimframework.com/t/debugging-slim3-from-phpstorm-with-xdebug/2568>\
**Category:** Questions\
**Created:** [July 31, 2018, 6:54pm UTC](https://discourse.slimframework.com/t/debugging-slim3-from-phpstorm-with-xdebug/2568 "2018-07-31T18:54:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ideaguy3d](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.slimframework.com/ideaguy3d/32/721_2.png) [@ideaguy3d](https://discourse.slimframework.com/u/ideaguy3d)\
**Post date:** [July 31, 2018, 6:54pm UTC](https://discourse.slimframework.com/t/debugging-slim3-from-phpstorm-with-xdebug/2568/1 "2018-07-31T18:54:52Z")

</div>

### I’m trying to use Xdebug for PHPStorm and want to step through everything inside the callback function for a route, but can’t get the debugger to get inside there.

- This is where all my custom scripts go for business logic. I want to make sure all the  
arrays and strings are the values I want them to be when I make a request to slim.

- I tried to force values via $\_SERVER but can’t get Xdebug to get inside that callback  
function.

**Is this even possible? If so how do I do it?**  
_Here is a screenshot, I’m just trying to get to line 36_

 ![slim-debug](https://canada1.discourse-cdn.com/flex030/uploads/slimframework/original/1X/cf4aa076a9282b7b6a88a795bbc06c021b898ae2.png)

---

<div class="post-metadata">

**Author:** ![ideaguy3d](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.slimframework.com/ideaguy3d/32/721_2.png) [@ideaguy3d](https://discourse.slimframework.com/u/ideaguy3d)\
**Post date:** [July 31, 2018, 7:10pm UTC](https://discourse.slimframework.com/t/debugging-slim3-from-phpstorm-with-xdebug/2568/2 "2018-07-31T19:10:33Z")

</div>

**Actually I figured it out, I forgot to set request type to get. Then I clicked run to cursor button after placing cursor on line 35.**

_I’ve heard this is more difficult with POST reqs though… luckily I don’t need that right now_

 ![slim-debug-working](https://canada1.discourse-cdn.com/flex030/uploads/slimframework/original/1X/ba5193a0cc9748770e6ded89d9c8cf830435d0c5.png)
