Debugging command arguments

PHP Tools [?] extends Visual Studio with set of advanced features to work more efficiently with PHP code.

Debugging command arguments

Postby Jim.Nickerson » August 7th, 2014, 5:03 pm

I have yet to discover how I might add arguments when I start debugging and add arguments to the command line for example "?one=1&two=2"
For the moment I look for the presence of "[XDEBUG_SESSION_START]" and modify the .php file.
Maybe I missed it in the documentation.
Does anyone know how how or if it is supported ?
Jim.Nickerson
 
Posts: 12
Joined: April 15th, 2014, 3:14 pm

Re: Debugging command arguments

Postby Miloslav Beno » August 11th, 2014, 6:59 am

Hi Jim,

If you are using PHP Command line project, just go to project properties and there's a field for that.

Hope that helped.

Thanks!
Miloslav Beno │ DEVSENSE s.r.o. │ @miloslavbenomiloslav@devsense.com
User avatar
Miloslav Beno
 
Posts: 1252
Joined: January 7th, 2012, 8:36 pm

Re: Debugging command arguments

Postby Jim.Nickerson » August 13th, 2014, 3:35 pm

Thank you for your response.
Actually I am starting from within Visual Studio.
At the moment I can go to the Project ( from the Solution Explorer Window, Right click and select propertise ) and from Startup Options select the Current Page ( the option I use most ) or a Specific page in which case I can specify the command args "?m=1&b=w" etc.
I would like to be able to select current page and specify the args.
At the moment I detect xdebug and provide the debug args in code.
I find I use F5 to begin debugging and after each change I must select Restart (unless I quit debugging, took me a while to catch on to this ).
Jim
Jim.Nickerson
 
Posts: 12
Joined: April 15th, 2014, 3:14 pm


Return to PHP Tools

Who is online

Users browsing this forum: No registered users and 40 guests

User Control Panel

Login

Who is online

In total there are 40 users online :: 0 registered, 0 hidden and 40 guests (based on users active over the past 5 minutes)
Most users ever online was 511 on April 27th, 2024, 10:11 pm

Users browsing this forum: No registered users and 40 guests