|
|
||
|---|---|---|
| .. | ||
| framework.h | ||
| README.md | ||
| Resource.h | ||
| small.ico | ||
| targetver.h | ||
| testhost.cpp | ||
| testhost.h | ||
| testhost.ico | ||
| testhost.rc | ||
| testhost.sln | ||
| testhost.vcxproj | ||
| testhost.vcxproj.filters | ||
Testhost
This project is a debug host for keyman32 (and keyman64). It is setup to run a single-threaded test mode of keyman32 keystroke processing. It depends on having Keyman correctly installed, but not currently running. Keyboards must be installed as normal.
The primary use of testhost is in interactive debugging of Keyman Core, and intermediate Engine code around Core. The final stage of characters reaching the document will not be identical to Keyman Engine in normal use, and there may be other interactive limitations as well.
Before trying to run, make sure you have built keyman32 in Debug configuration. Testhost will attempt to load keyman32.dll from ../keyman32/bin/Win32/Debug/keyman32.dll, and if that is not present, from ../keyman32/bin/Win32/Release/keyman32.dll, and finally, from a hardcoded "C:\Program Files (x86)\Common Files\Keyman\Keyman Engine\keyman32.dll" (which is hacky but probably suffices for now).
The work flow that works well using testhost. With Visual Studio(VS)
- Build Keyman32 with Debug Configuration.
- Build testhost with Debug Configuration.
- Ensure Keyman is not running and that language associated with keyboard you want to test is not selected in the language bar.
- Press F5 to start debugging.
- Now use the language bar to select the language associated with a keyman keyboard.
- You should now be able to debug both the platform and keyman core code.
- Once you stop the debug session you will need to go back to step 3 to start a new session. (or step 1 if you are making code changes; you should not need to reboot windows.)