NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
How to step through code


Joined: 31 May 2009
Posts: 2
Reply with quote
I am running dbg from the command-line. As far as I understand the proper usage is dbg-cli, file /path/to/file.php, run, step, etc. But as soon as I type "run" it completes and I have no option whatsoever to step through the code line by line. Here is what it looks like:

[root@server dbg]# dbg-cli
DBG php debugger, version 2.15.5, Copyright 2001, 2007, Dmitri Dmitrienko, www.nusphere.com

dbg>file /home/joe/public_html/index.php
Reading symbols from /home/joe/public_html/index.php...done.

dbg>step
The program is not being run.

dbg>run
Program exited.

dbg>step
The program is not being run.

dbg>


Help!!
View user's profileFind all posts by america2Send private message
Site Admin

Joined: 13 Jul 2003
Posts: 8344
Reply with quote
make sure that debugger module is installed. Dbg 2.15.5 should appear in phpinfo and its status should be "ENABLED = ON"

_________________
The PHP IDE team
View user's profileFind all posts by dmitriSend private messageVisit poster's website
How to Step Through Code


Joined: 31 May 2009
Posts: 2
Reply with quote
I think the debugger is enabled. From php.ini:

extension=eaccelerator.so
; extension=xcache.so
extension=memcache.so
extension=suhosin.so
extension=amf.so
extension=dbg.so

[debugger]
debugger.enabled=on
debugger.profiler_enabled=on

From phpinfo():

2006 eAccelerator, by eAccelerator
with DBG v2.15.5, (C) 2000,2007, by Dmitri Dmitrienko
with Suhosin v0.9.27, Copyright (c) 2007, by SektionEins GmbH

I moved extension=dbg.so from last to first and and my sysadmin sent a letter saying I crashed some scripts and dbg.so must go last...
Running the latest CentOS, dbg built from source.

Any other ideas?
View user's profileFind all posts by america2Send private message
How to step through code
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic