How to run debugger from command prompt in Windows? |
Site Admin
|
uncheck tools->settings->debugger->auto select host and specify localhost as hostname.
Alternatively, set debugger.JIT_host=localhost in php.ini (check path to php.ini in phpinfo output) |
||||||||||||
|
|
Thanks Dmitri,
This didn't make any difference
This worked. Thanks! But... This means that in order to debug from the command line I need to alter php.ini and restart Apache every time or leave debugging in this way enabled all of the time. This is not so good, but it's ok if it needs debugbreak() to invoke the JIT debugger. Also, setting debugger.JIT_enabled=off or =on has no effect on this so I assume that debugbreak() invokes the JIT debugger regardless of the JIT_enabled setting? I think the best thing would be for me to run the scripts from within PHPed and manually set the $argv array myself in the script. Especially since I have to alter the script to insert a debugbreak() anyway. It would be ideal if there was a way to turn command line debugging on and off from PHPed, or a way to do it from the command line. You mentioned before that DBGSESSID could be used for this. Could you give me an example usage? Cheers, Jon |
||||||||||||||||
|
|
Yeah, I would be interested too
Right now I have to insert a debugBreak() at the beginning of the script and keep a DOS box open to run it... I also did not find a way to run it directly from PhpEd, activate the debugger and provide the argv[]s . |
||||||||||||
|
Site Admin
|
JIT debugger is not used when it's off. It starts debug session if there an error in the code with level higher than specified. By default all warnings and errors will start debug session when JIT is enabled.
Regarding JIT host setting, it's just a last thing dbg tries when client host to start debugging with is not specified in the DBGSESSID and $_SERVER[REMOTE_ADDR] is not set. With command-line running it's the case. right now you may try something like this php.exe myscript.php DBGSESSID=1@localhost |
||||||||||||
|
How to run debugger from command prompt in Windows? |
|
||
Content © NuSphere Corp., PHP IDE team
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by