How to get the debug on post working?

Hello,

 

I would like to know if someone could explain to me how this part of PHP storm works please.

 

I would like to test my registration page by passing variables and see how they affect my functions.

I see this screen here:

 

But cannot work out how I should add the data when used as "POST" or even "GET", could someone show me an example please?

 

Here is my form:

 

 

What is the workflow when using Xdebug please?

How does it works? Do you pass the variables directly inside PHP storm or fill them up inside the form on the local copy(in the browser) and use the xdebugger plugin or chrome?

 

I really wish to start using xdebug(which is installed correctly on my machine) but do not know yet how to use it properly.

 

Thanks!

 

 

0
1 comment

There are three ways:

  1. You can open the login page, fill the data manually, enable Xdebug session (with the bookmarklets or a browser extension) and click the button that starts processing the form
  2. You can pass these parameters right away with the run/debug configuration (a screenshot attached)
  3. You can use the REST client for that https://stackoverflow.com/questions/36062217/how-to-pass-post-parameters-using-phpstorm-rest-client

Please let us know if you have any further questions.

0

Please sign in to leave a comment.