Debug an applet that has a run-time (logic) error how?

hi,
I have an applet that has a non-terminating loop in it...I found it after eye-balling my code.
How would one debug an applet? I have bought sooooo many books on java, & NONE provide/identify a process for debugging applets. I use JTextPad & would appreciate a method i can use to debug applets....ppppllleezzzz

TheStijn is correct about stepping thru code - you'd need a development environment. However, the better of these for use in a commercial environment are usually expensive (>$1000). The free ones are not so good (although given that WSAD is based on Eclipse and I think WSAD is pretty good, maybe you could go for Eclipse). They also take some time to get to grips with.
You could instead litter your code with System.out.println() statements to see what it is doing. These can be viewed from the browser's Java console. On IE, you enable the console by doing Tools > Internet Options > Advanced. Scroll down to "Microsoft VM" and select "Java Console enabled". Then the console is visible (after re-starting IE) from the View menu (at the bottom).
With Netscape (4.7), you do Communicator > Tools > Java Console. You can also view it on other browsers thru similar mechanisms. Hope this helps in the short-term.

Similar Messages

  • How can I debug a sequence that has a subsequence is running in a separate thread?

    Hi,
    How can I debug a sequence that has a subsequence is running in a separate thread?
    I have to have a continues check for a  digital in signal to be able to terminate the sequence if a physical button is pushed.
    This is running in a separate thread, but this way I cannot debug the main sequence.
    Is there any workaround for this?
    Thanks,
    Andras

    This KB might help you:
    http://digital.ni.com/public.nsf/websearch/46D1E157756C37E686256CED0075E156?OpenDocument
    Let me know if this does not help.
    Allen P.
    NI

  • View All SQL That HAs Been Run On A Database

    Hi,
    Is there any way to view all SQL that has been run on a database? Im looking for some sort of history if such thing exists.
    Cheers
    Paul

    user12086523 wrote:
    Hi,
    Is there any way to view all SQL that has been run on a database? Im looking for some sort of history if such thing exists.
    Cheers
    PaulWhen you figure out how to capture that data, please let me know what storage vendor you will be using to store the information. I'd like to buy stock in it.
    Seriously, whenever anyone indicates that they want the full history of everything that ever happened, I've got to wonder just how they envision using such massive amounts of raw data.

  • I have a desktop iMac that has been running very slowly lately.  I turned off the computer yesterday to initiate a restart and when it came on, the screen was all white and has stayed that way.  Please help!

    I have a desktop iMac that has been running very slow lately.  I turned off the power yesterday, thinking a restart may help.  When I turned the power back on, the screen turned white and stayed white.  Any ideas???

    Welcome to Apple Communities
    http://support.apple.com/kb/TS2570

  • My bar that has tools, favorites etc is gone how do i get it back

    My bar that has tools, favorites etc is gone how do i get it back

    * In Firefox 3.6 versions on Windows and Firefox 4 on Windows and Linux it's possible to hide the "Menu Bar" via "View > Toolbars" or via the right-click context menu of a toolbar.
    * Press F10 or press and hold the Alt key down to bring up the "Menu Bar" temporarily.
    * Go to "View > Toolbars" or right-click the "Menu Bar" or press Alt+V T to select which toolbars to show or hide (click on an entry to toggle the state).
    See also:
    * [[Menu bar is missing]]
    * http://kb.mozillazine.org/Toolbar_customization

  • LV2011 run time engine error

    Somebody knows why I hit a run time engine error when I select runtime adapter in teststand? If I choose dev environment, there is no error and the vi executes.
    Attachments:
    RunTimeError.png ‏194 KB

    Hello JoVMo,
    I think the reason and solution for the issue can be found in this KB:
    http://digital.ni.com/public.nsf/allkb/24A8C9552C01D7368625735600768095?OpenDocument
    Please let me know if it resolves the issue.
    Kind Regards,
    Thierry C - Applications Engineering Specialist Northern European Region - National Instruments
    CLD, CTA
    If someone helped you, let them know. Mark as solved and/or give a kudo.

  • My macair won't turn on. when I try to turn it on, the white screen appears. But instead of the apple logo, there is a flashing folder that has a question mark on it. how do i fix this?

    my macair won't turn on. when I try to turn it on, the white screen appears. But instead of the apple logo, there is a flashing folder that has a question mark on it. how do i fix this?

    Try this.
    Erase and Reinstall OS X
    Note: This will delete all data on the disk. Back up important files before continuing.
    Erasing and then reinstalling OS X can give you a fresh start, making your computer exactly as it was whenever you received it from Apple. This can solve various problems such as corrupt system files.
    Shut down the computer by going to Apple () > Shut Down…
    Select Shut Down or allow the computer to shut down automatically.
    Plug in the MagSafe power adapter into a power source and then connect it to your Mac if you have not already done so.
    Press the Power Button to turn on the computer.
    Press and hold both the R and Command (⌘) keys on the keyboard until the Recovery partition loads.
    Select Disk Utility and then choose Continue.
    Select your startup disk (Macintosh HD by default) from the left.
    Select the Erase tab.
    Choose the Format pop-up menu and choose Mac OS Extended (Journaled), enter a name for your disk, and then click Erase.
    After the disk is erased, choose Disk Utility > Quit Disk Utility.
    Select Reinstall OS X and then choose Continue.
    Follow the instructions.
    I hope I solved your question.
    Austin

  • I have written an ebook that has been created for kindle. How can I export the book into iBooks author?

    I have written an ebook that has been created for kindle. How can I export the book into iBooks Author?
    I have tried converting the book to different files like, mobi, epub, pdf. By using an app on my iphone.
    I still cannot add it to iBooks Author.
    I'm stuck, Please help me!

    Either use copy/paste and then format/style as desired, or take it to Pages or WORD and insert chapters - which may still require resettling.
    If you're looking for a 1:1 port, with all styles and layout intact, you may be dissapointed, tho.

  • I keep getting a Time Capsule Error, how do I resolve?

    I keep getting a Time Capsule Error, how do I resolve?

    Start with #C3 in Time Machine guru Pondini's excellent support document......Time Machine -- Troubleshooting.
    http://pondini.org/TM/Troubleshooting.html

  • AI file that has loaded many times previously into FC, now won't load

    I am starting to lose my mind working with Flash Catalyst.   I have created a file within AI CS5, imported into FC CS5 numerous times, now all of a sudden it won't load.  The error message "Error initializing import libraries" appears.   I had this issue happen before, but after much frustration, I went back and re-created the AI file under the Flash Catalyst New Document profile and that seemed to solve the problem, now, even with an AI file created with the FC document profile, a document that has loaded into FC MANY times successfully, all of a sudden won't load.   Of course I am at the end of the project and was ready to export the final SWF files and it does this.  I am about ready to throw my computer out the window at this point.  
    It is not a large file, under 1MB in fact, so that is not the issue.   Is there some kind of FC cache somewhere on my computer that I need to clear out?   I have scoured the internet looking for a solution as I have a deadline of Wednesday of this week for this project and I can't find anything helpful.  This is beyong frustrating and seems to make no sense as the AI file has imported successfully in it's current state many times. 
    I tried to rebuild the project, move its file location, rename it, cut and paste it into FC and nothing seems to work.  In fact, I can't cut and paste a simple object at this point without getting the "Error initializing import libraries" error message.   PLEASE HELP ME ADOBE!   I AM DYING HERE!!!   Thanks!!!!!!!!!!! 

    I found the FC log files and the log for my last attempt at importing my AI file is below.  Do I have a Java issue?   This is WAY above my pay grade, but I'm hoping maybe it's a simple fix?  Run Java update? 
    !SESSION 2011-11-08 09:01:17.129 -----------------------------------------------
    eclipse.buildId=unknown
    java.version=1.6.0_16
    java.vendor=Sun Microsystems Inc.
    BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
    Command-line arguments:  -os win32 -ws win32 -arch x86 -clean
    !ENTRY com.adobe.thermo.core 1 0 2011-11-08 09:01:28.111
    !MESSAGE Loading ThermoPanels from bundleentry://51/ThermoPanelsSWF/ThermoPanels.swf
    !ENTRY org.eclipse.equinox.p2.ui.sdk 2 0 2011-11-08 09:01:34.225
    !MESSAGE Could not locate the running profile instance
    !ENTRY com.adobe.flexbuilder.project 4 43 2011-11-08 09:02:09.931
    !MESSAGE Error during import: Error initializing import libraries
    !STACK 0
    java.lang.Exception
        at com.adobe.flexbuilder.project.internal.FlexProjectCore.createErrorStatus(FlexProjectCore. java:972)
        at com.adobe.flexbuilder.util.logging.GlobalLogImpl.log(GlobalLogImpl.java:66)
        at com.adobe.flexbuilder.util.logging.GlobalLog.log(GlobalLog.java:50)
        at com.adobe.thermo.importnativeartwork.importer.ImportManager.showErrorDialog(ImportManager .java:1982)
        at com.adobe.thermo.importnativeartwork.importer.ImportManager.importArtworkIntoNewFile(Impo rtManager.java:404)
        at com.adobe.thermo.importnativeartwork.importer.ImportManager.importArtworkWithProgress(Imp ortManager.java:305)
        at com.adobe.thermo.welcome.ProjectCommands.importArtworkWithProgress(ProjectCommands.java:4 19)
        at com.adobe.thermo.welcome.ProjectCommands.access$0(ProjectCommands.java:405)
        at com.adobe.thermo.welcome.ProjectCommands$1.run(ProjectCommands.java:368)
        at com.adobe.thermo.interfaces.FlexDialogManagerInterface$RunnableWrapper.run(FlexDialogMana gerInterface.java:77)
        at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
        at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:133)
        at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3800)
        at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3425)
        at com.adobe.thermo.interfaces.FlexDialogManagerInterface.doRunnable(FlexDialogManagerInterf ace.java:182)
        at com.adobe.thermo.importnativeartwork.ui.ImportProgressDialog.runImportNewProject(ImportPr ogressDialog.java:353)
        at com.adobe.thermo.welcome.ProjectCommands.doImportArtwork(ProjectCommands.java:361)
        at com.adobe.thermo.welcome.ProjectCommands.doImportArtwork(ProjectCommands.java:320)
        at com.adobe.thermo.welcome.ProjectCommands.createProjectFromArtwork(ProjectCommands.java:30 2)
        at com.adobe.thermo.welcome.ProjectCommands.createProjectFromArtworkRemote(ProjectCommands.j ava:313)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at com.adobe.thermo.core.remoteobject.IncomingCommandHandler.invoke(IncomingCommandHandler.j ava:152)
        at com.adobe.thermo.core.remoteobject.IncomingCommandHandler.access$0(IncomingCommandHandler .java:139)
        at com.adobe.thermo.core.remoteobject.IncomingCommandHandler$1.run(IncomingCommandHandler.ja va:124)
        at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
        at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:133)
        at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3800)
        at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3425)
        at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2382)
        at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2346)
        at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2198)
        at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:493)
        at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:288)
        at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:488)
        at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
        at com.adobe.thermo.application.ThermoApplication.start(ThermoApplication.java:133)
        at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:193)
        at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLau ncher.java:110)
        at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.jav a:79)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:382)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:549)
        at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
        at org.eclipse.equinox.launcher.Main.run(Main.java:1236)

  • Using full development system on customized test setup that normally uses run-time - How to do?

    I have 8.2 Full Development System (2 copies as there are two of us  who write code).
    I develop testing systems, each on an individual computer, each customized with a custom built (by me) interface to test and measure perfomance of motors produced on the production line.
    In order to modify the program and test it, I have to replace the production set-up computer with my developmental computer, make the changes (and check that they work) and then make the run-time version for the production computer.  THEN switch computers.  Since I have nearly a dozen different setups, I cannot just make two production test sets of each (one for development and one for production).
    Is there an easier way? 
    Perhaps with HDD in a drawer?  But then I'd have driver and version issues.
    Is it possible to run the full development system remotely (from the production setup)?
    What about a site-license?
    Thanks,
    Tim K

    From the 8.2 Release Notes:
    Single-Seat and Multi-Seat Licensing
    LabVIEW supports both single-seat and multi-seat licenses. Single-seat
    licensing is the use of LabVIEW on up to three computers but by only one
    user. Multi-seat, or volume, licensing is the use of LabVIEW on several
    computers or by several users. Each seat using LabVIEW must have a valid
    license from a license server. Refer to the National Instruments Web site at
    ni.com/license for more information.
    You are permitted to install LabVIEW on the the pc with the hardware, do the changes and debug, and re-build the app for production.

  • Can the width of a report that has been run in the background be increased?

    Hello Experts,
    How can I increase the width of a report that I have run in the background so that it does not wrap text to the next line?
    I have been running the same HR report successfully in the background for many months.  Today I ran it with the same parameters that I've always used and when I retrieve it from my Own Job Spool - System | Own Spool Request | Display Contents the last field is wrapped to the next line.
    Thanks.
    Regards,
    Jeanette

    Jeanette,
    Thereu2019s another possibility if Tedu2019s suggestion doesnu2019t work. When you look at your spool requests, thereu2019s an icon on the toolbar next to the eyeglasses that looks like a yellow rectangular callout. Itu2019s called u201CDisplay in Maximum Widthu201D. Select the Spool no. to display and then press this icon. Shift + F4 is the shortcut.
    Regards,
    Howard

  • Run-Time Engine error

    I have created an automated test and had it running as an executable on a stand alone test computer. I updated my LabView software to 8.6.1. I just made some changes to the test and recompiled it. When I tried to run it on the stand alone computer it gave me an error about the LabVIEW 8.6.1 run-time engine missing. I thought when the project was built all the files that pertained to running it were also built into the folder. Has anyone run into this that could offer some advice.
    Thanks
    Chirs
    Solved!
    Go to Solution.

    Did you create an installer or simply build the exe? If you only built the exe you will need to install the run-time engine on the target machine. If you created an installer you can include the installation of the run-time engine as part of the installer.
    Mark Yedinak
    "Does anyone know where the love of God goes when the waves turn the minutes to hours?"
    Wreck of the Edmund Fitzgerald - Gordon Lightfoot

  • LV 6.1, 3D Surface Graph sometimes collapses (doesn't work stably); plus blocks use of remotely controlled panel by LV run-time engine (error #26:"window.cpp", line 11518

    1) "3D Surface Graph" does not work stably; sometimes it changes its properties (e.g. plot style) without me doing anything prior to that; a couple of times it lost a complete sense so that I had to delete the graph and install it again
    2) I tried to remotely run a VI which contains a 3D Surface Graph in it. It turns out, the use of the "3D Surface Graph" somehow blocks the remote control over the panel. As a result of that, I got the following error message: Error #26: "window.cpp", line 11518 (with LabVIEW version 6.1).
    3) Is it possible to plug into the 3D Surface Graph a few plots at
    the same time since there is a built-in control "plot number" (somehow by bundling them up or putting into an array - I tried both but didn't work) or it can be done merely by use of 'case' structure preceding the Graph, where case structure decides which plot to pass into the 3D graph?
    Attachments:
    3D_Graph_ver_1.bmp ‏214 KB

    Hello mjoler,
    Thank you for contacting National Instruments.
    The following example will show you how to plot multiple 3D plots on a single 3D graph. Modeling your VI after the example may also alleviate the instability that you have been experiencing.
    http://sine.ni.com/apps/we/niepd_web_display.display_epd4?p_guid=B123AE0CBA19111EE034080020E74861&p_node=DZ52038
    As far as the error you are receiving, it's difficult to say what could be causing this. ActiveX controls embedded on a front panel sometimes do not display on a remote client because they draw and operate almost completely independent of LabVIEW. If possible, try remotely controlling your VI with a client computer that has a complete installation of LabVIEW. The error could also be a bu
    g. Try downloading the evaluation version of LabVIEW 7.0 from http://www.ni.com/labview. By doing this, we can determine if it is a bug in the older version that has been fixed in the latest version.
    Let me know how this goes.
    Matthew C
    Applications Engineer
    National Instruments

  • Custom Run-Time Menu error when named "FileMenu.​rtm"

    Discovered an interesting "feature" (error?) in LabVIEW 2009 when using custom run-time file menus.
    If you create a custom run-time menu (.rtm) and name it "FileMenu.rtm" the menu will not function correctly in executable format.
    In my LabVIEW Project, any VIs which called this custom file menu worked correctly in the project, but when I built an executable, the VIs defaulted to the default file menu.  This was not due to a corrupted .rtm file or the file not being included in the executable.  Instead after extensive debugging I determined that the name "FileMenu.rtm" is somehow reserved in LabVIEW and any executables that are built have the custom run-time menu overwritten by the default.  The tricky part of this error is that it goes unnoticed while the code is still in development and only presents itself after being built into an executable.
    Simply changing the name of the file fixed the executable run-time menu.

    Chris,
    Thanks for trying it out.  It seems that my forum post may have been a bit rushed.  
    I tried to duplicate the problem in a new project from scratch and similarly was unable to reproduce it.  I will try more soon, and in doing so perhaps reveal the true underlying problem.  I would post the original code but it is proprietary.
    I was running LabVIEW 2009 and Windows XP when the problem first presented itself.  I updated to LabVIEW 2009 SP1 as part of my debugging and the problem still presented itself.
    V/R,
    ~David

Maybe you are looking for

  • IPod Plays Podcasts one at a time

    I just updated my 4G iPod to V3.1 with the current updater & I am using iTunes 4.9. Currently, I am only able to play one podcast at a time. It will not go to the next podcast on it's own. Pressing FWD (>) to what should be the next podcast instead t

  • How to call Java Map in XSLT map

    Hello, Can anyone tell me how to call Java Map in XSLT map. Thanks and Regards Hemant

  • Synchronus file to jdbc Adapter configuration.

    Hi , I want to configure for Synchronus File to Jdbc Adapter. Can anyone tell me how to do it. hemant

  • Unable to perform update/insert queries on ACCESS db

    Hi, I've configured my odbc (Access driver). I'm using user dsn. The dsn created is "Fitnet". Below are the source code. I am able to execute SELECT queries by using statment.executequery , but when I try to execute an update or insert query using st

  • Want to Post a Warning from Pay Pal Regarding Safari

    I have read the latest issue of MacWorld, there is a short artcle about a warning from Pay Pal to "Steer Clear of Safari". Pay Pal "Chief information security officer", says, that "Safari has no built in Phishing filter to warn users when they are vi