Ask Your Question
1

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

asked 2020-03-23 17:33:00 -0500

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

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

edit retag flag offensive 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

1 Answer

Sort by ยป oldest newest most voted
0

answered 2020-03-25 09:28:01 -0500

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!

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

2 followers

Stats

Asked: 2020-03-23 17:33:00 -0500

Seen: 1,020 times

Last updated: Mar 25 '20