Skip to content
Discussion options

You must be logged in to vote

@swatkinson
Please do not use Start Debug in Test Options.

You could try something like this

import sys
import traceback

import utility_controller as uc

PLUGIN_PATH = uc.get_plugin_path()

log_file = open(fr"{PLUGIN_PATH}/log.txt", "w")

sys.stderr = log_file

def raise_error():
    raise ValueError("some test error")

try:
    raise_error()

except Exception as e:
    traceback.print_exc()

log_file.close()

Does it crash because of your python code ? Or what causes the crash ?

Replies: 3 comments 4 replies

Comment options

You must be logged in to vote
3 replies
@swatkinson
Comment options

@swatkinson
Comment options

@Brunner246
Comment options

Answer selected by swatkinson
Comment options

You must be logged in to vote
1 reply
@swatkinson
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants