First time here? Check out the FAQ!
1

How to go into my code directly when debugging

Hi:
It always goes into sys fucnction.how to avoid it. thanks

image description image description image description

grantzhou's avatar
11
grantzhou
asked 2023-09-21 08:23:36 -0500
Wingware Support's avatar
4k
Wingware Support
updated 2023-12-07 08:21:36 -0500
edit flag offensive 0 remove flag close merge delete

Comments

Where is Wing stopping exactly? Wing does show the innermost stack frame where an exception occurs and you may need to go out to enclosing stack frames to find your code.

Wingware Support's avatar Wingware Support (2023-09-21 10:18:21 -0500) edit

Hi: I uploaded three snapshots for my question,pls see it.

grantzhou's avatar grantzhou (2023-09-22 01:39:08 -0500) edit

ok,thanks.

grantzhou's avatar grantzhou (2023-09-23 03:08:36 -0500) edit
add a comment see more comments

1 Answer

0

When you step into the Tetris() call, the next line of Python executed is in an enum constructor so Wing stops there. If you want to get beyond this call, use step out to step out of the constructor and go to the next line of Python code after it finishes

The enum constructor is called with the PyQt runtime converts a C++ enum value into a Python enum instance.

What you probably want to do in in this case is to set a breakpoint at your __init__ method and run to there.

Wingware Support's avatar
4k
Wingware Support
answered 2023-09-22 14:34:30 -0500
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss.

Add Answer