Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » PHP Development Tools (PDT) » Some little feature request
Some little feature request [message #43087] Wed, 15 August 2007 13:11 Go to next message
Fabio Z is currently offline Fabio ZFriend
Messages: 46
Registered: July 2009
Member
Hi,

I'm an "old" programmer but new to php and eclipse/pdt.
Can I ask some feature for the debugger?
I don't know where else I can send them :(

- Assign a function key to the "Relaunch" menu voice.
On the Debug tab I can right click a debug and relaunch it, but a function
key for the selected one may be more handy.
I can relaunch with F11, but it lauch another debug and each time I have to
choose the debug type from the dialog window.

- It is not possible to implement the classic "immediate tab" where I can
write and evaluate code?

- The tab "Expressions" would be nice if I could add/edit an expression to
the list without open the dialog for it.
The classic editing of a treeview...

- Is it not possible to add the possibility to set the current code line to
be debugged?
I want to say: I'm debugging and I'm on the line 10, I go on on the line 11
(with F6), I want to return to the line 10 and re-execute from it... or
maybe I want to pass to the line 13 skipping the 12... I'm clear? :)

I thank you for the patience :)
Re: Some little feature request [message #43297 is a reply to message #43087] Wed, 15 August 2007 15:17 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: dserodio.gmail.com

Fabio wrote:
> Hi,
>
> I'm an "old" programmer but new to php and eclipse/pdt.
> Can I ask some feature for the debugger?
> I don't know where else I can send them :(

https://bugs.eclipse.org/bugs/ is the right place. Choose PDT as the
Plugin/Component, and "Enhancement" as the severity

> - Assign a function key to the "Relaunch" menu voice.
> On the Debug tab I can right click a debug and relaunch it, but a function
> key for the selected one may be more handy.
> I can relaunch with F11, but it lauch another debug and each time I have to
> choose the debug type from the dialog window.

I don't understand; F11 works fine for me, I don't have to choose the
debug type.

> - It is not possible to implement the classic "immediate tab" where I can
> write and evaluate code?
>
> - The tab "Expressions" would be nice if I could add/edit an expression to
> the list without open the dialog for it.
> The classic editing of a treeview...
>
> - Is it not possible to add the possibility to set the current code line to
> be debugged?
> I want to say: I'm debugging and I'm on the line 10, I go on on the line 11
> (with F6), I want to return to the line 10 and re-execute from it... or
> maybe I want to pass to the line 13 skipping the 12... I'm clear? :)

Right-click on the line you want to stop and choose "Run to Line", or
hit Ctrl+R.

HTH,
Daniel Serodio
Re: Some little feature request [message #43334 is a reply to message #43297] Wed, 15 August 2007 15:39 Go to previous messageGo to next message
Fabio Z is currently offline Fabio ZFriend
Messages: 46
Registered: July 2009
Member
"Daniel Serodio" <dserodio@gmail.com> ha scritto nel messaggio
news:f9v5e3$7fa$1@build.eclipse.org...

>> - Assign a function key to the "Relaunch" menu voice.
>> On the Debug tab I can right click a debug and relaunch it, but a
>> function
>> key for the selected one may be more handy.
>> I can relaunch with F11, but it lauch another debug and each time I have
>> to
>> choose the debug type from the dialog window.
>
> I don't understand; F11 works fine for me, I don't have to choose the
> debug type.

take a look at this:

http://img403.imageshack.us/img403/7176/pdtke8.png

If I press F11 on the debug tab it's ok (I think it does a relaunch) but if
I press F11 on the starting .php file I get the dialog and I must choose the
debug mode.
And if I have the debugger stopped on a breakpoint and I press F11 the
process is not relaunched but a new one is started.



>> - Is it not possible to add the possibility to set the current code line
>> to
>> be debugged?
>> I want to say: I'm debugging and I'm on the line 10, I go on on the line
>> 11
>> (with F6), I want to return to the line 10 and re-execute from it... or
>> maybe I want to pass to the line 13 skipping the 12... I'm clear? :)
>
> Right-click on the line you want to stop and choose "Run to Line", or
> hit Ctrl+R.

"Run to line" run *up* to the next breakpoint as the F8 :( but I cannot
choose the line I want to go to, also if that line is already passed :)
Re: Some little feature request [message #43382 is a reply to message #43087] Wed, 15 August 2007 16:28 Go to previous messageGo to next message
D Kelsey is currently offline D KelseyFriend
Messages: 232
Registered: July 2009
Senior Member
With regard to "Is it not possible to add the possibility to set the current code line to
> be debugged?", you should be able to do run to line. Select the line you want to break
on, bring up the context menu and select run to line.

Dave Kelsey

Fabio wrote:
> Hi,
>
> I'm an "old" programmer but new to php and eclipse/pdt.
> Can I ask some feature for the debugger?
> I don't know where else I can send them :(
>
> - Assign a function key to the "Relaunch" menu voice.
> On the Debug tab I can right click a debug and relaunch it, but a function
> key for the selected one may be more handy.
> I can relaunch with F11, but it lauch another debug and each time I have to
> choose the debug type from the dialog window.
>
> - It is not possible to implement the classic "immediate tab" where I can
> write and evaluate code?
>
> - The tab "Expressions" would be nice if I could add/edit an expression to
> the list without open the dialog for it.
> The classic editing of a treeview...
>
> - Is it not possible to add the possibility to set the current code line to
> be debugged?
> I want to say: I'm debugging and I'm on the line 10, I go on on the line 11
> (with F6), I want to return to the line 10 and re-execute from it... or
> maybe I want to pass to the line 13 skipping the 12... I'm clear? :)
>
> I thank you for the patience :)
>
>
Re: Some little feature request [message #43413 is a reply to message #43334] Wed, 15 August 2007 16:31 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: james.gnr-inc.com

Fabio wrote:
> "Daniel Serodio" <dserodio@gmail.com> ha scritto nel messaggio
> news:f9v5e3$7fa$1@build.eclipse.org...
>
>
> take a look at this:
>
> http://img403.imageshack.us/img403/7176/pdtke8.png
>
> If I press F11 on the debug tab it's ok (I think it does a relaunch) but if
> I press F11 on the starting .php file I get the dialog and I must choose the
> debug mode.
> And if I have the debugger stopped on a breakpoint and I press F11 the
> process is not relaunched but a new one is started.
>
>
>
>
> "Run to line" run *up* to the next breakpoint as the F8 :( but I cannot
> choose the line I want to go to, also if that line is already passed :)
>
>
>


Did you look at Preferences->PHP->Debug->Launching->Allow multiple debug
sessions?


James
Re: Some little feature request [message #43444 is a reply to message #43334] Wed, 15 August 2007 16:35 Go to previous messageGo to next message
D Kelsey is currently offline D KelseyFriend
Messages: 232
Registered: July 2009
Senior Member
>
> "Run to line" run *up* to the next breakpoint as the F8 :( but I cannot
> choose the line I want to go to, also if that line is already passed :)
>
>
>

There is an option in Eclipse to tell it to ignore any breakpoints when
you do a run to line. It can be found in the Preferences menu Run/Debug
and an option to "Skip breakpoints". However I know that the XDebug support
currently doesn't honour that (This is on my list of things to support).

It is not possible to retreat your steps in PHP as far as I know (maybe the
zend debugger has the option, but XDebug doesn't). the only way you can return
to a previous line would be if you are in a loop and going around on the next
iteration.

Dave Kelsey
Re: Some little feature request [message #43537 is a reply to message #43413] Wed, 15 August 2007 18:18 Go to previous messageGo to next message
Fabio Z is currently offline Fabio ZFriend
Messages: 46
Registered: July 2009
Member
"James" <james@gnr-inc.com> ha scritto nel messaggio
news:f9v9km$q4q$1@build.eclipse.org...


> Did you look at Preferences->PHP->Debug->Launching->Allow multiple debug
> sessions?

I set it to Never but nothing changes :(
Re: Some little feature request [message #44373 is a reply to message #43334] Fri, 17 August 2007 19:47 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: dserodio.gmail.com

Fabio wrote:
> "Daniel Serodio" <dserodio@gmail.com> ha scritto nel messaggio
> news:f9v5e3$7fa$1@build.eclipse.org...
>
>>> - Assign a function key to the "Relaunch" menu voice.
>>> On the Debug tab I can right click a debug and relaunch it, but a
>>> function
>>> key for the selected one may be more handy.
>>> I can relaunch with F11, but it lauch another debug and each time I have
>>> to
>>> choose the debug type from the dialog window.
>> I don't understand; F11 works fine for me, I don't have to choose the
>> debug type.
>
> take a look at this:
>
> http://img403.imageshack.us/img403/7176/pdtke8.png
>
> If I press F11 on the debug tab it's ok (I think it does a relaunch) but if
> I press F11 on the starting .php file I get the dialog and I must choose the
> debug mode.

Weird, even if I ask for options, I don't have as many options as you
do, only "Run on Server", "PHP Script" and "PHP Web Page".
Don't know if it makes any difference, but I noticed you're using
XDebug, while I'm using Zend Debugger.

> And if I have the debugger stopped on a breakpoint and I press F11 the
> process is not relaunched but a new one is started.

That's expected, you should use F8 to resume the current session, F11 is
for starting new sessions.

>>> - Is it not possible to add the possibility to set the current code line
>>> to
>>> be debugged?
>>> I want to say: I'm debugging and I'm on the line 10, I go on on the line
>>> 11
>>> (with F6), I want to return to the line 10 and re-execute from it... or
>>> maybe I want to pass to the line 13 skipping the 12... I'm clear? :)
>> Right-click on the line you want to stop and choose "Run to Line", or
>> hit Ctrl+R.
>
> "Run to line" run *up* to the next breakpoint as the F8 :( but I cannot
> choose the line I want to go to, also if that line is already passed :)

Like others have already mentioned, stopping at breakpoints is configurable.

Returning to a previous line, AFAIK is not possible. Eclipse is able to
do this for Java apps with the "Drop to Frame" feature, that returns to
the previous "frame" (function invocation), so you can restart the
current function.

I'm new to PHP, but I don't think that's possible with PHP.


Regards,
Daniel Serodio
Re: Some little feature request [message #44403 is a reply to message #44373] Sat, 18 August 2007 01:24 Go to previous message
Fabio Z is currently offline Fabio ZFriend
Messages: 46
Registered: July 2009
Member
"Daniel Serodio" <dserodio@gmail.com> ha scritto nel messaggio
news:fa4u01$stf$1@build.eclipse.org...


> Returning to a previous line, AFAIK is not possible. Eclipse is able to
> do this for Java apps with the "Drop to Frame" feature, that returns to
> the previous "frame" (function invocation), so you can restart the
> current function.
>
> I'm new to PHP, but I don't think that's possible with PHP.

I'm new too to php, but I tryied the debugger of PhpED and it can do it, but
it does not use xdebug (I think it use the Zend).
The other really handy is its immediate window for the debug.
Previous Topic:Eclipse Europa, mouse drag&drop
Next Topic:Breakpoints with Server Debug?
Goto Forum:
  


Current Time: Thu Dec 26 23:18:14 GMT 2024

Powered by FUDForum. Page generated in 0.04179 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top