howto get results from: dbg_get_profiler_results |
Site Admin
|
In dbg-2.11 profiler starts only with debugger. So you have to start debug session, proceed with executing your script up to the last line where you may call profiler-related functions. I'd recommend you take a look at the sample first.
|
||||||||||||
|
|
I understand that in order to view the profiling information, the debugger has to be started...
So, probably a very simple question, but how do I start the debugger? Without actually debugging. I'm afraid that I'm not using the prefered editor phpED, but emacs... this does have GDB (General DeBugger, the engine behind the better known DDD) support, but to my knowledge GDB does not work throught a socket... You recommendation about the sample file... I don't see where that file helps me... it gives the nice idea that that particular script can be included with each webpage, and it includes some code that generates a human readable table, but I don't see anything related to actually starting the debugger... I'm a bit confused at the moment, hopefully you can clarify it a bit... Regards, Frayja |
||||||||||||
|
|
Ok, I have something working, but it's most likely not the way it's supposed to work...
I downloaded the debug client, asked it to listen on the host called 'frayja' on port 9999. I called the website with the following url: http://myserver/phpinfo.php?DBGSESSID=1@myclientmachine:7869;d=1,p=1 When i switched back to the debug client program, I typed 'cont', and the php program continued... finishing with the profiling information on the browser window... GREAT! It worked! But... This can't be the way that it's supposed to work... I'm don't want to go to the debug program, to say 'continue' followed by 'listen' every time... Isn't there a way to tell the debug client to 'always listen' and 'always continue'? Greeting, Frayja |
||||||||||||
|
Site Admin
|
put them into the command line or command file. |
||||||||||||||
|
|
Ok, my problems are over now thanks a bunch!
For those that only want the profiling information, without the debugging... this is what I did: 1. I downloaded the debug-client http://www.php-debugger.com/dbg/downloads.php, look for 'dbg-cli' 2. I made the following init script for this program, '~/.dbgcli_init' and I put the following lines in: set port 9999 listen cont quit 3. Then I made a bash script that repeatedly started the 'dbg-cli' executable This way, every time the php program is run, a connection can be made to the listening debug-client. The program immediately runs, and then the debug-client closes. Then it is started again, in an infinite loop, always ready to serve me with wonderfull profiling information On a side note, there were two things that (in my opinion) weren't correct: 1. The README file that comes with the dbg-cli executable says that the init file is called ~/dbgcli_init. This is wrong! It looks for the hidden file ~/.dbgcli_init. 2. When I start the dbg-cli with the command 'dbg-cli --port=9999', this port setting is used AFTER the init file is read. This gave me problems because at first I didn't set the port number in the .dbgcli_init file, and it listend on the wrong port number, even though I passed the correct port number along with the command line parameter. Thanks for the help! Regards, Frayja |
||||||||||||
|
howto get results from: dbg_get_profiler_results |
|
||
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