The sample demonstrates the following tasks:
Running scripts and handling values.
Creating host objects that scripts can interact with.
Creating callback functions to execution actions in the host.
To debug the app and then run it, press F5 or use Debug > Start Debugging. To run the app without debugging, press Ctrl+F5 or use Debug > Start Without Debugging.
To debug a script running in the C++ sample host, choose Project > Properties. Under Configuration Properties, choose Debugging. Change the values of Debugger Type to Script and choose OK. Note that while using script debugging, you cannot debug the host itself. To switch back to native code debugging, change Debugger Type to Auto.
Because the C# and VB project systems do not allow changing the debugger type to the script debugger, to debug a script running in the C# or VB sample hosts it is necessary to open the host executable directly. Having built the project, choose File > Open > Project/Solution. Navigate to where the host executable was built (for example, <project directory>\bin\Debug) and choose the host executable (for example, chakrahost.exe). Choose Project > Properties. Change Debugger Type to Script and hit F5.