Home » Newcomers » Newcomers » Find unintended variable change! How? IDE Feature: Break condition watchpoint ANYWHERE in code(Break at expression condition watchpoint at ANY line of code, not just explicitly set break lines?)
Find unintended variable change! How? IDE Feature: Break condition watchpoint ANYWHERE in code [message #838239] |
Fri, 06 April 2012 19:36 |
Life Champ Messages: 3 Registered: April 2012 |
Junior Member |
|
|
IDE Feature Question:
---------------------
Can Eclipse watch/break when an expression is true at ANY time during execution (well, at least where it is defined), and not just at a particular line?
Feature Benefit:
----------------
The POINT would be this:
Say you have a bunch of code accessing some variable v.
At some point v takes a bad value.
In a perfect world, things would be centralized perfectly and the const keyword would be available in all languages and used without error.
However, in the REAL world, this is not the case, and so:
It would be GREAT if the IDE can break WHENEVER it can determine that v has changed from/to some value! Smile
Feature Implementation:
-----------------------
The Eclipse IDE can already print out expressions in the contexts in which they are available.
I think all that some awesome Eclipse contributor would have to do is
*** Add a way to have Eclipse break upon condition c in a variable v via, e.g,. the expression view.
That way, a human would not have to find every place the expression is in context and inspect the value, but can rather rely on the machine to do so.
Feature Availability:
--------------------
Please LMK if this is not/available already, if there is any chance of this being developed, and with what ETA Smile
Otherwise, does anyone know of an IDE that can do that (preferably for Flash, but this info any language would be of general interest)
Current IDE Usage Details:
---
I'm using it via FlashBuilder 4.6 for Flash development.
Cheers!
[Updated on: Wed, 11 April 2012 17:51] Report message to a moderator
|
|
| | | |
Re: Break at expression condition watchpoint at ANY line of code, not just explicitly set break line [message #844553 is a reply to message #842660] |
Sat, 14 April 2012 04:52 |
Life Champ Messages: 3 Registered: April 2012 |
Junior Member |
|
|
Ya, I've seen some blog posts about doing that.
In Flash Builder 4.6 (FB), right-clicking on the variables there doesn't do anything.
As FB is Eclipse-based, I'd think it should (and I don't see why AS3/Flash-runtime wouldn't be able support this if Java can).
Maybe things would work better if I download Eclipse directly, and then plug in the Flex/Flash compiler.
I'm pressured for time and probably shouldn't spend time setting this up just to test what most likely won't work in normal Eclipse if FB doesn't, but if you think it will likely work in normal Eclipse - for Flash dev - I'll try it. Seems though that maybe the Flash runtime or my CPU just doesn't support watchpoints.
If anyone reading does flash at all, maybe they can first try it for me using Eclipse on their system?? : )
[Updated on: Sat, 14 April 2012 13:12] Report message to a moderator
|
|
|
Re: Break at expression condition watchpoint at ANY line of code, not just explicitly set break line [message #844875 is a reply to message #844553] |
Sat, 14 April 2012 13:07 |
|
On 2012.04.13 22:52, Life Champ wrote:
> Ya, I've seen some blog posts about doing that.
>
> In Flash Builder 4.6 (FB), right-clicking on the variables there doesn't
> do anything.
>
> As FB is Eclipse-based, I'd think it should (and I don't see why
> AS3/Flash-runtime wouldn't be able support this if Java can).
>
> Maybe things would work better if I download Eclipse directly, and then
> plug in the Flex/Flash compiler.
>
> Usually I'm lazy about setting things like that up, but if you think it
> might help, I'll try it.
>
> If anyone reading does flash at all, maybe they can first try it for
> me?? : )
This isn't a Flash support forum, so if you think this plea has reached
any great number of Eclipse/Flash users, you may be disappointed.
|
|
|
Goto Forum:
Current Time: Wed Apr 17 22:15:46 GMT 2024
Powered by FUDForum. Page generated in 0.03700 seconds
|