Created
May 24, 2017 14:08
-
-
Save igoralves1/85c747a1635985d70b0a645265deef42 to your computer and use it in GitHub Desktop.
xdebug sem o browser - POSTMAN GET ou POST
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://stackoverflow.com/questions/1531391/launch-xdebug-in-netbeans-on-an-external-request | |
Go to project properties > run configuration > advanced > debug url and check "Do Not Open web browser" (*). | |
Do not set the host under debugger proxy. Save these settings. In the project window, on your project: | |
right mouse click > debug (this starts listening for debug connections). | |
NO BROWSER IS STARTED. | |
1-Put the xdebug_break(); inside the code to be debbuged. | |
2-IF want to test GET, go to a browser or POSTMAN and put the path in the URL: | |
http://www.mywebsite.com/anysubFolder/myFile.php?XDEBUG_SESSION_START=netbeans-xdebug&id=490062&invoiceID=RG_2d4&hash=I13Dp$variables=youWantToTest. | |
3-Press enter. IF is postman press SEND btn | |
2-IF want to test POST go to POSTMAN and put the path in the URL: | |
http://www.mywebsite.com/anysubFolder/myFile.php?XDEBUG_SESSION_START=netbeans-xdebug&id=490062&invoiceID=RG_2d4&hash=I13Dp$variables=youWantToTest. | |
3-Press SEND btn | |
We should be redirected to the first line on netbeans code | |
(*) you might also have to set a path mapping - for me, it works without |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment