Debugging with Eclipse

In order to debug, you should already have installed MarketRunner in eclipse.

Debug your strategy

You can use Eclipse debugging features, including :

  • setting breakpoints in your strategy (allowing to follow invocations of all callbacks)
  • follow your code execution step-by-step
  • visualize variable values during the execution (prices, volumes, etc.)

Open any strategy file.
Define breakpoints in places you want to debug by right-clicking in the code margin

Instead of running the strategy using the Run button, launch the "Run Strategy Local" menu from the debug button :

debugButton.png

Eclipse will then propose to switch to debug view, where you can step-by-step execute your code and inspect variable values.