According to the original docs I could begin to debug on the remote machine.
I could find any code parts and put breakpoints there (via xdebug_break(); inline or via dbpgClient command "breakpoint_set -t line -f /var/www/...Controller.php -n 42"). I could check where am I via stack_get and I could get variable values via context_get or property_get -n $var, but to set the property to another one – it was not so straigthforward.
The main "secret" was the fact, that the default data providing way is base64. So If I wanted to set a variable to 782 I could do it this way:
property_set -n $var -t int -- Nzgy
where Nzgy is the base64 coded variant of 782 (check here: https://www.base64encode.org/ ). No more spaces are allowed at any place. Theoretically we could use direct "base64()" function after the "--" also, but it did not work for me.
This default setting can be changed somehow, but I did not work on it. Maybe in some cases this base64 data representation can be good. But it would be fine to see it in any of the above documentations. (My way to find it was to check it in the https://github.com/xdebug/xdebug code, where there are some tests, fortunately.)
Also this tutorial could show some interesting parts: https://www.youtube.com/watch?v=K4r6qxlaKkY - but I could not use the recent vim with this plugin.
- szz blogja
- A hozzászóláshoz be kell jelentkezni
- 145 megtekintés