AntiMicroX / antimicrox

Graphical program used to map keyboard buttons and mouse controls to a gamepad. Useful for playing games with no gamepad support.
GNU General Public License v3.0
2.26k stars 138 forks source link

Cannot seem to get debug log to debug why execute doesn't seem to be working #795

Closed cjwomack closed 1 year ago

cjwomack commented 1 year ago

Is there an existing issue for this?

Current Behavior

Hi there,

I want a debug log to debug a particular problem or whether I'm making a mistake re execute function...

I'm trying to run an .exe with arguments either python or powershell or even just the .exe

It doesn't appear to be working the execute function but before I wanted to submit a bug report for that or to see if I was doing anything wrong for that I wanted the debug log, I've tried both the gui and command line launching options and it doesn't seem to work.

Using the latest version, the executable x64 for Windows. I am running Windows 10. Hopefully I've supplied enough information, it's nighttime here so I'm a bit drowsy but I thought I should submit these now because of potential time zone issues

Looked at https://github.com/AntiMicroX/antimicrox/issues/349 and https://github.com/AntiMicroX/antimicrox/wiki/Collecting-Logs

Expected Behavior

A debug log (Potentially Execute working - but that would be new issue, though I'm not sure I'm doing something idiotic because of late hour, hence wanted log)

Steps To Reproduce

  1. Install x64 executable (not zip) for Windows
  2. Either try GUI or launch via command line
  3. No log

Environment

Program Version 3.3.4
Compiled from packaging: GitHub Windows Release
Built Against SDL 2.26.5
Running With SDL 2.26.5
Using Qt 5.15.2
Using Event Handler: SendInput
Host OS: windows Version: 10 Architecture: x86_64

Anything else?

No response

pktiuk commented 1 year ago

Unluckily Windows does not allow GUI apps printing in terminal (it is really annoying when I have to do something on that platform), but you can still get files with logs. Just Go to settings->Advanced and select log level and target log file. You should be also able to specify log file with commandline.

Link to Stack Overflow: https://stackoverflow.com/questions/3360548/console-output-in-a-qt-gui-app

I hope I helped.

cjwomack commented 1 year ago

How is your suggestion different from https://github.com/AntiMicroX/antimicrox/wiki/Collecting-Logs?

I mentioned in the original post as I had followed those instructions by listing the URL, hence didn't think I need to paste the below in Steps To Reproduce (maybe I should have in hindsight)

`Commandline-based Just run antimicrox with flags describing log level and target filename.

antimicrox --log-level debug --log-file /my/path/to/amtimicrox.log Using GUI Just go to Settings->Advanced and select log level and target path.`

I already did both of those steps before submitting this report and they didn't work... Commandline based and GUI based

None of those worked.

I did ls in powershell and looked in the file path that I specified also in Windows Explorer

pktiuk commented 1 year ago

That's strange. From your report I thought you tried to get logs in commandline.
But in case of getting logs info regular file everything should work properly. You told you tried to run app with python and with powershell. Have you also tried with with regular user's way (by clicking an icon and doing everything only with GUI)?

There is a guide how to collect logs on wiki, but you seemed to do everything fine

pktiuk commented 1 year ago

Closing due to lack of feedback