Debugging a plugin
Posted: March 15th, 2018, 8:35 am
Heyhey,
I'm trying to debug a plugin I'm building. The problem I'm facing at the moment is that the logs that should be written don't seem to appear anywhere. Is there a bug that won't let me initialize the plugin or am I looking in the wrong places for the log to appear? (I looked into the log in "manage rainmeter" -> "open log".)
Oh, and should I use a certain target framework? (.NET core/.NET framework/???)
I'm trying to debug a plugin I'm building. The problem I'm facing at the moment is that the logs that should be written don't seem to appear anywhere. Is there a bug that won't let me initialize the plugin or am I looking in the wrong places for the log to appear? (I looked into the log in "manage rainmeter" -> "open log".)
Oh, and should I use a certain target framework? (.NET core/.NET framework/???)
Code: Select all
namespace PluginParentChild
{
public static class Plugin
{
private static API api;
[DllExport]
public static void Initialize(ref IntPtr data, IntPtr rm)
{
api = new API(rm);
api.Log(API.LogType.Notice, "Starting plugin");
...
}
...
}
}
Code: Select all
[MeasureImageMasker]
Measure = Plugin
Plugin = ImageMerger.dll
Type = ImageMaskMeasure
[MeasureImage]
Measure = Plugin
Plugin = ImageMerger.dll
Type = ImageMeasure
Parent = ImageMasker
ImageName = MeasureImagePath
PreserveAspectRatio = 1
X = (#BorderSize#+#ShadowSize#)
Y = (#BorderSize#+#ShadowSize#)
W = #ImageWidth#
H = #ImageHeight#
DynamicVariables=1
[MeasureMask]
Measure = Plugin
Plugin = ImageMerger.dll
Type = ImageMeasure
Parent = ImageMasker
ImageName = #@#circle.png
PreserveAspectRatio = 2
X = 0
Y = 0
W = #Width#
H = #Height#
DynamicVariables=1
[MeasureResult]
Measure = Plugin
Plugin = ImageMerger.dll
Type = ImageResultMeasure
Parent = ImageMasker
ImageName = #@#result.png
X = 0
Y = 0
W = #Width#
H = #Height#
DynamicVariables=1
[Image]
Meter=IMAGE
ImageName = #@#result.png
X = 0
Y = 0
W = #Width#
H = #Height#