General XMetaL Discussion

  • andygasser

    Debug XMAX in IE

    Participants 3
    Replies 4
    Last Activity 13 years, 10 months ago

    Is there a way to debug macros in XMAX when it's hosted in IE? I cannot use the run (F5) feature in Visual Studio because my implementation requires additional scripts in the web application within IE. I tried putting a debugger statement in the script but it does not prompt to open the debugger.

    Reply

    XMetaLOldTimer

    Reply to: Debug XMAX in IE

    Check your Internet Explorer Tools.Options settings on the Advance tab to ensure that debugging isn't disabled.  Uncheck both options as shown in the attached picture. 

    Be aware that system admins can setup groupsec policies that prohibit you from changing this setting afaik. 

    Also, both MSIE and XMAX have their own script engine instances.  The Microsoft Script Engine architecture supports debugging only a single script engine instance at a time.  In otherwords, you can only debug scripts running within your web page OR macros within XMAX but not both together. 

    Regards,
    Addam

    Reply

    andygasser

    Reply to: Debug XMAX in IE

    Have you tried that, does it actually work for you?

    I am able to debug the scripts running within MSIE just fine, either by attaching the script debugger from the View menu, or by prompting the debugger with a “debugger” statement. That tells me that script debugging is enabled, allowed, and working. I am not able to debug the scripts running within the XMAX script engin. I don't know of a way to attach the debugger to XMAX and my “debugger” statements have no effect.

    Reply

    Derek Read

    Reply to: Debug XMAX in IE

    We're sure this used to work and suspect a Windows update may have changed this behavior. We can't get it working with even the simplest test samples that used to work.

    MSIE creates a script engine first and instantiates XMAX second. We suspect the MSIE script engine instance is the dominant one and auto-selected for debugging which means the XMAX script engine is being ignored.

    That was all done purely in MSIE without using XMetaL Developer.

    We'll be running some tests to confirm that is it still possible to launch MSIE from within a debug session from XMetaL Developer in Visual Studio and I will post the results once they are known.

    Reply

    LeeHart

    Reply to: Debug XMAX in IE

    We'll be running some tests to confirm that is it still possible to launch MSIE from within a debug session from XMetaL Developer in Visual Studio and I will post the results once they are known.

    Any results yet? I'm having issues in On_Application_Open and I can't seem to start XMetaL in the script debugger.

    Reply

  • You must be logged in to reply to this topic.

Lost Your Password?

Products
Downloads
Support