You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.:
for (var index = 0; index < 10; ++index) {
// some code with changing vars
console('index: ' + index)
console('myvar: ' + myvar)
// other code...
}
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 😢
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
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