contents   index   previous   next



SEND FILE filename

The debugger uses this when remote debugging and finding a new filename. The application responds by sending the file using this format:

 

FILE filename LENGTH length-in-bytes

file contents

FILE DONE

 

UNICODE FILE filename LENGTH length-in-bytes

file contents

FILE DONE

 

The length field is confirmed by finding FILE DONE at the right place. For files of unicode characters, the length in bytes will be twice the number of unicode characters. Unicode chars are passed in little endian byte order.

 

It is alternately possible to see a DENIED response from the application. Only filenames sent in a REPORT are valid. This is a check against someone trying to read arbitrary files. If the DENIED message text consists of a single ?, the application is indicating it does not have access to the source text. This is possible when the application is executing compiled scripts. In this case, the debugger will have to make a decision as to what it does in this case. One possibility is to expect the user to run the debugger from the machine that originally compiled those scripts. In this case, the filenames will correspond to files on the debugging machine.

 


CLEAR BREAKPOINTS