General XMetaL Discussion
XMetaL Community Forum › General XMetaL Discussion › Debug XMAX in IE
-
andygasser May 6, 2009 at 3:48 pm
Debug XMAX in IE
May 6, 2009 at 3:48 pmParticipants 3Replies 4Last Activity 13 years, 10 months agoIs 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.
XMetaLOldTimer May 23, 2009 at 12:54 am
Reply to: Debug XMAX in IE
May 23, 2009 at 12:54 amCheck 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,
Addamandygasser June 10, 2009 at 4:07 pm
Reply to: Debug XMAX in IE
June 10, 2009 at 4:07 pmHave 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.
Derek Read June 10, 2009 at 8:53 pm
Reply to: Debug XMAX in IE
June 10, 2009 at 8:53 pmWe'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.
LeeHart November 13, 2009 at 11:10 pm
Reply to: Debug XMAX in IE
November 13, 2009 at 11:10 pmWe'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.
-
AuthorPosts
- You must be logged in to reply to this topic.