Quantcast
Channel: ClearScript
Viewing all articles
Browse latest Browse all 2297

New Post: Debug script

0
0
Hi,

Script loaded dynamically does not hit break point.

I have script ex:
var a=10;
var b=20
var c=a+b;
ScriptLib.LoadScript("sample.js");
var d=a+b+c;
and in LoadScript() function I am reading this file and I am calling
scriptEngine.Evaluate(FileScript)
am also setting break point line no to 0. This hits the break point and I am successfully able to debug step by step till line 4

I have also provided option to load script dynamically similar to shown here
engine.Evaluate(File.ReadAllText(path))
Dynamically loaded script executes successfully but the script in this file does not hit break point. I am trying to debug the dynamically loaded script also.

Please let me know is this a limitation or am I missing something.

Thank you.

Viewing all articles
Browse latest Browse all 2297