0

I wonder how to terminate phpdbg process from within its interactive console.

There were several situations when i need it.

First, when i try to print object content with infinite recursion.

Second, when it hangs after for example usage of bad readline_completion_function defined in .phpdbginit.

CTRL+c combination have no affect.

Mikl
  • 673
  • 9
  • 19
  • yes, ctrl+c is intercepted by phpdbg. will look at the readline_completion_function... – bwoebi Sep 04 '15 at 16:09
  • hmm, what's the issue with that function? works for me here. – bwoebi Sep 15 '15 at 10:35
  • For killing I recommend `ctrl+z` and then `kill -9 %1`. I don't see any good way. You also have that behavior with other debuggers though. What'd be a great idea is simple paging (like gdb has). À la `--- Press to continue, to quit ---`. – bwoebi Sep 15 '15 at 11:21
  • @bwoebi, just tried as you recommend `ctrl+z`, but i doesn't work for me. Only thing it does is print: `^Z`. How should it work? – Mikl Sep 18 '15 at 17:23
  • @bwoebi, about `readline_completion_function` i'll later make some test sample to reproduce this error i have told – Mikl Sep 18 '15 at 17:26
  • @bwoebi, about pager, it would be great if we can use different system pagers from unix shell, such as `less`. I'd really love to have an opportunity to use `less` because of it's feature of search in content it handles, and some more features cool features to go next and prev using different shortcuts. – Mikl Sep 18 '15 at 17:34
  • no idea, but ctrl+z usually should trigger a SIGSTP… are you using Windows? Well… then no idea. – bwoebi Sep 18 '15 at 20:04
  • The issue with using a pager is that you can't scroll back a bit later (e.g. to compare two outputs). I don't really see how I can integrate this nicely, sorry. – bwoebi Sep 18 '15 at 20:09
  • @bwoebi But if you output really big object or array you will have the same problem, you won't be able to scroll back because all screens will be filled with your current output and more you even can't be able to get to the beginning of your current output. Pager can be additional tool to output some data, but not the only one. In general output will go like it goes now, and in addition we can output something using pager. I think for those who want to use pager instead of general output, the scroll back issue is not a problem. – Mikl Sep 21 '15 at 12:09

0 Answers0