![]() |
![]() | Constants during debugging | ![]() |
Veteran
![]() |
![]() |
Hi,
how to see the value of the constants (defined with define()) during the debug session? |
|||||||||||
|
![]() |
![]() | ![]() |
Site Admin
![]() |
![]() |
You may use either Watch or Immediate windows.
|
|||||||||||
|
![]() |
![]() | ![]() |
Veteran
![]() |
![]() |
it seems not possible to add a costant to the watch window
in immediate I don't find them too |
|||||||||||
|
![]() |
![]() | ![]() |
![]() |
![]() | ![]() |
Veteran
![]() |
![]() |
yes ddmitrie; maybe you could add the item "add (CONSTANT_NAME) to watch list" in the contextual help for the constants too; now there is for the normal variables.
Isn't possible to have the value of the constants in the "Locals" view or better "Globals" during the debug? |
|||||||||||
|
![]() |
![]() | ![]() |
Site Admin
![]() |
![]() |
Instead of variables, it's hardly possible to distinguish constant names in the source code.
Right, it's possible to have them in the Globals, but would make very little sense: a) constants are not variables and should not be mixed together ![]() b) they would waste a lot of space. Even without user-defined constants, there are too many extension-defined ones. c) network traffic would increase dramatically, it's important for remote debugging. On the other hand, it could be made with an option to turn them off ![]() |
|||||||||||||||
|
![]() |
![]() | ![]() |
Veteran
![]() |
![]() |
maybe you could show just constants defined from the user with the function "define()"; it should be easy to detect them
about other: a) yes sure, you could create a node "Constants" and show them inside b) I would suggest to show just user defined constants c) yes sure ![]() ![]() |
|||||||||||
|
![]() |
![]() | ![]() |
![]() |
![]() |
Hi,
I’ve just bumped into the same problem as black: ddmitrie`s tip with get_defined_constants() works well BUT it is quite hard to comfortably navigate through the jungle of all defined constants instead just yours ones. As far as I can see there was no further comment of ddmitrie on that issue - is it possible to have this future in a near release? (Maybe my post is a feature request already? ![]() Cheers, Szymon Bakowski |
|||||||||||
|
![]() |
![]() | ![]() |
Site Admin
![]() |
![]() |
Yes, there is a jungle but how would php distinguish your constants from other' ?
|
|||||||||||
|
![]() |
![]() | ![]() |
Site Admin
![]() |
![]() |
highlighter has no relation to debugger
![]() |
|||||||||||
|
![]() |
![]() | ![]() |
![]() |
![]() |
Well, in that context it has because it makes debugging much easier when we know which constants have been defined by us. So there is a way to distinguish it.... |
|||||||||||||
|
![]() |
![]() | Constants during debugging | ![]() |
|
||
![]() |
![]() |
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
