Get console outputs on Windows - How is the setting? #2578
Unanswered
francwalter
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hallo
for debugging reasons I try to get console outputs in CopyQ on Windows 11.
I have problems with an own command: Command for adding a space to the beginning of each line of the Clipboard #2571 and want to find the reason, but I dont know how to make the debug output on console working.
I found: Scripting API#console and I found Command Line where issues with Windows are linked:
But maybe I dont understand the thing at all: I want to run my command and while it is running it should print some vars to the console, e.g.:
Something like this, to debug. So I wrote the Environment Variable COPYQ_LOG_LEVEL=DEBUG to the system (I tried both, user and system), show CopyQ from PowerShell like:
& 'C:\Program Files\CopyQ\copyq.exe' show | Write-Output
And I have a command (only 'In Menu', no 'Global Shortcut') which just does:
console.warn('Console Test ...')
but when I launch it now, nothing happens in PowerShell. No console output.
So maybe there is somewhere a How-To how to do this, which I didnt find, or someone could give me a hint, how it is done please?
At the moment, I am fishing in the mud 😢
Thanks.frank
EDIT: OK, when I use the CygWin Terminal, and start CopyQ from there (
"/c/Program Files/CopyQ/copyq"
) I see many DEBUG messages, which is already a big difference to PowerShell, where I see nothing after starting CopyQ there.But I still dont see my console.log(...) output, I dont know how to use it 😢
Beta Was this translation helpful? Give feedback.
All reactions