NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
applying custom environment/cookies to dbg-cli


Joined: 07 Sep 2004
Posts: 19
Reply with quote
hey,

I was wondering, is there a way to apply custom environmental variables and/or cookies to dbg-cli sessions?

What I'd truly like is to be able to load environmental variables on startup, and pass them to dbg-cli - either that, or be able to load environmental variables via a config file.

Oh yes, and is there an emacs mode? Cool

Ed
View user's profileFind all posts by horos22Send private message
Site Admin

Joined: 13 Jul 2003
Posts: 8344
Reply with quote
dbg-cli 2.11.32 and before does not pass env variables to php. You may want to use HTTP mode and in this case it's HTTP server is responsible for passing them.

Code:
Oh yes, and is there an emacs mode

what's expected for this mode? dbg-cli supports many gdb-like commands. What else is expected?
View user's profileFind all posts by dmitriSend private messageVisit poster's website


Joined: 07 Sep 2004
Posts: 19
Reply with quote
ddmitrie wrote:
dbg-cli 2.11.32 and before does not pass env variables to php. You may want to use HTTP mode and in this case it's HTTP server is responsible for passing them.


Hmm. well, I was hoping to use a php accelerator on my webserver, so I'm not sure how this would affect dbg-cli.

In any case, you pass a pointer to the invoking environment in spawn_process; what I was thinking would be having a hook that loads environmental variables here. That way, I could keep snapshots of
php variable runs around and use them as regression tests.

Quote:

Code:
Oh yes, and is there an emacs mode

what's expected for this mode? dbg-cli supports many gdb-like commands. What else is expected?


well, what I would expect is the ability for emacs or vim to be able to track files and lines in these files. ie: each line that dbg-cli steps through would trigger a new buffer to be opened up, and the cursor to be pointed at the corret file and line.

Ed
View user's profileFind all posts by horos22Send private message
Site Admin

Joined: 13 Jul 2003
Posts: 8344
Reply with quote
Quote:
well, what I would expect is the ability for emacs or vim to be able to track files and lines in these files. ie: each line that dbg-cli steps through would trigger a new buffer to be opened up, and the cursor to be pointed at the corret file and line

It's related to emacs & vim more than to dbg-cli. Latter supports commands that allow it to run under DDD so theoretically it's possible to run dbg under emacs and vim. Personally I don't use them two, you may try and let me know.
View user's profileFind all posts by dmitriSend private messageVisit poster's website
applying custom environment/cookies to dbg-cli
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