5.0 debugger more sophisticated (jump backwards)?

A very nice feature of Visual Basic debugging is, that you can drag the pointer that point to the current line of code backwards (and forwards). This way you can re-execute some line of codes during debugging with changed (temporarily fixed variable values) code just by dragging the debug pointer with the mouse to another code location.
I haven't seen this feature in a Java IDE, I guess this feature is not offered through the Java debugging API. As 5.0 introduces some improvements to this API I wonder if it also offers this "back stepping" in code?

Adjusting the program counter/byte code index to an arbitrary
location is a non-trivial problem because you must also preserve
the integrity of the expression stack and the semantics of the
runtime execution environment (type safety, verification, and
so on...).
I haven't seen this feature in a Java IDE, I guess
this feature is not offered through the Java debugging
API.The current JDI implementations offer PopFrame which
pops frame(s) off the stack. So you can pop out of the leaf
method back to the caller and then re-enter the method.
As 5.0 introduces some improvements to this APIPopFrame was added in 1.4 and was not changed in 5.0
(aside from bug fixes...)
Here is a summary of the JPDA Enhancements in 5.0:
http://java.sun.com/j2se/1.5.0/docs/guide/jpda/enhancements.html
I wonder if it also offers this "back stepping" in code?This capability is the subject of Bug-ID 4059717
Synopsis: "JPDA: Want to be able to set program counter in debugger"
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4059717

Similar Messages

  • DB name shortening algorithm probably needs more sophistication

    Hi,
    I think it might be wise to come up with a more sophisticated way to
    shorten the names when the class names and field names are too long. I
    ran into the following situation with a class called
    "AttributeCollection" with a HashSet field called "attributes". The
    elements of attributes are instances of "Attribute" a simple persistent
    class with a "name" and "value" string. Changing the field name to
    "set" fixed it. The only reason that I found the problem relatively
    easily is that I remembered observing the shortening algorithm (snip) in
    another harmless case.
    David Ezzio
    Yankee Software
    E:\MyCode>kodoschematool -action refresh
    Refreshing schema for type "class
    com.ysoft.jdo.attributes.AttributeCollection" and known subclasses...
    CREATE TABLE ATTRIBUTECOLLECTION_ATTRIBUTEX (ATTRIBUTESX NUMBER, JDOIDX
    NUMBER)
    CREATE INDEX ATTRIBUTECOLLECTION_ATTRIBUTEX ON
    ATTRIBUTECOLLECTION_ATTRIBUTEX (ATTRIBUTESX)
    CREATE INDEX ATTRIBUTECOLLECTION_ATTRIBUTEX ON
    ATTRIBUTECOLLECTION_ATTRIBUTEX (JDOIDX)
    java.sql.SQLException: ORA-00955: name is already used by an existing
    object
    E:\MyCode>kodoschematool -action refresh
    Refreshing schema for type "class
    com.ysoft.jdo.attributes.AttributeCollection" and known subclasses...
    CREATE TABLE ATTRIBUTECOLLECTION_SETX (SETX NUMBER, JDOIDX NUMBER)
    CREATE INDEX ATTRIBUTECOLLECTION_SETXSETX ON ATTRIBUTECOLLECTION_SETX
    (SETX)
    CREATE INDEX ATTRIBUTECOLLECTION_SETXJDOIDX ON ATTRIBUTECOLLECTION_SETX
    (JDOIDX)
    CREATE TABLE ATTRIBUTECOLLECTIONX (JDOIDX NUMBER NOT NULL, JDOLOCKX
    NUMBER, JDOCLASSX VARCHAR2(255), PRIMARY KEY (JDOIDX))
    Refreshing schema for type "class com.ysoft.jdo.attributes.Attribute"
    and known subclasses...
    CREATE TABLE ATTRIBUTEX (JDOIDX NUMBER NOT NULL, JDOLOCKX NUMBER,
    JDOCLASSX VARCHAR2(255), NAMEX VARCHAR2(255), VALUEX VARCHAR2(255),
    PRIMARY KEY (JDOIDX))

    Hi,
    I had the same problem about a month ago. Patrick Linskey suggested in his post from 12.09.01 "Re: Schematool problem" to "use the 'table' class-level extension in
    your system.jdo file". But this didn't seem to work, so I shortened the name of the class to fix it.
    Here is Patricks original post:
    Martin,
    As Joe Mannerling pointed out earlier, the problem that you are seeing
    is related to a bug in Kodo's table name generation algorithm. In
    order to keep table and column names below database limits (Oracle,
    for example, has a 30 character limit), Kodo truncates names to this
    length. Unfortunately, it performs this truncation after assembling
    the name, so if a class name is over a certain length, then name
    conflicts such as those that you are seeing will arise.
    We are working on a better name generation algorithm to resolve this
    problem. In the mean time, use the 'table' class-level extension in
    your system.jdo file:
    <?xml version="1.0"?>
    <jdo>
         <package name="de.mediateam.quizmaster.data">
              <... snip ...>
              <class name="Question">
                   <field name="prerequisites">
                        <collection element-type="Question" />
                   </field>
              </class>
              <class name="TextQuestion" persistence-capable-superclass="Question" />
    <!-- change this section -->
              <class name="MultipleChoiceQuestion"
    persistence-capable-superclass="Question" >
                   <extension key="table" value="MCQuestionX"/>
    </class>
    <!-- end changes -->
              <class name="BooleanQuestion" persistence-capable-superclass="Question" />
              <... snip ...>
         </package>
    </jdo>
    Thanks, and good luck.
    Cheers
    Martin
    On Thu, 18 Oct 2001 08:44:11 -0400, David Ezzio <[email protected]> wrote:
    Hi,
    I think it might be wise to come up with a more sophisticated way to
    shorten the names when the class names and field names are too long. I
    ran into the following situation with a class called
    "AttributeCollection" with a HashSet field called "attributes". The
    elements of attributes are instances of "Attribute" a simple persistent
    class with a "name" and "value" string. Changing the field name to
    "set" fixed it. The only reason that I found the problem relatively
    easily is that I remembered observing the shortening algorithm (snip) in
    another harmless case.
    David Ezzio
    Yankee Software
    E:\MyCode>kodoschematool -action refresh
    Refreshing schema for type "class
    com.ysoft.jdo.attributes.AttributeCollection" and known subclasses...
    CREATE TABLE ATTRIBUTECOLLECTION_ATTRIBUTEX (ATTRIBUTESX NUMBER, JDOIDX
    NUMBER)
    CREATE INDEX ATTRIBUTECOLLECTION_ATTRIBUTEX ON
    ATTRIBUTECOLLECTION_ATTRIBUTEX (ATTRIBUTESX)
    CREATE INDEX ATTRIBUTECOLLECTION_ATTRIBUTEX ON
    ATTRIBUTECOLLECTION_ATTRIBUTEX (JDOIDX)
    java.sql.SQLException: ORA-00955: name is already used by an existing
    object
    E:\MyCode>kodoschematool -action refresh
    Refreshing schema for type "class
    com.ysoft.jdo.attributes.AttributeCollection" and known subclasses...
    CREATE TABLE ATTRIBUTECOLLECTION_SETX (SETX NUMBER, JDOIDX NUMBER)
    CREATE INDEX ATTRIBUTECOLLECTION_SETXSETX ON ATTRIBUTECOLLECTION_SETX
    (SETX)
    CREATE INDEX ATTRIBUTECOLLECTION_SETXJDOIDX ON ATTRIBUTECOLLECTION_SETX
    (JDOIDX)
    CREATE TABLE ATTRIBUTECOLLECTIONX (JDOIDX NUMBER NOT NULL, JDOLOCKX
    NUMBER, JDOCLASSX VARCHAR2(255), PRIMARY KEY (JDOIDX))
    Refreshing schema for type "class com.ysoft.jdo.attributes.Attribute"
    and known subclasses...
    CREATE TABLE ATTRIBUTEX (JDOIDX NUMBER NOT NULL, JDOLOCKX NUMBER,
    JDOCLASSX VARCHAR2(255), NAMEX VARCHAR2(255), VALUEX VARCHAR2(255),
    PRIMARY KEY (JDOIDX))

  • Jump Backwards Problem...

    I have 5 Tracks each with 4 chapter markers
    When you press Start, the whole things goes with storys and shows up like a seamless film. The start button is linked to the story of the first track end at the end it jumps to the story of the next track via script with a jump command.
    So far...so fine it works. When i skip forward it proceeds throug the storys.
    The problem is, when i want to jump backwards. That only applys within the story, so when i am in the 3th story and press backwards it goes only to the begin of the story but not to the story before (2nd).
    somebody got an idea how to solve this? can it be done with storys? or is there some other way to skip backwards?

    this is standard. like when you skip forward on an audio CD, you go to the next track. When you skip back, you go to the beginning of the same track. This is because the start of the track you are on is the first marker seen when shuttling backwards. Since you know scripting, you just need to make one for jumping back 2 spots.

  • Cursor randomly jumps backwards when typing sentence

    How can I find solution to the cursor randomly jumping backwards when typing a sentence... I end up with my name is Chris and I haven typing a sentence this trouble whe
    == This happened ==
    A few times a week

    Is this happening on specific sites or totally at random?
    Also you might want to check your keyboard - may sound a bit silly, but I tried that myself on a friends laptop and we found a tiny bit of metal under the left arrow key.

  • Reinstalling Lion Progress Bar Jumps Backwards

    Anyone have this problem?  I'm reinstalling Lion, and I get to "less than a minute," then all of a sudden the progress bar jumps backwards to "21 minutes left!" WTH????

    The first part is downloading what will be installed. The second part is the actual installation.

  • Premier pro cc playback is jumping backward

    Since I've upgraded from Premier Pro CS6 to CC, the playback head keeps on jumping backwards in playback mode. In the event page I get the following message: "Audio Dropout Detected at: and the list goes on for ever of the same message at different timecode interval.  What can I do to resolve this?

    hi
    look at this
    I have the same problem
    https://forums.adobe.com/thread/1504407
    You can post your computer specs?
    It seems that not everyone is complaining about it

  • Change a VI to a more sophisticated pattern (e.g. consumer/producer)

    Hi everybody!
    I have written a VI taking spectra from a triggered flash lamp and spectrometer. The whole systems works in a rotating device. So the triggering and exact timing is quite important. I finally got my Vi to work  but there are still some problems with the spectrometer. I think this is due to the fact that the spectrometer runs into a internal timeout but I don't know why. Furthermore there is still a lot of false triggering when changing to the next sample with a different delay.
    So it's really time to take a deep and think about my program. At the moment I have a flat sequence with some for loops defining the number of measurings as well as the while loops for the triggering...
    Well that's I want to do:
    1. All the necessary data comes in a cluster from a different vi
    2. Initialize: Create folders, calculate positions for the step motor and move it to the initial position, open spectrometer and so on
    3. Start the speed measuring and calculation of delays
    4. Measure the spectrometer dark current
    5. Move step motor to the first position
    6. Start retriggerable task for lamp and spectrometer (the triggering occurs in a subvi, whereas the delays are updated continuously by a reference) 
    7. Measure at step motor position first sample, second sample and so on
    8. Move stepmotor -> 7
    9. Stop retriggerable task for lamp and spectrometer
    10. Save data and wait for a specified time
    11. Back to step 5
    12. In the end: Close the spectrometer, stop the speed measurement and so on
    Furthermore the data has to be displayed:
    1. The actual scan
    2. Step motor position dependent absorption for the actual scan as well as the former scans (by option)
    So much for the theory. I thougt that maybe a produce/consumer patttern would fit but I have no idea how to realize this. Of course I have read a lot but I don't know how to do the triggering stuff and so on.
    I have attached my main vi that you can see how I deal with this at the moment. Of course all the subvis are missing but the working principle should be clear. Please let me know if If you need any more information!
    I want to do two things. First I want to separate the data aquisition from the display and file I/O, second the data aquisition has to be seperated from the lamp and spec triggering.
    Especially the second point seems to be very important because my spectrometer runs into some internal timeout (not because there is no trigger) after some minutes or hours (the exact time is not reproducible, but it does happen) and crashes my whole system  as I mentioned before.
    I don't know why but I hope so much that a more sophisticated vi pattern will solve this problem.
    May you help me with this?
    Thanks!
    Attachments:
    radial_scan_v5.10.vi ‏293 KB

    If the vi runs without user intervention, then simple Enum based state machine architecture can be used.
    1. All the necessary data comes in a cluster from a different vi
    State -1
    2. Initialize: Create folders, calculate positions for the step motor and move it to the initial position, open spectrometer and so on
    State -2 Initialise state
    3. Start the speed measuring and calculation of delays
    This can be a Dynamically launched vi ( and can be launched in State-2) where it waits for the notification from State -2 to start Acquisision.
    This vi will also stop acquisiion based on another notification from the main vi states
    State-3 -> Set start notification for this cont. running sub vi
    4. Measure the spectrometer dark current
    State -4
    5. Move step motor to the first position
    State -5
    6. Start retriggerable task for lamp and spectrometer (the triggering occurs in a subvi, whereas the delays are updated continuously by a reference)
    This can also be another dynamically launched subvi, that is launched in State -2 itself.
    State-6 -> Send Notification to start the Retriggerable task
    7. Measure at step motor position first sample, second sample and so on
    State -7.Measurement
    8. Move stepmotor -> 7
    9. Stop retriggerable task for lamp and spectrometer
    State -8 Send stop notification to stop the Retriggerable task.
    10. Save data and wait for a specified time
    State -9 - Log the Data
    11. Back to step 5
    State 10 .. Check for completion.if required again redirect to state -5
    12. In the end: Close the spectrometer, stop the speed measurement and so on
    State -11 Send stop ACQ notification for all the dynamically launched vis, stop those vis..close  all instrument refs .. stop main vi
    If the states are dependent on user intervention then Event based producer consumer can be used where, the producer will control when to start the whole process and when to stop the process( Using queues).The consumer can be Queue driven Enum based state machine

  • TS1424 I love the info about every single word spelled in a question. I feel great talking to something that has all the answers and none solutions. the more sophisticated  apple gets the more complicated it is. Ok i'm stupid.

    What makes apple more complicated to use, the people behind apple now days or the you have to buy your time spent with an apple product. I have been trying for two days to watch a movie I rented in my macbook pro. Oh yes its downloaded allready, its in my rented movies in the mac. I have no rented movies in the icloud. have anything else, but not the movie.
    my life was a lot simpler with an apple 2gs.

    Rentals will be available on the device from whcih you rented it.
    If you rented on a computer, it will only be on that computer, unless you sync it to another device ( you cannot move it to another computer.
    Can I play my rental on more than one device?
    If you download a rented movie on your computer: You can transfer it to a device such as your Apple TV (1st generation), iPhone, iPad, or iPod if it’s a standard-definition film (movies in HD can only be watched on your computer, iPad, iPhone 4 or later, iPod touch (4th generation or later), or Apple TV). Once you move the movie from your computer to a device, the movie will disappear from your computer's iTunes library. You can move the movie between devices as many times as you wish during the rental period, but the movie can only exist on one device at a time.
    If you download a rented movie on your iPhone 4 or later, iPad, iPod touch (4th generation or later), or Apple TV: It is not transferable to any other device or computer.
    iTunes Store: Movie rental frequently asked questions (FAQ)

  • Can I publish a web page from my Mac with something more sophisticated than I-Web for my business?

    I want to construct a web page for my business. I-Web seems to be less sophisticated.  I wanted to use SiteBuilder by Yahoo, but Mac is not compatable. I have looked and have not found much, and that suggests that there are no tools to publish a web page other than I-Web.

    I don't use any of the free editors but a Google search resulted in several being available. Since they are free you could try them and stick with the one that best works for you.http://webdesign.about.com/od/macintoshhtmleditors/tp/free-macintosh-editors.htm

  • Jumping backward and forward without to answer question

    An issues I get sometimes; when im use back button on playback control without to answer a question and return to back to the question, it wont allow me to answer the question (get an message, "You havent answered this question". There are some user who need to play back and forward. Is that a bugs or some configure I need to do?.

    Personally I will even turn off the playbar totally when getting to the first Question slide. This can easily be done by assigning the value 0 (zero) to the system variable cpCmndShowPlaybar on entering the first question slide (is available in the Action on Enter Slide list), and eventually turn on again after the score slide or last question slide.
    Be sure not to delete the Back button, but turn off Backwards movement in the Quiz Preferences and accept to have the Back buttons deleted automatically. Because if you delete them manually on the slides, they could reappear magically...
    Lilybiri

  • CTI in P-Pro jumps backwards while playing every few seconds

    Premier Pro CC 2014
    Asus G760JM
    Win 8.1
    i7-4700HQ 2.4ghz, 64 bit
    8gb RAM
    During playback in the preview window as well as in the timeline, the CTI jumps back a few frames, and continues to play from there. It is H.264 in a .mov container, and I've played this footage before. I played it in VLC to make sure the footage was ok, and no prob. Help!

    Trash your Preferences and plugin cache (reboot while holding down shift + alt)
    You may also want to trash the Media cache database.

  • Music skips, occasionally jumps backward

    After the last update to 7.04 if I am listening to music on my iPhone 5 my music skips after putting my pass code in keypad to unlock the iPhone.  Sometimes is pauses for 1 to 2 seconds continues playing and sometimes it jumps back a few seconds in the song and continues playing.   I find this quite annoying.  Is anyone else having this issue? 

    Yes!
    http://downloadcenter.intel.com/Product_Filter.aspx?ProductID=2101
    It's a storage manager issue, not an audio problem

  • UiXML more sophisticated Comboboxes

    We want to create a combobox on our UIX screens, where a user can type the first few letters (and not only the first ONE) of a value, and the list brings up the value matching value.
    I guess this would require quite some javascript. So I'd like to know are there any plans to include such a comboBox in one of the next releases of JDeveloper?
    If not are there any ideas how to implement something like that?
    Thanks,
    Guido

    With the LOVInput the user can type in just part of a name and click on the link and your back-end code will check for matches. If it is the only match, then the field can be filled in with that match. If there is more than one match, then this pre-filtered list can be sent to the LOV Dialog. There is a demo of this in the demo-bundle. I am told that the more recent versions of UIX have more complete demos.
    Otherwise, there is no combo-box in UIX that does exactly what you are asking for. I am not aware of plans for this in JDeveloper, but you could try asking JDeveloper directly.

  • Developing more sophisticated enum control methods

    I would like to select a function name and map it to a module and channel.  For instance, it would be much better to specify "Cold Water Flow Rate" than to specify "Module 3" and "Channel 7" which have no real meaning.  How can I develop something like an enum but with immutable data with more than one dimension?  I'm thinking the best solution is to make an enum of the function names and use it as an index into an array of module and channel enums but the array is not immutable, or is it?  What other methods should I consider?
    Solved!
    Go to Solution.

    An array is not immutable.  But is Module 3 or Channel 7 something which will never change? What if you get a new DAQ device with different channel numbering?
    Make the array a diagram constant or read the data from a configuration file and then do not change the values in the array within the program.  Then index as you mentioned.
    Lynn

  • FF3 used to have a backup button that I could jump backwards several pages. Is there a way in FF4 for this?

    There is a backup button in FF4 that is larger than the round one in FF3. But to the right of the forward button there used to be a dropdown that would list the last dozen pages. Can this function be enabled in FF4 or do I need to look for a plug-in to do this. I can't believe they took it out.

    Right click the Back / Forward buttons to get a list of sites previously visited.
    You can also install this add-on: https://addons.mozilla.org/en-US/firefox/addon/backforward-dropmarker/
    You can also use the location bar to search history, bookmarks etc. See [https://support.mozilla.com/en-US/kb/Location%20bar%20autocomplete#w_changing-results-on-the-fly Search using the Awesome bar](The Awesome bar is the same as the location bar where you normally type in a web address).

Maybe you are looking for

  • HP OfficeJet Pro 8610 Keeps Going Offline

    I have been using my HP OfficeJet Pro 8610 wireless all-in-one printer for about 2 weeks successfully, but all of the sudden the printer shows as 'Offline' all the time and I cannot fix it. I have set the IP address to static and tried rebooting the

  • Is there any way to publish from Adobe Muse directly to a domain without Business Catalyst?

    I'm getting extremely frustrated with Adobe Muse. I think it's ridiculous having to go through Business Catalyst to publish a website when I have already purchased my own domain. Please tell me there is a way around this.

  • Base Benefits Special Calcuation Routine: How to use it?

    I'm a tech that has been asked to look at setting up a Leave Plan with the requirement that the employee work 2000 hours in the past 52 weeks before they qualify. I would like to set up a calculation that would do the rolling 52 weeks (they qualify a

  • Undeploying war error

    Using wl 7.0 sp2 on solaris , deployed on a 2 instance wide cluster I have this application called test.war When i deploy this after server startup , there is no problem, application deploys fine and i can access it to via the browser. Now when we tr

  • IDVD hangs starting from Finder

    The first time iDVD was started on my system was by calling "send to iDVD" in iPhoto, it hung. Since then iDVD hangs after creating a new project or opening an existing one. I guess while loading theme(s). The application window does not show up at a