Debugging Tips needed

Hello,
I am new to Flex and trying to get a sample application I
downloaded from the internet working on my local machine.
When I run the application in my web browser I get the login
form made in flex then when I try to log in I get a pop message
with this error inside.
quote:
Data Communication Error
HTTP Request error
The application I downloaded is using SOAP to communicate
with my webserver. How do I debug the flex application in order to
figure out why I am getting this "HTTP Request error"?
Thanks.

Look in the code of the application you downloaded to see
where this error prompt is generated from. The location of that in
the code should give you an idea about what's going wrong.
Given the nature of the message the fault could fall into any
number of categories. You'll need to post a link to the app code if
you want further help.
You can use
Ethereal to tap the wire if you
want to see what the Flash player is doing at a lower level.

Similar Messages

  • Whole screen is not repainted, need debug tips

    We are running an application which uses some jogl for animaties.
    Sometimes when the animation is finished and we set the GLCanvas to invisible, the normal
    java JPanels are not repainted.
    Also alt-tab to another windows application and back will not force a redraw.
    The application itself is still working, clicking on a (now) not visible button will trigger
    the jogl animations, and these are show correctly.
    Also from logging it appear that the AWT-thread is not blocking.
    We are looking for tips that can help find us the problem from logging
    as it only appears a few times a week and it is not reproducable.

    The problem is that most of the time it works, but after some hours/days, the java panels are not repainted.
    There is no memory leak.
    paintComponent is not overwritten, a object is made visible to do the animation.
    Pseudo code:
    public class AnimateTilePopup extends JPanel {
    GLCanvas glCanvas;
    public AnimateTilePopup() {
    super(null);
    setOpaque(true);
    glCanvas = new GLCanvas();
    glCanvas.setLocation(0,0);
    glCanvas.setSize(width, height);
    glCanvas.setVisible(false);
    glCanvas.setFocusable(false);
    add(glCanvas);
    flipRendererZoom = new AnimateRendererZoom();
    glCanvas.addGLEventListener(flipRendererZoom);
    public startAnimation() {
    glCanvas.setVisible(true);
    this.setVisible(true);
    public stopAnimation() {
    glCanvas.setVisible(false);
    this.setVisible(false);
    So sometimes when we call stopAnimation(), the animation is stoppped, but the underlying java JPanels are not repainted.
    When we now call startAnimation, the animation is shown and when stopped, no repaint for the normal JPanels.
    Most times it is working perfectly, only sometimes it failes.
    What can be the cause or what logging can be gather that might gives us a clue how to fix this problem.

  • Debugging Tips for Mapping and Validation modules

    Hi,
    I am new to CRM, anybody can send the dubuging tips for  Mapping and Validation modules and the list of tables which I have to check before loading.
    (Intilal load & delta load)
    Regards
    KHM

    KHM,
    The first thing you need to make sure is that all queues are deregistered on both systems.  Check the settings in SMQR and SMQS on your systems.  The next step is that your middleware connection user must be a dialog user in order to debug the middleware properly.
    If you have those two steps done, then for an initial load you can actually go into to the queues and debug the entries from each queue.  For a delta load you will need to put a break point in the transaction before the middleware trigger, and then turn on update debugging(if you want to go through the full process).
    The only other key is looking up the correct function modules for the adapter objects to determine what is being called.  Once you know these and have done the steps above you can in general debug.
    Validate the information above in your system and then let me know where you are getting stopped in your debug process.  We can then try to figure out why the debugger is not being called.
    Good luck,
    Stephen

  • What is "Start" and "Start Debugging" are needed in SSDT project?

    Hi,
    I can not get why do I SSDT has Start With/without Debugging button. I can understand why is it needed when I am debugging stored procedure or T-SQL code. However I can click on that for the project. It builds it, implements changes to the database, doing
    something else ... What is the difference with publishing?

    Hi Sidukas,
    Mostly it is used for smoke testing
    Starting With Debugging
    When you press F5 (Start Debugging) in Visual Studio it launches your application, attaches the Debugger, and let's you do all the "normal" things you would expect: 
    The Visual Studio debugger is a powerful tool that allows you to observe the run-time behavior of your program and locate logic errors. The debugger works with all Visual Studio programming languages and their associated libraries. With the debugger, you can
    break, or suspend, execution of your program to examine your code, evaluate and edit variables in your program, view registers, see the instructions created from your source code, and view the memory space used by your application. With Edit and Continue,
    you can make changes to your code while debugging, and then continue execution.
    The Visual Studio debugger provides a Debug menu for access to debugger tools. Debugger windows and dialog boxes display information about your program and enable you to enter additional information. You can obtain Help on any window or dialog box by pressing
    F1.
    Start Without Debugging
    This is exactly what it sounds like.  It starts the application WITHOUT THE DEBUGGER ATTACHED.  That's it!  Nothing else.  It just doesn't attach the Debugger.  Otherwise everything else is the same.  So, the practical implications
    of this are obvious:  Without the Debugger attached when the application runs it will not hit Breakpoints, emit Debug messages, etc.  So now let's deal with the biggest myth about Start Without Debugging.
     Myth:  Start Without Debugging Creates a Release Build
    Nope.  It uses the build you are currently on.  So if you are using a Debug build and you press CTRL + F5 then it will run that Debug build.  The easiest way to test this is to use conditional compilation to see if you are using a Debug build:
    Finally
    Okay, so the obvious question is "Why?".  I mean, why would they give us this option?  Well the most obvious answer is so we can run the application without having to hassle with disabling breakpoints, etc. to do a quick "Smoke Test"
    and see if it runs.  There may be other reasons you have for wanting to run without the Debugger attached as well.  So now you have a better idea of the difference between Start With and Start Without Debugging.  Go forth and debug away!
     

  • Debugging material needed

    HI
    I am working as a SD/CRM functional consultant, since many times i used to get bog down in some of the program while debugging. I am able to analyse the code with F5 and F6 for any Zreports where as for Stnd SAP reports it's becomign a night mare, hence taking help with my abaper for each issue.
    Can some one pl drop links or send me  good and easy document to get expertise to debug any stnd sap codes?
    My email id [email protected]
    Cio
    shankar1242

    hi,
    hi,
    go to se38->give ur program name-.execute->give /h at command prompt->execute->now debugging will start->
    f5-used for line by line debugging
    f6-used for directly executing function modules or performs i.e. control won't go into that block.
    f7-run to cursor
    f8-direct executing.
    fileds: here we can check fild values.
    click fileds option and double click on the filed or type the filen name beside filed
    tables : here we can check the data in the internal table.
    click tables option and double click on the internal table.
    Break points:
    if you want to debug a particulr part you can use this.
    place the cursor at any perform click breakpoint or double click on that line.it will be set.
    if /h from report statement it will debug,so for debugging from particular point we will use break points.use f7 to traverse between multiple break points.
    Watch-points: In some cases we need to check the data populated in the internal table for eample if we want to check the data of internal table record belongs to 100th vendor we will create watch point for this goto->breakpoints->create watch points->give filed itab-lifnr->=->100.
    debugging procedure:
    Use '/H' in the command line and execute the report/program, so that it goes to debugging mode
    2. keep a hard coded break point in the code like BREAK-POINT and it stops there.
    3.From the program Menu, Keep the Soft Break-points and do the debugging.
    see the links
    Refer to this thread
    http://help.sap.com/saphelp_47x200/helpdata/en/c6/617ca9e68c11d2b2ab080009b43351/content.htm
    Debugging
    Check these documents.
    http://www.cba.nau.edu/haney-j/CIS497/Assignments/Debugging.doc
    http://help.sap.com/saphelp_nw04/helpdata/en/5a/4ed93f130f9215e10000000a155106/frameset.htm
    http://help.sap.com/saphelp_47x200/helpdata/en/c6/617ca9e68c11d2b2ab080009b43351/content.htm
    http://www.cba.nau.edu/haney-j/CIS497/Assignments/Debugging.doc
    http://help.sap.com/saphelp_erp2005/helpdata/en/b3/d322540c3beb4ba53795784eebb680/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/84/1f624f4505144199e3d570cf7a9225/frameset.htm
    http://help.sap.com/saphelp_bw30b/helpdata/en/c6/617ca9e68c11d2b2ab080009b43351/content.htm
    http://help.sap.com/saphelp_erp2005/helpdata/en/b3/d322540c3beb4ba53795784eebb680/frameset.htm
    ABAP Debugging
    http://www.saplinks.net/index.php?option=com_content&task=view&id=24&Itemid=34
    Look at the SAP help link below
    http://help.sap.com/saphelp_nw2004s/helpdata/en/c6/617ca9e68c11d2b2ab080009b43351/content.htm
    if helpful reward points

  • Opendirectoryd debug help needed

    Hello.
    I started to observe my kernel log / system konsole for what's going on and I saw opendirectoryd - has made 9 logs of starting something and here's log outputs (first & last) these logs are under "fax" and that's why I get interested, becouse I do not have any attempts & software what would need this options:
    2013-03-28 16:11:44.418 EET - opendirectoryd (build 172.17) launched...
    2013-03-28 16:11:44.419 EET - Logging level limit changed to 'error'
    2013-03-28 16:11:52.873 EET - Initialize trigger support
    2013-03-28 16:11:52.874 EET - Registered node with name '/Active Directory' as hidden
    2013-03-28 16:11:52.874 EET - Registered node with name '/Configure' as hidden
    2013-03-28 16:11:52.875 EET - Discovered configuration for node name '/Contacts' at path '/Library/Preferences/OpenDirectory/Configurations//Contacts.plist'
    2013-03-28 16:11:52.875 EET - Registered node with name '/Contacts'
    2013-03-28 16:11:52.875 EET - Registered node with name '/LDAPv3' as hidden
    2013-03-28 16:11:52.877 EET - Registered node with name '/Local' as hidden
    2013-03-28 16:11:52.878 EET - Registered node with name '/NIS' as hidden
    2013-03-28 16:11:52.879 EET - Discovered configuration for node name '/Search' at path '/Library/Preferences/OpenDirectory/Configurations//Search.plist'
    2013-03-28 16:11:52.879 EET - Registered node with name '/Search'
    2013-03-28 16:11:52.880 EET - Loaded bundle at path '/System/Library/OpenDirectory/Modules/legacy.bundle'
    2013-03-28 16:11:52.882 EET - Loaded bundle at path '/System/Library/OpenDirectory/Modules/search.bundle'
    2013-03-28 16:11:53.884 EET - '/Search' has registered, loading additional services
    2013-03-28 16:11:53.884 EET - Initialize augmentation support
    2013-03-28 16:11:53.887 EET - Loaded bundle at path '/System/Library/OpenDirectory/Modules/SystemCache.bundle'
    2013-03-28 16:11:53.891 EET - Successfully registered for Kernel identity service requests
    2013-03-28 16:11:53.896 EET - Loaded bundle at path '/System/Library/OpenDirectory/Modules/PlistFile.bundle'
    2013-03-28 16:11:53.897 EET - Loaded bundle at path '/System/Library/OpenDirectory/Modules/FDESupport.bundle'
    2013-03-28 16:11:53.910 EET - Loaded bundle at path '/System/Library/OpenDirectory/Modules/ConfigurationProfiles.bundle'
    2013-03-28 16:11:53.910 EET - Registered subnode with name '/Local/Default'
    2013-03-28 16:12:10.289 EET - Loaded bundle at path '/System/Library/OpenDirectory/Modules/ldap.bundle'
    2013-03-05 18:22:48.204 EET - opendirectoryd (build 172.17) launched...
    2013-03-05 18:22:48.204 EET - Logging level limit changed to 'error'
    2013-03-05 18:22:48.229 EET - Initialize trigger support
    2013-03-05 18:22:48.230 EET - Registered node with name '/Active Directory' as hidden
    2013-03-05 18:22:48.231 EET - Registered node with name '/Configure' as hidden
    2013-03-05 18:22:48.232 EET - Discovered configuration for node name '/Contacts' at path '/Library/Preferences/OpenDirectory/Configurations//Contacts.plist'
    2013-03-05 18:22:48.232 EET - Registered node with name '/Contacts'
    2013-03-05 18:22:48.232 EET - Registered node with name '/LDAPv3' as hidden
    2013-03-05 18:22:48.235 EET - Registered node with name '/Local' as hidden
    2013-03-05 18:22:48.237 EET - Registered node with name '/NIS' as hidden
    2013-03-05 18:22:48.238 EET - Discovered configuration for node name '/Search' at path '/Library/Preferences/OpenDirectory/Configurations//Search.plist'
    2013-03-05 18:22:48.238 EET - Registered node with name '/Search'
    2013-03-05 18:22:48.240 EET - Loaded bundle at path '/System/Library/OpenDirectory/Modules/legacy.bundle'
    2013-03-05 18:22:48.242 EET - Loaded bundle at path '/System/Library/OpenDirectory/Modules/search.bundle'
    2013-03-05 18:22:49.244 EET - '/Search' has registered, loading additional services
    2013-03-05 18:22:49.244 EET - Initialize augmentation support
    2013-03-05 18:22:49.248 EET - Loaded bundle at path '/System/Library/OpenDirectory/Modules/SystemCache.bundle'
    2013-03-05 18:22:49.252 EET - Successfully registered for Kernel identity service requests
    2013-03-05 18:22:49.259 EET - Loaded bundle at path '/System/Library/OpenDirectory/Modules/PlistFile.bundle'
    2013-03-05 18:22:49.260 EET - Loaded bundle at path '/System/Library/OpenDirectory/Modules/FDESupport.bundle'
    2013-03-05 18:22:49.272 EET - Loaded bundle at path '/System/Library/OpenDirectory/Modules/ConfigurationProfiles.bundle'
    2013-03-05 18:22:49.273 EET - Registered subnode with name '/Local/Default'
    2013-03-05 18:23:23.981 EET - Loaded bundle at path '/System/Library/OpenDirectory/Modules/ldap.bundle'
    2013-03-05 18:37:30.017 EET - Starting shutdown process...
    2013-03-05 18:37:30.017 EET - Deregistered with Kernel for identity service requests
    I'm trying to debug why this process has started, no problems with softwares / installs. Everything works fine.
    But I think my computer got hacked some time ago. After that I installed e.g. Little Snitch Network monitor (still using demo version) and Avira virus scanner.
    No log / other unusual behavior after that.
    Any suggestions where to look / where to dig?

    Any suggestions where to look / where to dig?
    Yes. Get rid of the worthless "Avira" product and the dubious "Little Snitch" product. Stop worrying about the log. Log messages are only meaningful in relation to a problem, which you say you don't have.

  • Debugging tip

    I have a program with multiple loop, with each loop containing a queue state machine.  For loop A, it went into state X, and I tried to back trace to see where is the state info enqueued, but I can't find it.  The info enqueued should be a particular enum value in a cluster, but ctrl+f didn't help.  Any tips on debugging this?  Thanks!
    Kudos and Accepted as Solution are welcome!

    Are either typedefs? Also, how are the queues ID'd? Are they "wired queues" where the queue ref is wired throughout, or are they name queues, where the queues has a defined name. If the later try a ctrlo-F on the name and see where there are instances of calling the queue, where there might be "enqueues".
    Putnam
    Certified LabVIEW Developer
    Senior Test Engineer
    Currently using LV 6.1-LabVIEW 2012, RT8.5
    LabVIEW Champion

  • Design tip needed

    I need a tip how to create a long list:
    I want to create a list with, say, 100 entries. At first I tried with a List but it didn't display all items, I don't know why.
    1. Does anyone have any tip what I should use to display a list with 100 items to select from?
    2. It would be nice if it was like the contact list where the user can start to write letters and it jumps to the item starting with those letters. Any tip here?
    3. Is there a developer resource for midlet classes, like that Codeproject is for C++/C#? Just thinking if there was any such classes that I could look at. :)
    Thanks for tips!

    Have you considered using Struts?
    It would make your life so much easier.
    Nick

  • Safari 10.4.11 to Leopard 10.5 advice and tips needed

    I'm new at all this so here I go...
    After looking through the "discussions" it seems there's alot of problems to expect upgrading from Safari to Leopard and beyond.
    What steps can I take to prevent or limit all those problems associated with the upgrade(s)??? what, where, how,
    It appears that DU repairs and redownloading an update because of a corrupted file makes the biggest difference. What is the blue screen everyone talks about? can I prevent that first try upgrading?
    So what if the installs goods error free...do I make the leap and update straight to 10.5.4?
    Early 2006 model 20" Intel Core Duo iMac 2G Ram, 500G harddrive, x1600ATI.
    Safari 10.4.11 or whatever the latest update is/was.
    Upgrading to Leopard 10.5.1 or mb427a version i believe...

    If you do things right you should not have problems. Those who do are simply not doing things right. Millions of users update without any problems or comment. A few hundred have problems and they all post about them here.
    1. Repair your hard drive and permissions (use Disk Utility after booting from your OS X installer disc.)
    2. Clone your startup volume to an external Firewire drive (use the Restore option of Disk Utility, Carbon Copy Cloner, or SuperDuper!)
    3. Boot your computer with the clone from the external drive to be sure it works.
    4. Update the clone on the external drive using Software Update or downloading the standalone updater(s) directly from Apple's Download Site.
    5. Restart from the updated clone and use it for a while to be sure everything is normal.
    6. Update the normal startup volume.
    Key operations:
    Repairing the Hard Drive and Permissions
    Boot from your OS X Installer disc. After the installer loads select your language and click on the Continue button. When the menu bar appears select Disk Utility from the Installer menu (Utilities menu for Tiger and Leopard.) After DU loads select your hard drive entry (mfgr.'s ID and drive size) from the the left side list. In the DU status area you will see an entry for the S.M.A.R.T. status of the hard drive. If it does not say "Verified" then the hard drive is failing or failed. (SMART status is not reported on external Firewire or USB drives.) If the drive is "Verified" then select your OS X volume from the list on the left (sub-entry below the drive entry,) click on the First Aid tab, then click on the Repair Disk button. If DU reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported click on the Repair Permissions button. Wait until the operation completes, then quit DU and return to the installer. Now restart normally.
    If DU reports errors it cannot fix, then you will need Disk Warrior (4.0 for Tiger, and 4.1 for Leopard) and/or TechTool Pro (4.6.1 for Leopard) to repair the drive. If you don't have either of them or if neither of them can fix the drive, then you will need to reformat the drive and reinstall OS X.
    How to Clone Using Restore Option of Disk Utility
    1. Open Disk Utility from the Utilities folder.
    2. Select the backup or destination volume from the left side list.
    3. Click on the Erase tab in the DU main window. Set the format type to Mac OS Extended (journaled, if available) and click on the Erase button. This step can be skipped if the destination has already been freshly erased.
    4. Click on the Restore tab in the DU main window.
    5. Select the backup or destination volume from the left side list and drag it to the Destination entry field.
    6. Select the startup or source volume from the left side list and drag it to the Source entry field.
    7. Double-check you got it right, then click on the Restore button.
    This may also be done using Carbon Copy Cloner or SuperDuper!.

  • Starting Server in Debug Mode - Need Some Advice Plz.

    Hi Guys,
    I have an EP SP 12 Server Running and I am trying to Start the Server in Debug mode from the Netweaver Developer Studio but when I right click the Server and try to choose Debug, the option is greyed out and even while viewing the Debug option from the SAPMMC I see that under the column Debug, it say 'Disabled' for the Server and Dispatcher.
    Can anyone suggest how this can be done, I would appreciate any help as I have been working on this for some time.
    Best Wishes,
    John.
    Message was edited by: John Bray
    Message was edited by: John Bray

    Hi John,
    If the you cannot start the server in the debugging mode through the NWDS then you can try the other way round.
    <b>Through Config Tool:</b>
    You can enable the debuggine mode from the Config Tool as well. Just visit the following path :
    <b>C:\usr\sap\<SID>\JC<SYS_NO>\j2ee\configtool\configtool.bat</b>
    Click on the your instance. Then under the tab VM Environment, Set the <b>DebugMode = true</b>.
    Restart the engine now. This will open the J2EE server again in the Debug Mode.
    I hope this helps you!!
    Regards
    Pravesh
    PS: Please conside rewarding points if helpful and solved.

  • Need help asap. Can't open project in PP CS6 Debug Event, Need help asap. Can't open project in PP CS6 Debug Event

    I sat up all night, last night, editing a movie for a school project which is due Friday. I am extremely busy, and as i opened the file this morning to show the progress to a partner, Premiere, told me "Premiere pro has encountered an error" - "[c:\Mightykilt64\shared\adobe\mediacore\mediafoundation\api\inc\keyfra" - I click continue, and it says "The project could not be loaded, it may be damaged or contain outdated elements"
    I am so frustrated as i'm super busy, and on top of that i'm no computer genious, i really really hope someone can help, i need it asap! I use windows 8 btw..

    Gaps can be very small, and almost impossible to actually see.
    First, I zoom in on the Timeline, to the Frame-level, and step through the Timeline, or play it, looking for a flash of black.
    Next, I will hit Home, to get to the beginning of the Timeline, and then use the PageUP/PageDN keys to step through, Clip by Clip. I watch the CTI (Current Time Indicator w/ the red Edit Line) carefully. It should smoothly jump from Clip to Clip. With a tiny gap, say 1 Frame, the CTI will "hiccup," or "bounce." That is where the Gap is. How one fixes it will depend on where the gap is, and what one wants. Say that it's between two stills, I would then drag the Head of one, or the Tail of the other, to fill that gap. If it's between Video Clips, other choices might work best.
    PrE has a "Close Gaps" function, but if one has Audio that covers that gap, it will not work.
    One trick, that can get you to Transcoding is to add Transparent Video. Drag that to Video Track above all of your existing Video Clips, and extend it to "cover" the entire Timeline. The limitation of this method is that if there is a gap, there will be a black flash in the Video. If only 1 Frame, that might go undetected.
    Usually, when one gets the ":Failure to Return Frame," there is a % of the Timeline, also listed. One can do the math to locate that on the Timeline. As PrE does a two-pass Transcode, then 100% of the Transcode is through two passes. The full Duration of the Timeline is at 50%, as that is the end of the first pass. That can be a bit confusing, as a glitch at 75% would mean that half-way through the second pass, there was an issue detected. Usually, if there is a glitch, it will be discovered in the first pass.
    Good luck,
    Hunt

  • I2c debugging help needed with an oscillascope

    Hello,
    I am trying to debug my i2c slave device and was hoping that someone could explain how to use an oscillascope to debug it and how to set up the vi to use the oscillacope to test my scl and sda values.
    Thanks,
    rbme

    Hi rbme,
    Depending on the oscilloscope you are using to debug your i2c device, there might be an instrument driver located at ni.com/idnet. The instrument driver will allow you to control the oscilloscope with a set of software routines reducing software development time.
    Regards,
    Andy L.
    Applications Engineer
    National Instruments

  • Switching server to debug mode - need to do it twice

    We have just completed a switch from BEA Workshop for Weblogic 10.0 to Eclipse 3.3 + Weblogic Server Tools 1.0.1.
    There are couple issues that I'm not sure if they work as intended or they are bugs. This is the first one:
    1. when server is started in a non-debug mode with an application deployed and then it is switched to the debug mode (by right clicking on the server and choosing debug) the debug mode doesnt seem to be properly activated. The application doesnt stop at the breakpoints.
    2. after right clicking and choosing debug again the server gets fully restarted into the debug mode (in step 1 there is no full restart - similarly as it works in the Workshop). Now after the fiull restart the breakpoints work properly.
    Is this by design? Is this 'quick debug mode switch' supposed to be working only in the Workshop? If yes can the first time click on debug actually initiate the whole server restart into the debug mode?
    thank you
    s.

    It sounds like you hit the following bug, which has been fixed in the code line currently under development (v1.1) and which is currently scheduled for release on October 2nd.
    http://bugzilla.bea.com/show_bug.cgi?id=41
    Thanks,
    Konstantin
    WLS Tools Team

  • Advice/Tips needed for Interactive PDF

    I am looking for any suggestions/advice/tips on creating a interactive PDF. I have 1 title page document and this document has 8 links on it. These links will go to 8 new/seperate pdf documents. I'd like to create it so that when you click on a link it goes straight to that document and only gives you the option to go BACK to the title page.
    I know I can create this with bookmarks, but with bookmarks you have a loing list on the left sidebar. The tricky part is I can only show one document and a back to title page link.
    Any suggestions or tips on how to accomplish this task? I have Acrobat Pro 9.
    Thanks

    Bookmarks are the way to go on this. You can set the default viewing of the PDF to not include the bookmarks and such (under ctrl-D for the document properties).

  • A debug trouble, need you help!~~

    Hi,
    I want to debug TTY. And I try to using commonds as following:
    C:\jdb -classpath F:\com\sun\tools\example\debug\tty TTY
    C:\jdb -classpath F:\com\sun\tools\example\debug\ttycom.sun.tools.example.debug.TTY But I got the erro:"Exception in thread "main" java.lang.NoClassDefFoundError: F:\com\sun\tools\example\debug\tty"
    I must make some mistakes. And how do I should imput my commond?
    Thank you!
    Duanyh
    SJTU

    Hi,
    I want to debug TTY.OK... you want to debug the com.sun.tools.example.debug.tty.TTY class.
    Please excuse me if this is going over work you have already
    done... I decided to start from the beginning for the benefit
    of anyone else reading this thread.
    NOTE: If you are following these example command lines, remember that
    the separator char for directories on CLASSPATH is : on Unix
    systems and ; on win32 systems:
    1) Unpack the JPDA examples:
    cd $JAVA_HOME/demo/jpda
    jar -xvf examples.jar2) Compile the example code for debugging:
    javac -g -classpath "$JAVA_HOME/lib/tools.jar:." com/sun/tools/example/debug/tty/TTY.java3) Create a HelloWorld.java class to be a victim for this debug session:
    cat > HelloWorld.java
    public class HelloWorld {
        public static void main(String args[]) {
            System.out.println("Hello, world!");
    }Compile the HelloWorld class:
    javac -g HelloWorld.java4) Start up com.sun.tools.example.debug.tty.TTY and have it debug
    the HelloWorld class, using commands like this:
    java -Xdebug -Xrunjdwp:transport=dt_socket,address=8211,server=y,suspend=n -classpath "$JAVA_HOME/lib/tools.jar:." com.sun.tools.example.debug.tty.TTY HelloWorld
    Initializing jdb ...
    stop in HelloWorld.mainDeferring breakpoint HelloWorld.main.
    It will be set after the class is loaded.
    runrun HelloWorld
    Set uncaught java.lang.Throwable
    Set deferred uncaught java.lang.Throwable
    >
    VM Started: Set deferred breakpoint HelloWorld.main
    Breakpoint hit: "thread=main", HelloWorld.main(), line=3 bci=0
    3            System.out.println("Hello, world!");
    main[1] 5) At this point, the TTY class is busy debugging the HelloWorld
    class. Since the TTY class was started with the appropriate
    -Xdebug -Xrunjdwp:... flags, you can now attach to that process
    on the pre-arranged port (8211 in this example) and examine it.
    I suggest you do this from a separate command window:
    jdb -connect com.sun.jdi.SocketAttach:port=8211
    Set uncaught java.lang.Throwable
    Set deferred uncaught java.lang.Throwable
    Initializing jdb ...
    threadsGroup system:
      (java.lang.ref.Reference$ReferenceHandler)0x295       Reference Handler          cond. waiting
      (java.lang.ref.Finalizer$FinalizerThread)0x296        Finalizer                  cond. waiting
      (java.lang.Thread)0x297                               Signal Dispatcher          running
    Group main:
      (java.lang.Thread)0x1                                 main                       running
      (java.lang.UNIXProcess$3)0x299                        process reaper             running
      (com.sun.tools.example.debug.tty.VMConnection$1)0x29a output reader              running
      (com.sun.tools.example.debug.tty.VMConnection$1)0x29b output reader              running
      (java.lang.Thread)0x29c                               event-handler              cond. waiting
    Group JDI [27940859]:
      (java.lang.Thread)0x29f                               JDI Target VM Interface    running
      (java.lang.Thread)0x2a0                               JDI Internal Event Handler cond. waiting
    suspendAll threads suspended.
    thread 0x1main[1] where
      [1] java.io.FileInputStream.readBytes (native method)
      [2] java.io.FileInputStream.read (FileInputStream.java:194)
      [3] java.io.BufferedInputStream.read1 (BufferedInputStream.java:220)
      [4] java.io.BufferedInputStream.read (BufferedInputStream.java:277)
      [5] sun.nio.cs.StreamDecoder$CharsetSD.readBytes (StreamDecoder.java:408)
      [6] sun.nio.cs.StreamDecoder$CharsetSD.implRead (StreamDecoder.java:450)
      [7] sun.nio.cs.StreamDecoder.read (StreamDecoder.java:182)
      [8] java.io.InputStreamReader.read (InputStreamReader.java:167)
      [9] java.io.BufferedReader.fill (BufferedReader.java:136)
      [10] java.io.BufferedReader.readLine (BufferedReader.java:299)
      [11] java.io.BufferedReader.readLine (BufferedReader.java:362)
      [12] com.sun.tools.example.debug.tty.TTY.<init> (TTY.java:525)
      [13] com.sun.tools.example.debug.tty.TTY.main (TTY.java:850)At this point, your are debugging the JVM running com.sun.tools.example.debug.tty.TTY.main. You can
    set breakpoints, resume the debug session, and so forth.

Maybe you are looking for

  • Sharepoint Foundation - search working for some users (or computers), but not others

    Hi all, We have doozy of a search problem with SharePoint Foundation 2010 that I'm hoping someone can help with. We have an application that is listening on port 14197 and search is working just fine, but only for one or two users. If I do a search w

  • Export PDF Form to XML through VBScript

    Hi, I was wondering if there is a way to automate the export of an Adobe PDF Form to XML, either using the Adobe SDK/AcroExch.App or the PDF Test Toolkit. I'm wanting to perform this action via a QuickTest Pro Script and thought there might be a func

  • Full Screen Player Crashes/Quits in Win Server 2003

    I have an application that runs as a projector and is meant to run full screen in a kiosk. However, when the app is expanded to full screen it crashes and I get an error message of: Faulting application test.exe, version 10.0.2.54, faulting module te

  • Suggestion: page up and page down

    Am I the only one who'd like it if the default behavior for the Page Up and Page Down keys while editing in Keynote was to change slides? Right now, I usually hit them after editing in a text box or clicking on a slide in the Slides pane. In either c

  • Report id

    hi all. what is diff b/w report name and report id. using report id. how to find the report name.