How to set a breakpoint - worldexplorer/SquareOne GitHub Wiki
-
open Sq1.#D.sln in SharpDevelop;
-
set Configuration to Debug;
-
type "Debugger.Break()" anywhere inside the code of strategy in Sq1.Strategies.Demo;
-
Run Sq1.Gui startup project;
-
open the strategy you changed in Tools -> Strategies;
-
click in ChartMenu -> Backtest -> Backtest Now;
-
when your breakpoint is hit, you'll get back to SharpDevelop in debug mode;
-
you can explore local variables; the gateway to internal Core data structures is in base.Executor (for any userland script derived from Sq1.Core.StrategyBase.Script);
-
donate $30 to SharpDevelop team: they saved 13Gb on your SSD drive; you may ask them to implement "activate edited code in debug mode" feature;