Skip to content

Debugging

Oddbjørn Bakke edited this page May 10, 2021 · 2 revisions

Normally a entry.tp of a plugin will execute some application or script on startup, with the entry:

  "plugin_start_cmd": "\"%TP_PLUGIN_FOLDER%SamplePlugin\\SamplePlugin.exe\"",

Plugin in this example: %appdata%\TouchPortal\plugins\SamplePlugin\entry.tp

What you will do is either remove this before starting TouchPortal, or just kill SamplePlugin.exe in Task Manager.
TouchPortal will not care to much about the process being killed.

You can then start the plugin in debug mode, from Visual Studio, and everything should just work. As long as the plugin can connect and pair with TouchPortal, you will be able to debug.

You might instead want to attach to the process, but then you must have the output to this folder and all of that.
Much simpler and less pain to just to the things above instead.

TouchPortal will not magically do anything when the entry.tp file is changed.
So the simplest on entry.tp changes is to restart TouchPortal.

Clone this wiki locally