JPDA - I want to System.out the linenumber of my written Java Code.

If the subject is not clear (Wich it isnt i am sure) I try to refrase it.
I want to run an little debugger wich all it does is:
--have a next button, so you can skip to the next instruction.
--gives me the linenumber of the code the current instruction is on at any given time.
Is there a little example that would show me how I would do that? I am really lost here...
Any help is highly appreciated

Thank you very much for that info...
I managed to run it. However, it still runs in a shell. Is there a way, to relink the input and output streams so I can manage to leave the shell aside? All I need to do ist stop at the first instruction, and then use the step function over and over again...
Acctually why dont I explain exactly what I want to do??? Ok here we go...
My program layout:
I. first I write some java code in my text area (A)
II. Then I Hit the compile button. The code gets compiled and the class is loaded into the Execution Area.
III. The Execution Area consists out of a pane on witch a little LoveBug can move around. Depending on the programm the Bug takes different actions. (e.g. while(noTreeInFront) move one step forward )
�  Text area         �A�                �   Execution Area         �B�
�                     -�                �                           -�
�...                   �                �                            �
�...while (bla){       �    COMPILE   \ �                            �
�       do something();�===============>�          --->              �
�   }...               �                �          �                 �
�...                   �                �          O                 �
�                      �                �                            �
�                      �                �                            �
�...    ---------------�                �                            �
�       � comp � step  �                �                            �
------------------------                ------------------------------My problem now is, that I dont only want the user to see what the little LoveBug is doing in the Execution Window, but also I want him to see where exactly in the code he is!!!!!!!!!
My guess was to use some debug-mechanics to find out on what line in the code the program currently is on. but of course I cant use a shell for that task.
So my question: How would I solve such a problem????
Thanks in advance...
Anyone interrested in further details of the project is very welcome to wisit the homepage of the project... http://www.educeth.ch/informatik/karatojava/javakara/

Similar Messages

  • HT1386 I have a new computer with windows 8.1.  I want to add the 52 Gb of music now on my old ipod to itunes on the computer.  I don't want to wipe out the files on the ipod by syncing to the new computer which has no music files on it yet!  How can I do

    I have a new computer with windows 8.1.  I want to add the 52 Gb of music now on my old ipod to itunes on the computer.  I don't want to wipe out the files on the ipod by syncing to the new computer which has no music files on it yet!  How can I do this?

    Apparently I wasn't clear.  The music on my ipod is but a subset of all the music on my external hard drives.  I want to import only the songs and playlists from my existing ipod into the itunes library on my new computer, which currently has no music or playlists.  How can I do this?

  • Just updated my photoshop cc and wanted to try out the new focus selection tool but it's not there.  Why isn't it there?

    Just updated my photoshop cc and wanted to try out the new focus selection tool but it's not there.  Why isn't it there?

    Use menu Help>About Photoshop make you have started CC 2014 and have not started CC... Its in menu Select under Color range

  • Where is the bookmarks stored? I Install the Firefox once again since I upgrade my computer.Is there any folder just like "favourite"to store the html file? I really want to find out the bookmarks because actually i can't remember all the website that ar

    Where is the bookmarks stored?
    I Install the Firefox once again since I upgrade my computer.
    And I try to move the bookmarks from the old computer to the new one.
    But I can't find anyone of them.
    Is there any folder just like "favourite" to store the html file?
    I really want to find out the bookmarks because actually i can't remember all the website that are important to me~ URGENT!!!~THANKS~

    You can move file named places.sqlite from your old profile to the new one. It contains bookmarks and browsing history.
    Here's a knowledge base article about it: [[Recovering important data from an old profile]]
    If you don't care about saving your current bookmarks, you can skip creating new profile (Firefox does it by itself at first run anyway).
    I'd might suggest you to install addon https://addons.mozilla.org/en-US/firefox/addon/2410/|Xmarks Bookmark and Password Sync]. It is a free web service which synchronizes bookmarks and (optionally) passwords with central server, and then to other computers, if you installed it on more. You may treat is as a backup too.

  • Before getting a new 5S, I want to print out the iMessages on my old 4S. How do I do that?

    Before getting a new 5S, I want to print out the iMessages on my old 4S. How do I do that?

    Google it - there are 100s of applications that will offload your messages from your iTunes backup file that will allow you to print them out.
    I use iBackupBot.

  • I want to try out the Standard edition of Acrobat XI. What do I do?

    I want to try out the Standard edition of Acrobat before purchasing to see if it is right for my company, but the only available trial is for the Pro edition. I don't want to commit to purchasing the Standard edition before trying out that specific edition, since it will have less features than the Pro edition. I want to avoid a scenario where I pay for the Standard edition, find out it doesn't have the features I need, and then pay again for the Pro edition. Advice, anyone?

    Also wondering if, when I downloaded the Standard edition, there would be the option to upgrade to Acrobat XI Pro while only having to pay the difference between the two prices, rather than paying the full price after having already purchased the Standard edition? Can anyone confirm whether this would be a possibility?

  • I want to find out the RFC or bapi that log on the SAP? is anybody know?

    i want to find out the RFC or bapi that log on the SAP?

    Hi,
    for BAPI's
    http://www.sappoint.com/abap/bapiintro.pdf
    http://www.sappoint.com/abap/bapiprg.pdf
    http://www.sappoint.com/abap/bapiactx.pdf
    http://www.sappoint.com/abap/bapilst.pdf
    http://www.sappoint.com/abap/bapiexer.pdf
    http://service.sap.com/ale
    http://service.sap.com/bapi
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCMIDAPII/CABFAAPIINTRO.pdf
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/CABFABAPIREF/CABFABAPIPG.pdf
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCFESDE8/BCFESDE8.pdf
    http://www.planetsap.com/Bapi_main_page.htm
    http://www.topxml.com/sap/sap_idoc_xml.asp
    http://www.sapdevelopment.co.uk/
    http://www.sapdevelopment.co.uk/java/jco/bapi_jco.pdf
    ***do reward if usefull
    vijay

  • Change the Summary Attribute Value through Java code

    Hi ,
    I am working on a requirement where I need to set the Attribute value on the final Summary Screen through Java Code.
    Code :
            InterviewUserData data = new InterviewUserData();
            InterviewEntityInstance globalInstance = data.getGlobalInstance();
            globalInstance.setValue("Name", value_to_set);
    On completion of the interview session Name is displaying as NULL.
    I need to set NAME = value_to_set and display it on the final summary screen.
    Any help on this will be appreciated.
    Regards

    The InterviewUserData object is effectively a change set, to apply this to a session you use the InterviewSession.submit(InterviewUserData) method. You don't say how you are invoking this code but if it's inside an event Interview Engine handler the InterviewSession object should be accessible.
    Regards
    Ian

  • I have two cameras of the same model and want to separate out the photos taken on each one. Is this possible?

    I have a Canon and my husband has a Canon, and they are the same model (mistake!)
    I imported his photos into my library (I'm the keeper of the photos), and now I want to seperate out his photos from mine.
    To make matters worse, the dates are the same (since we travel together) and the file numbers overlap (because the world is out to get us).
    They are thoroughly intermingled, but I'm hoping there is a super geeky way to seperate them.
    Ideas?

    Try to separate the photos by "import session".
    Assuming you can recognize some of the photos you took - perhaps there are some photos showing your husband and some photos showing you - these photos will tell you the import session. All photos you import into the library will be assigned an import session metadata tag, so his photos should have all the same import session tag.
    To show this thag, set the Info panel in the Inspector to "Edit" and add it to your current Metadata view.
    Once you found the Import Session for your husband's photos, create a smart album based on this meta data tag.
    When I import my husband's photos in my library, I use a metadata preset on import, that will assign automatically a keyword, set his copyright, and adds a color code. So I can see at a glance, which photos are my photos and which are his.

  • I want to find out the po release code it is updated in which table

    DEAR ALL,
    Any body can help me out for finding where the PO RELEASE CODE IS UPDATED IN WHICH TABLE . I can get the release code in ekko table . so i need to find out the release code where it is getting updated

    The details can be found in EKKO table's FRGKE field.
    Here
    1 -> Blocked
    2 -> Released
    The codes may be different in your system as per your configuration.
    Regards,
    Bhavin

  • I want to find out the dimensions of a particular site

    How can I find out the dimensions of a site?  For example http://www.workingmother.com/blogs?cmpid=enews10131http://
    I am trying to figure out if this site is 980 pixels?
    Thanks in advance,
    Erica

    Anytime you want to see "the guts" of a site, click View>Source  or just press ctrl+u and a new window will open with the source code for the page. I did this and clicked on the hyperlink to the css sheet, then I scrolled down to the main body (it has a really odd name in this case - container is pretty standard, but I saw a strange name for the main body in the layout) and I looked at the width declaration; it said 987px.
    #container{
        clear:both;
        position:relative;
        position:relative;
        width:987px;
        z-index:5;
        zoom:1;
    Why they have a redundant position declaration is beyond me, but I didn't write it.

  • My startup disc is full and I want to find out the size of trash and junk in mailbox before dumping trash & junk

    I have gotten this message saying that my startup disc is full.
    I know I need to dump the trash can on my home screen and I have done that.
    I know that there is both trash and junk in my mail app that I will dump also but I am curious as to the size of the trash and junk in mail but I don’t see how to find the sizes.
    Its nice that the Junk tells me that there are 739 messages but it doesn’t say what the size of all of them is.
    Do you know how i can see what the file sizes are for trash and Junk in Mail?
    I know I can just delete them and see how much this yellow bar decreases but that seems like a crude way to see what the file sizes are that I have deleted.
    If you have an answer for how to find out the file sizes of the Mail trash and junk I would like to know how to do it.
    I have the latest version 10.9.4 on my Mac Air.

    do you have the Size Column selected in the View pulldown?

  • Want to clear out the phone to sell

    Just went with another wireless provider for my new Palm Centro, so my Treo 700p with Verizon is no longer useful.  I have someone who is interested in buying it from me.  Should I do a hard reset to clear out the phone so that she can start from scratch, or can I just somehow clear out the calendar, documents, contacts, etc. and leave the software in place?  We're in real estate and use third party lockbox software, some mapping programs, etc. and I'd like to leave that kind of stuff in the phone so she doesn't have to put it all back on.  Suggestions?
    Post relates to: Treo 700p (Verizon)

    Hi..  Welcome to the Palm forums. Short of a hard reset the only way to delete your calendar, contacts etc and leave 3rd party programs would be 1 item at a time which I'm sure would be very inconvient.  I would recommend doing the hard reset, for instructions if needed go to kb.palm.com article id 887.  Third party programs normally require a registration code and to pass yours on to someone else would be in violation of the licensing agreement for that software. 
    Post relates to: Centro (Sprint)

  • I want to lock out the PC keyboard while allowing barcode reader input

    I have an application that uses a barcode reader to enter part numbers.  I have been asked by manglement if I can lock-out the keyboard to prevent the users from typing in the part numbers (too prone to error in typing).  As the barcode reader is a separate USB port from the keyboard, is there a way to identify the keyboard port and disable it programmatically?

    Since your barcode reader is USB, you may have the ability to set it up as a COM port.  Several USB readers will either behave as a keyboard or a COM port.  You would then have to modify your software to look at the COM Port.  You can change the control to an indicator and the user will not be able to do anything.
    The other option, which is what I typically do, is to add prefix and suffix characters to the barcode scanner.  I pick a prefix that corresponds to a LabVIEW Key Navigation settign to set focus to the control.  This way, whenever the barcode scanner scans, the control is automatically highlighted and the barcode fills end.  I usually use a suffix of the ENTER key so the data is entered.
    This way, you can hide your control off-screen so users cannot see it.  Use an indicator on-screen.  You can even set the off-screen control to be skipped while tabbing.  The other nice thing with the prefix is I can simulate the barcode with the keyboard by using the special key navigation sequence.  This is not 100% tamper-proof, but most operators aren't going to know what you are doing to skip the barcode reader unless you show them.

  • Where do Java Embedding "System.out.println()" go? Where is Java Console?

    Assume I embed a "Java Embedding" object in a BPEL process
    and write the following Java code into it:
    System.out.println("Hello BPEL");
    where does this text go when executed? If I remember it well there must be somewhere an AppServer console.
    But where is it exactly ?
    Peter

    Hi Peter,
    The out stream is generally redirect into files in applications servers.
    OC4J : $ORACLE_HOME/opmn/logs/<your_group>~<your_home_name>~<your_group>~1.log
    WebSphere : $LOG_ROOT/SystemOut.log
    JBoss : $SERVER_LOG_ROOT/server.log
    Hope this helps.
    Regards,
    Raphaël
    http://bpelsoa.blogspot.com

Maybe you are looking for