First time here? Check out the FAQ!
1

How to debug with step into statement (F7) in remote host project?

Hi,

I am trying to debug python code using Remote Development features of wingide6.1. I set up my remote project, and I can debug the code using F6 (step over current statement) and F7 (step into the current execution point). But when I use F7, I can stay in the debug mode only if the current execution point is inside the main program. For example, if I debug script a.py and I want to step into (F7) a function f(), where function f() is defined in script a.py, I can step into f() with F7 and step over the lines of f().

But if f() is defined in script b.py, I cannot be in the debug mode and track the steps inside f(). The steps are executed, but I can't see it online, e.g. I am not inside function f(). I stay inside a.py (at f()) and wait until I run over all the steps of f() and step out from f().

In the massages window, I see the following: General: Document Open Failed::Failed to open document 'ssh:[Identifier to my remote host]/b.py'

I need to be able to step into statements (with F7) that are defined in several scripts and classes in my project. How can I do it?

Many Thanks

updated 2020-03-23 17:33:00 -0500
This post is a wiki. Anyone with karma >75 is welcome to improve it.
edit flag offensive 0 remove flag close merge delete

Comments

We're working on this through the email support channel so I'll wait to see what the uncovers before posting an answer here.

Wingware Support's avatar Wingware Support (2020-03-24 13:23:19 -0500) edit
add a comment see more comments

1 Answer

0

Based on diagnosing this by email the problem is that the code being stepped into is inside a .egg file on the remote host and it looks like, in the remote case only, Wing is failing to correctly recognize this and tries to open the full path as an actual file name. This is a bug and we'll try to fix it.

If you need to step into the package, I think you can work around this by unzipping the .egg file. It is just a .zip file and can be unzip'ed so you have a directory with same name as the .egg (xyz.egg -> xyz).

Thanks for reporting this problem!

Wingware Support's avatar
4k
Wingware Support
answered 2020-03-25 09:28:01 -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