| |||
Cause | |||
It's possible the association of the "*.js" extension with a script engine/debugger has been lost. | |||
Resolving the problem | |||
Attempting to debug a Javascript-based Resource Model in the ITM Resource Model Builder (RMB), the "Play" button/icon is selected to start debugging. The Play icon changes from Green to grey, and the Stop icon turns from grey to Red, as it should when debugging is activated. But after a fraction of a second it stops and goes back to green without starting a debugger. Check the Javascript console for the error. Sometimes if the .JS extension was associated with something else on the system other than JSFile, it won't be able to find the "ScriptEngine" entry for that type in HKEY_CLASSES_ROOT, and will fail to start the debugger. The lowest frame in the RMB window has a series of tabs at the bottom (Tasks, RMB Logging Viewer, RMB Indication Viewer, RMB Event Viewer, and Javascript Console). Choose "Javascript Console" tab to see any errors. For example, it might show the following: Microsoft (R) Windows Script Host Version 5.6 Copyright (C) Microsoft Corporation 1996-2001. All rights reserved. Input Error: There is no script engine for file extension ".JS". If so, then check the current association of the ".JS" extension on that Windows system by running the following command: ASSOC .JS It should show something like ".js=JSFile" on a working system. If it shows something else, note what it is for safekeeping and then change it with: ASSOC .JS=JSFile Verify the change using "ASSOC .JS" again. Then retry the debugger to confirm it works this time, watching the Javascript console for any other errors. |