Download Wing IDE Personal Reference Manual
Transcript
88
The default value for the Location Map preference contains one entry for
127.0.0.1 where the mapping is set to None (in Python this is represented as
{’127.0.0.1’:None}). This is equivalent to the more verbose Python representation
of {’127.0.0.1’:[(’/’,’file:’)]}. It converts full paths on the debug server to the
client-side URLs without altering any part of the full path.
Two Linux/Unix Hosts
Here is an example setting for debug.location-map that would be used if running Wing
on desktop1 and debugging some code on server1 with IP address 192.168.1.1:
debug.location-map={
’127.0.0.1’:None,
’192.168.1.1’:[(’/home/apache/cgi’, ’file:/svr1/home/apache/cgi’)]
}
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
file:/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’, ’file:/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 file:/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