Download A4 - Wingware Python IDE

Transcript
Advanced Debugging Topics
In this example, the files located in /home/apache/cgi on server1 are the same
files seen in /server1/home/apache/cgi on desktop1 because the entire file
system on server1 is being shared via NFS and mounted on desktop1 under
/svr1.
To enter this value in Preferences, you would add 192.168.1.1 as a new Remote
IP Address and a single local/remote mapping pair containing /home/apache/cgi
and /svr1/home/apache/cgi.
IDE on Linux/Unix with Debug Process on Windows
If you are debugging between Windows and Linux or Unix, some care is needed in
specifying the conversion paths because of the different path name conventions on
each platform. The following entry would be used when running Wing IDE on a
Linux/Unix host and the debug process on a Windows host with ip address
192.168.1.1:
debug.location-map={
'127.0.0.1':None,
'192.168.1.1':[(r'e:\src', '/home/myuser/src')],
}
In this example the Linux/Unix directory /home/myuser is being shared via Samba
to the Windows machine and mapped to the e: drive.
In the Preferences GUI, you would add 192.168.1.1 as a new Remote IP Address
and a single local/remote mapping pair containing e:\src and /home/myuser/src.
IDE on Windows with Debug Process on Linux/Unix
If running Wing IDE on a Windows host and the debug process on a Linux/Unix
host with IP address 192.168.1.1, the following would be used instead for the same
file locations:
debug.location-map={
'127.0.0.1':None,
'192.168.1.1':[('/home/myuser/src', 'e:/src')],
}
Again, note the use of forward slashes in the URL even though the file is on a
Windows machine.
In the Preferences GUI, you would add 192.168.1.1 as a new Remote IP Address
and a single local/remote mapping pair containing /home/myuser/src and e:/src.
Two Windows Hosts
If running Wing IDE on Windows and the debug process on another Windows
machine with IP address 192.168.1.1, the following would be used:
109