First time here? Check out the FAQ!

how to go into my code directly when debugging

  • retag add tags

It always goes into sys to avoid it. thanks

image description image description image description

grantzhou's avatar
asked 2023-09-21 08:23:36 -0600, updated 2023-09-22 01:37:50 -0600
edit flag offensive 0 remove flag close merge delete


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 -0600) edit

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

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


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

1 Answer


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
Wingware Support
answered 2023-09-22 14:34:30 -0600
edit flag offensive 0 remove flag delete link


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