Debugging new plugin

11 views
Skip to first unread message

Itamar K.

unread,
May 21, 2012, 4:54:30 AM5/21/12
to HeuristicLab
Hello HeuristicLab crew!

After our last discussion, we have written a new plugin.
We have a difficulty to debug it with the debugging engine of
heuristic lab because we cannot see all the parameters we are using.
Instead, we use the slow process of making a change, re-compilation of
the plugin and re-activating of heuristic lab.

Our questions are:
1. Is there other, more convenient way to debug those plugins?
2. If not, is there a way to see the local parameters inside the
plugin in the debug engine?

Thank You,
Tomer and Itamar

Andreas Scheibenpflug

unread,
May 21, 2012, 10:35:08 AM5/21/12
to heuris...@googlegroups.com
Dear Itamar,

the debug engine only shows HeuristicLab parameters (everything that
you add with Parameters.Add(..)). If you want to see e.g. other
properties of your objects in the debug view, you have to use HL
parameters (e.g. a ValueParameter) to export them.
Concerning debugging with Visual Studio, we actually work in the same
way as you described it when developing HL plugins. Compiling a single
plugin is quit fast. It's a good idea to not start HL using the Visual
Studio Run button because it's slow but instead start the HeuristicLab
3.3.exe directly. When HL is loaded you can attach the Visual Studio
debugger to HeuristicLab (in Visual Studio click on Tools -> Attach to
Process, select HeuristicLab 3.3.exe and click on Attach) and debug
the application.

If you have any further questions please don't hesitate to ask.


Best regards,

Andreas
Reply all
Reply to author
Forward
0 new messages