NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
[resolved] error in the debug phpEd9


Joined: 22 Mar 2013
Posts: 10
Reply with quote
have a tree project:
/index.php
/../code/config/const.php

in the file index.php:
Code:
...
  define('SS_ROOT', __DIR__ . '/../code/');
  define('ROOT_CODE', SS_ROOT);
  require(ROOT_CODE."config/const.php");
...

in the file const.php:
Code:
...
define('SS_CONFIG_DIR', ROOT_CODE . 'config/');
define('SS_ROOT_CLASSES', ROOT_CODE . 'class/');
...


run debugger in CLI.

mistake in the ad, the constants SS_CONFIG_DIR and SS_ROOT_CLASSES not declared,
in the "Watch", after the data lines of code debugger
SS_CONFIG_DIR = SS_CONFIG_DIR
SS_ROOT_CLASSES = SS_ROOT_CLASSES

but constants SS_ROOT and ROOT_CODE normally declared


Last edited by DlTA on Fri Apr 05, 2013 12:58 am; edited 2 times in total
View user's profileFind all posts by DlTASend private message


Joined: 22 Mar 2013
Posts: 10
Reply with quote
run debugger F7
View user's profileFind all posts by DlTASend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8344
Reply with quote
Debugger can never affect your constants. It just shows you what you have. Check further your code and make sure that the lines you posted are really executed.


_________________
The PHP IDE team
View user's profileFind all posts by dmitriSend private messageVisit poster's website


Joined: 22 Mar 2013
Posts: 10
Reply with quote
code is working correctly, all the constants are declared correctly

but if you look in the debugger, does not process each line, debugger jump to the last

and constants are not defined
View user's profileFind all posts by DlTASend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8344
Reply with quote
Smile lol. It looks like you see one file and execute a totally different one or you have a cache that executes something you had before. Check __FILE__ and make sure it is the file open in the editor. If it is not, check mapping.

_________________
The PHP IDE team
View user's profileFind all posts by dmitriSend private messageVisit poster's website
[resolved] error in the debug phpEd9
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