O
O
Oleg Petrov2018-03-27 08:45:54
Python
Oleg Petrov, 2018-03-27 08:45:54

How to make the command line window not close after executing the script to catch the error?

Hello, I have a question for you.
I created an Exe file of a Python script using pyinstaller, but this script closes in the middle of work due to an unknown error, and the Python source itself Always works always 100%.
Could you advise how I can track this error so that the command line window does not close during the execution of the exe, and I can see where the error occurred.
Do you need to create a shortcut to this Exe file with a certain parameter? I have win10
Thanks in advance

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
pfg21, 2018-03-27
@Smeilz1

Windows, as I understand it,
run the command line
, click Start - Run
in the window that opens, enter cmd, press enter
, in the window that appears, run your program.
those. copy the full path to exe and paste it into the console window, press enter

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question