Skip to content
This repository has been archived by the owner on Nov 15, 2017. It is now read-only.

Freature request: Watch expressions #71

Open
netbrain opened this issue Jun 10, 2013 · 5 comments
Open

Freature request: Watch expressions #71

netbrain opened this issue Jun 10, 2013 · 5 comments

Comments

@netbrain
Copy link

Add a way to set watch expressions. I work quite a bit with legacy code, and the context could hold several hundred variables. Watch expressions would be a welcomed feature to limit the variable list.

@martomo
Copy link

martomo commented Jun 21, 2013

Unfortunately the 'watch' breakpoint types are not supported by DBGP protocol. (source)

201 - breakpoint type not supported (for example I don't support
'watch' yet and thus return this error)

@cstuder
Copy link

cstuder commented Jul 29, 2013

Hmm, then how does Eclipse do it (Using xdebug with the PDT package)?

@martomo
Copy link

martomo commented Jul 29, 2013

@cstuder What you are talking about is a conditional breakpoint, you are able to define an expression for a breakpoint when to stop.

For example you set a breakpoint in C:\wamp\www\wordpress\wp-settings.php on line 72 and you only want to stop the script when the expression $wp_version=='3.5.2' is true.

breakpoint_set -i 7 -n 72 -t line -f file%3A//C%3A%5Cwamp%5Cwww%5Cwordpress%5Cwp-settings.php -- JHdwX3ZlcnNpb249PSczLjUuMic=

@cstuder
Copy link

cstuder commented Jul 30, 2013

@martomo: No, we're talking about manually entered watch expressions. These expressions are evaluated every time we stop at a breakpoint:

watchexpressions

They can be very, very useful, especially when the local scope is getting out of hand.

martomo added a commit to martomo/SublimeTextXdebug that referenced this issue Aug 4, 2013
Enhanchement: Watch expressions are now supported. (Kindari/SublimeXdebug#71).
Performance: Minimized amount of requests by setting 'max_depth' and 'max_children' on session start.
@martomo
Copy link

martomo commented Aug 4, 2013

@cstuder I have added an initial commit martomo/SublimeTextXdebug@9484168 for this feature to SublimeTextXdebug, please let me know what you think.
I still have to fine tune it some more, enable/disable watch expressions, remove single watch expression instead of having to clear/delete them all.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants