Login | Register
My pages Projects Community openCollabNet

Discussions > tsWebEditor > Re: tsWebEditor Debug Problem

Project highlights: home | downloads | news | features | screenhots | support

tswebeditor
Discussion topic

Hide all messages in topic

All messages in topic

Re: tsWebEditor Debug Problem

Author yacaph
Full name Joseph McLaughlin
Date 2008-05-05 13:02:44 PDT
Message >hi,
>
>>XDEBUG_SESSI​ON_START=tswebeditor​ from the browser. This
>>time tsWebEditor worked and a log file was created, but I
>
>>was unable to stop the debug session after I stepped
>>through the loop. I closed the editor then re-opened
>>xdebug_test.php in tsWebEditor and was able to step
>through
>
>well, if the script exits also the debug session will
>exit.
>btw you can see in the window title, if tswebeditor is
>debugging (the word debugging or something should be
>there)
>
>>it, but again was not able to stop the debug session
>within
>>the editor as all buttons were disabled. After closing
>and
>>re-starting the editor I found myself back to the error
>>that started this thread:
>
>a sign that tswebeditor is not debugging when all debug
>buttons are disabled.
>maybe your mistake: you have to open a file or else the
>editor will reject a debug session.
>
>>
>>Exception from Debugger
>>Can not get property(when the requested property to get
>>did
>>not exist, thei is NOT used for and existing but
>>uninitialised
>>property , which just gets the type "uninitialised" (See
>>PreferredTypeNames)
>
>maybe you have something the watch window. remove it.
>also be careful with your mouse cursor. everything under
>it
>will be evaled (like in the watch window).
>
>as i can see in the log, tswebeditor tries to get a
>property
>with the name i, but it doesn't exist.
>
>><- property_get -i 7 -n i
>>-> <response xmlns="urn:debugger_​protocol_v1"
>>xmlns:xdebug="http://xdebug.org/dbgp/xdebug"
>>command="property_get" transaction_id="7" status="break"
>>reason="ok"​><error code="300"><me​ssage><![CDATA​[can not
>get
>>property]]​></message>​</error></res​ponse>
>
>
>... thaler.

It seems that clearing the watches also cleared up the
error, although I still get instances where the title bar
includes ** Debugging [Running]**, and debug run & stop are
disabled. The DOS php.exe window pops and stays active.
This seems to occur when a line of code cannot be executed,
and afterwards the break point, which is in a later line of
code, has a yellow check mark in it. When this happens the
only way that I've found to get back to normal is to close
then reopen tsWebEditor.

Re: tsWebEditor Debug Problem

Author thaj
Full name Thaler
Date 2008-05-04 09:20:47 PDT
Message hi,

>XDEBUG_SESSION_S​TART=tswebeditor from the browser. This
>time tsWebEditor worked and a log file was created, but I
>was unable to stop the debug session after I stepped
>through the loop. I closed the editor then re-opened
>xdebug_test.php in tsWebEditor and was able to step through

well, if the script exits also the debug session will exit.
btw you can see in the window title, if tswebeditor is
debugging (the word debugging or something should be there)

>it, but again was not able to stop the debug session within
>the editor as all buttons were disabled. After closing and
>re-starting the editor I found myself back to the error
>that started this thread:

a sign that tswebeditor is not debugging when all debug
buttons are disabled.
maybe your mistake: you have to open a file or else the
editor will reject a debug session.

>
>Exception from Debugger
>Can not get property(when the requested property to get
>did
>not exist, thei is NOT used for and existing but
>uninitialised
>property , which just gets the type "uninitialised" (See
>PreferredTypeNames)

maybe you have something the watch window. remove it.
also be careful with your mouse cursor. everything under it
will be evaled (like in the watch window).

as i can see in the log, tswebeditor tries to get a property
with the name i, but it doesn't exist.

><- property_get -i 7 -n i
>-> <response xmlns="urn:debugger_​protocol_v1"
>xmlns:xdebug="http://xdebug.org/dbgp/xdebug"
>command="property_get" transaction_id="7" status="break"
>reason="ok"><error code="300"><me​ssage><![CDATA​[can not get
>property]]>​</message></e​rror></respons​e>


... thaler.

Re: tsWebEditor Debug Problem

Author yacaph
Full name Joseph McLaughlin
Date 2008-05-04 06:38:23 PDT
Message >>>Turn on the log.
>>> - in the editor
>>> - or php.ini: xdebug.remote_log
>>> http://xdebug.org/do​cs/remote#remote_log​
>>
>>I tried both turning the log on via the debug parameters
>>page and by directing directing it to a file via
>>xdebug.remot​e_log=C:\xdebug.log​ in my php.ini
>are you sure it was the right php.ini, use phpinfo() to
>check it.
>
>have you seen
>http://tswebeditor.a​tspace.org/doc/edito​r_dbg.html ? (not
>very up-to-date, but helps)

Thaler,

All of my settings appeared to be correct according to the
info contained in Chapter 10, but when I ran the debugger
from the browser I got a "no input file specified" error.

After some online research I changed my doc_root setting in
php.ini from "doc_root = d:\inetpub\wwwroot to doc_root =
d:\, re-booted then changed it back to doc_root =
d:\inetpub\wwwroot and re-booted again and re-ran
http://localhost/xde​bug-test.php?
XDEBUG_SESSION_START​=tswebeditor from the browser. This
time tsWebEditor worked and a log file was created, but I
was unable to stop the debug session after I stepped
through the loop. I closed the editor then re-opened
xdebug_test.php in tsWebEditor and was able to step through
it, but again was not able to stop the debug session within
the editor as all buttons were disabled. After closing and
re-starting the editor I found myself back to the error
that started this thread:

Exception from Debugger
Can not get property(when the requested property to get did
not exist, thei is NOT used for and existing but
uninitialised
property , which just gets the type "uninitialised" (See
PreferredTypeNames)

can not get property

I re-booted again, but still get the error. I'm including
the log entries for your review. They don't tell me very
much - I hope that they mean something to you.

Thanks,

Joseph


Log opened at 2008-05-04 13:09:07
-> <init xmlns="urn:debugger_​protocol_v1"
xmlns:xdebug="http://xdebug.org/dbgp/xdebug"
fileuri="file:///D:/​Inetpub/wwwroot/xdeb​ug_test.php"
language="PHP" protocol_version="1.0" appid="2120"
idekey="administrato​r"><engine version="2.0.3"><![CDATA
[Xdebug]]></en​gine><author​><![CDATA[Derick​ Rethans]]
></author>​<url><![CDAT​A[http://xdebug.org]]
></url><​copyright><![C​DATA[Copyright (c) 2002-2008 by
Derick Rethans]]></co​pyright></init​>

<- feature_set -i 1 -n multiple_sessions -v 0
-> <response xmlns="urn:debugger_​protocol_v1"
xmlns:xdebug="http://xdebug.org/dbgp/xdebug"
command="feature_set" transaction_id="1"
feature="multiple_sessions" success="1"></​response>

<- status -i 2
-> <response xmlns="urn:debugger_​protocol_v1"
xmlns:xdebug="http://xdebug.org/dbgp/xdebug"
command="status" transaction_id="2" status="starting"
reason="ok"></​response>

<- breakpoint_set -i 3 -t line -s enabled -f file:///D:%
5CInetpub%5Cwwwroot%​5Cxdebug%5Ftest.php -n 5
-> <response xmlns="urn:debugger_​protocol_v1"
xmlns:xdebug="http://xdebug.org/dbgp/xdebug"
command="breakpoint_set" transaction_id="3" state="enabled"
id="21200001">​</response>

<- breakpoint_set -i 4 -t line -s enabled -f file:///D:%
5CInetpub%5Cwwwroot%​5Cxdebug%5Ftest.php -n 3
-> <response xmlns="urn:debugger_​protocol_v1"
xmlns:xdebug="http://xdebug.org/dbgp/xdebug"
command="breakpoint_set" transaction_id="4" state="enabled"
id="21200002">​</response>

<- run -i 5
-> <response xmlns="urn:debugger_​protocol_v1"
xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="run"
transaction_id="5" status="break"
reason="ok"><x​debug:message
filename="file:///D:​/Inetpub/wwwroot/xde​bug_test.php"
lineno="3"></x​debug:message>​</response>

<- stack_get -i 6
-> <response xmlns="urn:debugger_​protocol_v1"
xmlns:xdebug="http://xdebug.org/dbgp/xdebug"
command="stack_get" transaction_id="6"><stack
where="{main}" level="0" type="file"
filename="file:///D:​/Inetpub/wwwroot/xde​bug_test.php"
lineno="3"></s​tack></respons​e>

<- property_get -i 7 -n i
-> <response xmlns="urn:debugger_​protocol_v1"
xmlns:xdebug="http://xdebug.org/dbgp/xdebug"
command="property_get" transaction_id="7" status="break"
reason="ok"><error code="300"><me​ssage><![CDATA​[can not get
property]]></m​essage></error​></response​>

<- stop -i 8
-> <response xmlns="urn:debugger_​protocol_v1"
xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="stop"
transaction_id="8" status="stopped" reason="ok"></​response>

-> <response xmlns="urn:debugger_​protocol_v1"
xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="stop"
transaction_id="8" status="stopping" reason="ok"></​response>

Log closed at 2008-05-04 13:09:12

Re: tsWebEditor Debug Problem

Author thaj
Full name Thaler
Date 2008-05-03 11:08:46 PDT
Message >>Turn on the log.
>> - in the editor
>> - or php.ini: xdebug.remote_log
>> http://xdebug.org/do​cs/remote#remote_log​
>
>I tried both turning the log on via the debug parameters
>page and by directing directing it to a file via
>xdebug.remote_lo​g=C:\xdebug.log in my php.ini
are you sure it was the right php.ini, use phpinfo() to
check it.

have you seen
http://tswebeditor.a​tspace.org/doc/edito​r_dbg.html ? (not
very up-to-date, but helps)

Re: tsWebEditor Debug Problem

Author yacaph
Full name Joseph McLaughlin
Date 2008-05-02 10:28:06 PDT
Message >Turn on the log.
> - in the editor
> - or php.ini: xdebug.remote_log
> http://xdebug.org/do​cs/remote#remote_log​

I tried both turning the log on via the debug parameters
page and by directing directing it to a file via
xdebug.remote_log=C:\xdebug.log in my php.ini

No file was created in either case

Re: tsWebEditor Debug Problem

Author thaj
Full name Thaler
Date 2008-04-26 07:20:03 PDT
Message Turn on the log.
 - in the editor
 - or php.ini: xdebug.remote_log
   http://xdebug.org/do​cs/remote#remote_log​

tsWebEditor Debug Problem

Author yacaph
Full name Joseph McLaughlin
Date 2008-04-25 08:40:54 PDT
Message Recently I came across tsWebEditor and decided to give it a
try. Nice IDE, but I can't seem to get the debugger to work w/o
error from either the editor or from the browser. In the
editor I get the following error whenever it hits a breakpoint
(there are no watches in the watch list).

Exception from Debugger
Can not get property(when the requested property to get did
not exist, thei is NOT used for and existing but uninitialised
property , which just gets the type "uninitialised" (See
PreferredTypeNames)

can not get property

System info:
Windows 2000 Pro SP4
IIS 5
PHP 5.2.5
xdebug 2.0.3

PHPInfo also shows DBG 2.15.5

Debug excerpt from PHP.ini
[Zend]
;zend_extension_ts="​d:\php\ext\php_xd​ebug.dll"
zend_extension_ts="d​:\php\ext\php_xde​bug-2.0.3-5.2.5.dll"​
extension=php_dbg.dll
[debugger]
xdebug.remote_enable=On
xdebug.remote_handler=dbgp
xdebug.remote_host=localhost
xdebug.remote_mode=req
xdebug.remote_port=9000


Any help will be greatly appreciated.
Messages per page: