Sun, 16 Oct 2016 14:45:00 +0200
Removed the source docu of the old debugger backend.
--- a/Documentation/Source/eric6.DebugClients.Python2.AsyncFile.html Sun Oct 16 14:43:18 2016 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,435 +0,0 @@ -<!DOCTYPE html> -<html><head> -<title>eric6.DebugClients.Python2.AsyncFile</title> -<meta charset="UTF-8"> -<style> -body { - background: #EDECE6; - margin: 0em 1em 10em 1em; - color: black; -} - -h1 { color: white; background: #85774A; } -h2 { color: white; background: #85774A; } -h3 { color: white; background: #9D936E; } -h4 { color: white; background: #9D936E; } - -a { color: #BA6D36; } - -</style> -</head> -<body><a NAME="top" ID="top"></a> -<h1>eric6.DebugClients.Python2.AsyncFile</h1> -<p> -Module implementing an asynchronous file like socket interface for the -debugger. -</p> -<h3>Global Attributes</h3> -<table> -<tr><td>None</td></tr> -</table> -<h3>Classes</h3> -<table> -<tr> -<td><a href="#AsyncFile">AsyncFile</a></td> -<td>Class wrapping a socket object with a file interface.</td> -</tr> -</table> -<h3>Functions</h3> -<table> -<tr> -<td><a href="#AsyncPendingWrite">AsyncPendingWrite</a></td> -<td>Module function to check for data to be written.</td> -</tr> -</table> -<hr /><hr /> -<a NAME="AsyncFile" ID="AsyncFile"></a> -<h2>AsyncFile</h2> -<p> - Class wrapping a socket object with a file interface. -</p> -<h3>Derived from</h3> -object -<h3>Class Attributes</h3> -<table> -<tr><td>maxbuffersize</td></tr><tr><td>maxtries</td></tr> -</table> -<h3>Class Methods</h3> -<table> -<tr><td>None</td></tr> -</table> -<h3>Methods</h3> -<table> -<tr> -<td><a href="#AsyncFile.__init__">AsyncFile</a></td> -<td>Constructor</td> -</tr><tr> -<td><a href="#AsyncFile.__checkMode">__checkMode</a></td> -<td>Private method to check the mode.</td> -</tr><tr> -<td><a href="#AsyncFile.__nWrite">__nWrite</a></td> -<td>Private method to write a specific number of pending bytes.</td> -</tr><tr> -<td><a href="#AsyncFile.close">close</a></td> -<td>Public method to close the file.</td> -</tr><tr> -<td><a href="#AsyncFile.fileno">fileno</a></td> -<td>Public method returning the file number.</td> -</tr><tr> -<td><a href="#AsyncFile.flush">flush</a></td> -<td>Public method to write all pending bytes.</td> -</tr><tr> -<td><a href="#AsyncFile.isatty">isatty</a></td> -<td>Public method to indicate whether a tty interface is supported.</td> -</tr><tr> -<td><a href="#AsyncFile.pendingWrite">pendingWrite</a></td> -<td>Public method that returns the number of bytes waiting to be written.</td> -</tr><tr> -<td><a href="#AsyncFile.read">read</a></td> -<td>Public method to read bytes from this file.</td> -</tr><tr> -<td><a href="#AsyncFile.read_p">read_p</a></td> -<td>Public method to read bytes from this file.</td> -</tr><tr> -<td><a href="#AsyncFile.readable">readable</a></td> -<td>Public method to check, if the stream is readable.</td> -</tr><tr> -<td><a href="#AsyncFile.readline">readline</a></td> -<td>Public method to read one line from this file.</td> -</tr><tr> -<td><a href="#AsyncFile.readline_p">readline_p</a></td> -<td>Public method to read a line from this file.</td> -</tr><tr> -<td><a href="#AsyncFile.readlines">readlines</a></td> -<td>Public method to read all lines from this file.</td> -</tr><tr> -<td><a href="#AsyncFile.seek">seek</a></td> -<td>Public method to move the filepointer.</td> -</tr><tr> -<td><a href="#AsyncFile.seekable">seekable</a></td> -<td>Public method to check, if the stream is seekable.</td> -</tr><tr> -<td><a href="#AsyncFile.tell">tell</a></td> -<td>Public method to get the filepointer position.</td> -</tr><tr> -<td><a href="#AsyncFile.truncate">truncate</a></td> -<td>Public method to truncate the file.</td> -</tr><tr> -<td><a href="#AsyncFile.writable">writable</a></td> -<td>Public method to check, if a stream is writable.</td> -</tr><tr> -<td><a href="#AsyncFile.write">write</a></td> -<td>Public method to write a string to the file.</td> -</tr><tr> -<td><a href="#AsyncFile.write_p">write_p</a></td> -<td>Public method to write a string to the file.</td> -</tr><tr> -<td><a href="#AsyncFile.writelines">writelines</a></td> -<td>Public method to write a list of strings to the file.</td> -</tr> -</table> -<h3>Static Methods</h3> -<table> -<tr><td>None</td></tr> -</table> -<a NAME="AsyncFile.__init__" ID="AsyncFile.__init__"></a> -<h4>AsyncFile (Constructor)</h4> -<b>AsyncFile</b>(<i>sock, mode, name</i>) -<p> - Constructor -</p><dl> -<dt><i>sock</i></dt> -<dd> -the socket object being wrapped -</dd><dt><i>mode</i></dt> -<dd> -mode of this file (string) -</dd><dt><i>name</i></dt> -<dd> -name of this file (string) -</dd> -</dl><a NAME="AsyncFile.__checkMode" ID="AsyncFile.__checkMode"></a> -<h4>AsyncFile.__checkMode</h4> -<b>__checkMode</b>(<i>mode</i>) -<p> - Private method to check the mode. -</p><p> - This method checks, if an operation is permitted according to - the mode of the file. If it is not, an IOError is raised. -</p><dl> -<dt><i>mode</i></dt> -<dd> -the mode to be checked (string) -</dd> -</dl><dl> -<dt>Raises <b>IOError</b>:</dt> -<dd> -raised to indicate a bad file descriptor -</dd> -</dl><a NAME="AsyncFile.__nWrite" ID="AsyncFile.__nWrite"></a> -<h4>AsyncFile.__nWrite</h4> -<b>__nWrite</b>(<i>n</i>) -<p> - Private method to write a specific number of pending bytes. -</p><dl> -<dt><i>n</i></dt> -<dd> -the number of bytes to be written (int) -</dd> -</dl><a NAME="AsyncFile.close" ID="AsyncFile.close"></a> -<h4>AsyncFile.close</h4> -<b>close</b>(<i>closeit=False</i>) -<p> - Public method to close the file. -</p><dl> -<dt><i>closeit</i></dt> -<dd> -flag to indicate a close ordered by the debugger code - (boolean) -</dd> -</dl><a NAME="AsyncFile.fileno" ID="AsyncFile.fileno"></a> -<h4>AsyncFile.fileno</h4> -<b>fileno</b>(<i></i>) -<p> - Public method returning the file number. -</p><dl> -<dt>Returns:</dt> -<dd> -file number (int) -</dd> -</dl><a NAME="AsyncFile.flush" ID="AsyncFile.flush"></a> -<h4>AsyncFile.flush</h4> -<b>flush</b>(<i></i>) -<p> - Public method to write all pending bytes. -</p><a NAME="AsyncFile.isatty" ID="AsyncFile.isatty"></a> -<h4>AsyncFile.isatty</h4> -<b>isatty</b>(<i></i>) -<p> - Public method to indicate whether a tty interface is supported. -</p><dl> -<dt>Returns:</dt> -<dd> -always false -</dd> -</dl><a NAME="AsyncFile.pendingWrite" ID="AsyncFile.pendingWrite"></a> -<h4>AsyncFile.pendingWrite</h4> -<b>pendingWrite</b>(<i></i>) -<p> - Public method that returns the number of bytes waiting to be written. -</p><dl> -<dt>Returns:</dt> -<dd> -the number of bytes to be written (int) -</dd> -</dl><a NAME="AsyncFile.read" ID="AsyncFile.read"></a> -<h4>AsyncFile.read</h4> -<b>read</b>(<i>size=-1</i>) -<p> - Public method to read bytes from this file. -</p><dl> -<dt><i>size</i></dt> -<dd> -maximum number of bytes to be read (int) -</dd> -</dl><dl> -<dt>Returns:</dt> -<dd> -the bytes read (any) -</dd> -</dl><a NAME="AsyncFile.read_p" ID="AsyncFile.read_p"></a> -<h4>AsyncFile.read_p</h4> -<b>read_p</b>(<i>size=-1</i>) -<p> - Public method to read bytes from this file. -</p><dl> -<dt><i>size</i></dt> -<dd> -maximum number of bytes to be read (int) -</dd> -</dl><dl> -<dt>Returns:</dt> -<dd> -the bytes read (any) -</dd> -</dl><a NAME="AsyncFile.readable" ID="AsyncFile.readable"></a> -<h4>AsyncFile.readable</h4> -<b>readable</b>(<i></i>) -<p> - Public method to check, if the stream is readable. -</p><dl> -<dt>Returns:</dt> -<dd> -flag indicating a readable stream (boolean) -</dd> -</dl><a NAME="AsyncFile.readline" ID="AsyncFile.readline"></a> -<h4>AsyncFile.readline</h4> -<b>readline</b>(<i>sizehint=-1</i>) -<p> - Public method to read one line from this file. -</p><dl> -<dt><i>sizehint</i></dt> -<dd> -hint of the numbers of bytes to be read (int) -</dd> -</dl><dl> -<dt>Returns:</dt> -<dd> -one line read (string) -</dd> -</dl><a NAME="AsyncFile.readline_p" ID="AsyncFile.readline_p"></a> -<h4>AsyncFile.readline_p</h4> -<b>readline_p</b>(<i>size=-1</i>) -<p> - Public method to read a line from this file. -</p><p> - <b>Note</b>: This method will not block and may return - only a part of a line if that is all that is available. -</p><dl> -<dt><i>size</i></dt> -<dd> -maximum number of bytes to be read (int) -</dd> -</dl><dl> -<dt>Returns:</dt> -<dd> -one line of text up to size bytes (string) -</dd> -</dl><a NAME="AsyncFile.readlines" ID="AsyncFile.readlines"></a> -<h4>AsyncFile.readlines</h4> -<b>readlines</b>(<i>sizehint=-1</i>) -<p> - Public method to read all lines from this file. -</p><dl> -<dt><i>sizehint</i></dt> -<dd> -hint of the numbers of bytes to be read (int) -</dd> -</dl><dl> -<dt>Returns:</dt> -<dd> -list of lines read (list of strings) -</dd> -</dl><a NAME="AsyncFile.seek" ID="AsyncFile.seek"></a> -<h4>AsyncFile.seek</h4> -<b>seek</b>(<i>offset, whence=0</i>) -<p> - Public method to move the filepointer. -</p><dl> -<dt><i>offset</i></dt> -<dd> -offset to move the filepointer to (integer) -</dd><dt><i>whence</i></dt> -<dd> -position the offset relates to -</dd> -</dl><dl> -<dt>Raises <b>IOError</b>:</dt> -<dd> -This method is not supported and always raises an - IOError. -</dd> -</dl><a NAME="AsyncFile.seekable" ID="AsyncFile.seekable"></a> -<h4>AsyncFile.seekable</h4> -<b>seekable</b>(<i></i>) -<p> - Public method to check, if the stream is seekable. -</p><dl> -<dt>Returns:</dt> -<dd> -flag indicating a seekable stream (boolean) -</dd> -</dl><a NAME="AsyncFile.tell" ID="AsyncFile.tell"></a> -<h4>AsyncFile.tell</h4> -<b>tell</b>(<i></i>) -<p> - Public method to get the filepointer position. -</p><dl> -<dt>Raises <b>IOError</b>:</dt> -<dd> -This method is not supported and always raises an - IOError. -</dd> -</dl><a NAME="AsyncFile.truncate" ID="AsyncFile.truncate"></a> -<h4>AsyncFile.truncate</h4> -<b>truncate</b>(<i>size=-1</i>) -<p> - Public method to truncate the file. -</p><dl> -<dt><i>size</i></dt> -<dd> -size to truncate to (integer) -</dd> -</dl><dl> -<dt>Raises <b>IOError</b>:</dt> -<dd> -This method is not supported and always raises an - IOError. -</dd> -</dl><a NAME="AsyncFile.writable" ID="AsyncFile.writable"></a> -<h4>AsyncFile.writable</h4> -<b>writable</b>(<i></i>) -<p> - Public method to check, if a stream is writable. -</p><dl> -<dt>Returns:</dt> -<dd> -flag indicating a writable stream (boolean) -</dd> -</dl><a NAME="AsyncFile.write" ID="AsyncFile.write"></a> -<h4>AsyncFile.write</h4> -<b>write</b>(<i>s</i>) -<p> - Public method to write a string to the file. -</p><dl> -<dt><i>s</i></dt> -<dd> -bytes to be written (string) -</dd> -</dl><a NAME="AsyncFile.write_p" ID="AsyncFile.write_p"></a> -<h4>AsyncFile.write_p</h4> -<b>write_p</b>(<i>s</i>) -<p> - Public method to write a string to the file. -</p><dl> -<dt><i>s</i></dt> -<dd> -text to be written (string) -</dd> -</dl><dl> -<dt>Raises <b>socket.error</b>:</dt> -<dd> -raised to indicate too many send attempts -</dd> -</dl><a NAME="AsyncFile.writelines" ID="AsyncFile.writelines"></a> -<h4>AsyncFile.writelines</h4> -<b>writelines</b>(<i>lines</i>) -<p> - Public method to write a list of strings to the file. -</p><dl> -<dt><i>lines</i></dt> -<dd> -list of texts to be written (list of string) -</dd> -</dl> -<div align="right"><a href="#top">Up</a></div> -<hr /><hr /> -<a NAME="AsyncPendingWrite" ID="AsyncPendingWrite"></a> -<h2>AsyncPendingWrite</h2> -<b>AsyncPendingWrite</b>(<i>file</i>) -<p> - Module function to check for data to be written. -</p><dl> -<dt><i>file</i></dt> -<dd> -The file object to be checked (file) -</dd> -</dl><dl> -<dt>Returns:</dt> -<dd> -Flag indicating if there is data wating (int) -</dd> -</dl> -<div align="right"><a href="#top">Up</a></div> -<hr /> -</body></html> \ No newline at end of file
--- a/Documentation/Source/eric6.DebugClients.Python2.DCTestResult.html Sun Oct 16 14:43:18 2016 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,186 +0,0 @@ -<!DOCTYPE html> -<html><head> -<title>eric6.DebugClients.Python2.DCTestResult</title> -<meta charset="UTF-8"> -<style> -body { - background: #EDECE6; - margin: 0em 1em 10em 1em; - color: black; -} - -h1 { color: white; background: #85774A; } -h2 { color: white; background: #85774A; } -h3 { color: white; background: #9D936E; } -h4 { color: white; background: #9D936E; } - -a { color: #BA6D36; } - -</style> -</head> -<body><a NAME="top" ID="top"></a> -<h1>eric6.DebugClients.Python2.DCTestResult</h1> -<p> -Module implementing a TestResult derivative for the eric6 debugger. -</p> -<h3>Global Attributes</h3> -<table> -<tr><td>None</td></tr> -</table> -<h3>Classes</h3> -<table> -<tr> -<td><a href="#DCTestResult">DCTestResult</a></td> -<td>A TestResult derivative to work with eric6's debug client.</td> -</tr> -</table> -<h3>Functions</h3> -<table> -<tr><td>None</td></tr> -</table> -<hr /><hr /> -<a NAME="DCTestResult" ID="DCTestResult"></a> -<h2>DCTestResult</h2> -<p> - A TestResult derivative to work with eric6's debug client. -</p><p> - For more details see unittest.py of the standard python distribution. -</p> -<h3>Derived from</h3> -TestResult -<h3>Class Attributes</h3> -<table> -<tr><td>None</td></tr> -</table> -<h3>Class Methods</h3> -<table> -<tr><td>None</td></tr> -</table> -<h3>Methods</h3> -<table> -<tr> -<td><a href="#DCTestResult.__init__">DCTestResult</a></td> -<td>Constructor</td> -</tr><tr> -<td><a href="#DCTestResult.addError">addError</a></td> -<td>Public method called if a test errored.</td> -</tr><tr> -<td><a href="#DCTestResult.addExpectedFailure">addExpectedFailure</a></td> -<td>Public method called if a test failed expected.</td> -</tr><tr> -<td><a href="#DCTestResult.addFailure">addFailure</a></td> -<td>Public method called if a test failed.</td> -</tr><tr> -<td><a href="#DCTestResult.addSkip">addSkip</a></td> -<td>Public method called if a test was skipped.</td> -</tr><tr> -<td><a href="#DCTestResult.addUnexpectedSuccess">addUnexpectedSuccess</a></td> -<td>Public method called if a test succeeded expectedly.</td> -</tr><tr> -<td><a href="#DCTestResult.startTest">startTest</a></td> -<td>Public method called at the start of a test.</td> -</tr><tr> -<td><a href="#DCTestResult.stopTest">stopTest</a></td> -<td>Public method called at the end of a test.</td> -</tr> -</table> -<h3>Static Methods</h3> -<table> -<tr><td>None</td></tr> -</table> -<a NAME="DCTestResult.__init__" ID="DCTestResult.__init__"></a> -<h4>DCTestResult (Constructor)</h4> -<b>DCTestResult</b>(<i>dbgClient</i>) -<p> - Constructor -</p><dl> -<dt><i>dbgClient</i> (DebugClientBase)</dt> -<dd> -reference to the debug client -</dd> -</dl><a NAME="DCTestResult.addError" ID="DCTestResult.addError"></a> -<h4>DCTestResult.addError</h4> -<b>addError</b>(<i>test, err</i>) -<p> - Public method called if a test errored. -</p><dl> -<dt><i>test</i></dt> -<dd> -Reference to the test object -</dd><dt><i>err</i></dt> -<dd> -The error traceback -</dd> -</dl><a NAME="DCTestResult.addExpectedFailure" ID="DCTestResult.addExpectedFailure"></a> -<h4>DCTestResult.addExpectedFailure</h4> -<b>addExpectedFailure</b>(<i>test, err</i>) -<p> - Public method called if a test failed expected. -</p><dl> -<dt><i>test</i></dt> -<dd> -reference to the test object -</dd><dt><i>err</i></dt> -<dd> -error traceback -</dd> -</dl><a NAME="DCTestResult.addFailure" ID="DCTestResult.addFailure"></a> -<h4>DCTestResult.addFailure</h4> -<b>addFailure</b>(<i>test, err</i>) -<p> - Public method called if a test failed. -</p><dl> -<dt><i>test</i></dt> -<dd> -Reference to the test object -</dd><dt><i>err</i></dt> -<dd> -The error traceback -</dd> -</dl><a NAME="DCTestResult.addSkip" ID="DCTestResult.addSkip"></a> -<h4>DCTestResult.addSkip</h4> -<b>addSkip</b>(<i>test, reason</i>) -<p> - Public method called if a test was skipped. -</p><dl> -<dt><i>test</i></dt> -<dd> -reference to the test object -</dd><dt><i>reason</i></dt> -<dd> -reason for skipping the test (string) -</dd> -</dl><a NAME="DCTestResult.addUnexpectedSuccess" ID="DCTestResult.addUnexpectedSuccess"></a> -<h4>DCTestResult.addUnexpectedSuccess</h4> -<b>addUnexpectedSuccess</b>(<i>test</i>) -<p> - Public method called if a test succeeded expectedly. -</p><dl> -<dt><i>test</i></dt> -<dd> -reference to the test object -</dd> -</dl><a NAME="DCTestResult.startTest" ID="DCTestResult.startTest"></a> -<h4>DCTestResult.startTest</h4> -<b>startTest</b>(<i>test</i>) -<p> - Public method called at the start of a test. -</p><dl> -<dt><i>test</i></dt> -<dd> -Reference to the test object -</dd> -</dl><a NAME="DCTestResult.stopTest" ID="DCTestResult.stopTest"></a> -<h4>DCTestResult.stopTest</h4> -<b>stopTest</b>(<i>test</i>) -<p> - Public method called at the end of a test. -</p><dl> -<dt><i>test</i></dt> -<dd> -Reference to the test object -</dd> -</dl> -<div align="right"><a href="#top">Up</a></div> -<hr /> -</body></html> \ No newline at end of file
--- a/Documentation/Source/eric6.DebugClients.Python2.DebugBase.html Sun Oct 16 14:43:18 2016 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,749 +0,0 @@ -<!DOCTYPE html> -<html><head> -<title>eric6.DebugClients.Python2.DebugBase</title> -<meta charset="UTF-8"> -<style> -body { - background: #EDECE6; - margin: 0em 1em 10em 1em; - color: black; -} - -h1 { color: white; background: #85774A; } -h2 { color: white; background: #85774A; } -h3 { color: white; background: #9D936E; } -h4 { color: white; background: #9D936E; } - -a { color: #BA6D36; } - -</style> -</head> -<body><a NAME="top" ID="top"></a> -<h1>eric6.DebugClients.Python2.DebugBase</h1> -<p> -Module implementing the debug base class. -</p> -<h3>Global Attributes</h3> -<table> -<tr><td>gRecursionLimit</td></tr> -</table> -<h3>Classes</h3> -<table> -<tr> -<td><a href="#DebugBase">DebugBase</a></td> -<td>Class implementing base class of the debugger.</td> -</tr> -</table> -<h3>Functions</h3> -<table> -<tr> -<td><a href="#printerr">printerr</a></td> -<td>Module function used for debugging the debug client.</td> -</tr><tr> -<td><a href="#setRecursionLimit">setRecursionLimit</a></td> -<td>Module function to set the recursion limit.</td> -</tr> -</table> -<hr /><hr /> -<a NAME="DebugBase" ID="DebugBase"></a> -<h2>DebugBase</h2> -<p> - Class implementing base class of the debugger. -</p><p> - Provides simple wrapper methods around bdb for the 'owning' client to - call to step etc. -</p> -<h3>Derived from</h3> -bdb.Bdb -<h3>Class Attributes</h3> -<table> -<tr><td>None</td></tr> -</table> -<h3>Class Methods</h3> -<table> -<tr><td>None</td></tr> -</table> -<h3>Methods</h3> -<table> -<tr> -<td><a href="#DebugBase.__init__">DebugBase</a></td> -<td>Constructor</td> -</tr><tr> -<td><a href="#DebugBase.__do_clear">__do_clear</a></td> -<td>Private method called to clear a temporary breakpoint.</td> -</tr><tr> -<td><a href="#DebugBase.__do_clearWatch">__do_clearWatch</a></td> -<td>Private method called to clear a temporary watch expression.</td> -</tr><tr> -<td><a href="#DebugBase.__effective">__effective</a></td> -<td>Private method to determine, if a watch expression is effective.</td> -</tr><tr> -<td><a href="#DebugBase.__extract_stack">__extract_stack</a></td> -<td>Private member to return a list of stack frames.</td> -</tr><tr> -<td><a href="#DebugBase.__sendCallTrace">__sendCallTrace</a></td> -<td>Private method to send a call/return trace.</td> -</tr><tr> -<td><a href="#DebugBase.__skip_it">__skip_it</a></td> -<td>Private method to filter out debugger files.</td> -</tr><tr> -<td><a href="#DebugBase.break_anywhere">break_anywhere</a></td> -<td>Public method reimplemented from bdb.py to do some special things.</td> -</tr><tr> -<td><a href="#DebugBase.break_here">break_here</a></td> -<td>Public method reimplemented from bdb.py to fix the filename from the frame.</td> -</tr><tr> -<td><a href="#DebugBase.clear_watch">clear_watch</a></td> -<td>Public method to clear a watch expression.</td> -</tr><tr> -<td><a href="#DebugBase.dispatch_exception">dispatch_exception</a></td> -<td>Public method reimplemented from bdb.py to always call user_exception.</td> -</tr><tr> -<td><a href="#DebugBase.dispatch_line">dispatch_line</a></td> -<td>Public method reimplemented from bdb.py to do some special things.</td> -</tr><tr> -<td><a href="#DebugBase.dispatch_return">dispatch_return</a></td> -<td>Public method reimplemented from bdb.py to handle passive mode cleanly.</td> -</tr><tr> -<td><a href="#DebugBase.fix_frame_filename">fix_frame_filename</a></td> -<td>Public method used to fixup the filename for a given frame.</td> -</tr><tr> -<td><a href="#DebugBase.getCurrentFrame">getCurrentFrame</a></td> -<td>Public method to return the current frame.</td> -</tr><tr> -<td><a href="#DebugBase.getEvent">getEvent</a></td> -<td>Protected method to return the last debugger event.</td> -</tr><tr> -<td><a href="#DebugBase.getFrameLocals">getFrameLocals</a></td> -<td>Public method to return the locals dictionary of the current frame or a frame below.</td> -</tr><tr> -<td><a href="#DebugBase.getStack">getStack</a></td> -<td>Public method to get the stack.</td> -</tr><tr> -<td><a href="#DebugBase.get_break">get_break</a></td> -<td>Public method reimplemented from bdb.py to get the first breakpoint of a particular line.</td> -</tr><tr> -<td><a href="#DebugBase.get_watch">get_watch</a></td> -<td>Public method to get a watch expression.</td> -</tr><tr> -<td><a href="#DebugBase.go">go</a></td> -<td>Public method to resume the thread.</td> -</tr><tr> -<td><a href="#DebugBase.isBroken">isBroken</a></td> -<td>Public method to return the broken state of the debugger.</td> -</tr><tr> -<td><a href="#DebugBase.profile">profile</a></td> -<td>Public method used to trace some stuff independent of the debugger trace function.</td> -</tr><tr> -<td><a href="#DebugBase.setRecursionDepth">setRecursionDepth</a></td> -<td>Public method to determine the current recursion depth.</td> -</tr><tr> -<td><a href="#DebugBase.set_continue">set_continue</a></td> -<td>Public method reimplemented from bdb.py to always get informed of exceptions.</td> -</tr><tr> -<td><a href="#DebugBase.set_quit">set_quit</a></td> -<td>Public method to quit.</td> -</tr><tr> -<td><a href="#DebugBase.set_trace">set_trace</a></td> -<td>Public method reimplemented from bdb.py to do some special setup.</td> -</tr><tr> -<td><a href="#DebugBase.set_watch">set_watch</a></td> -<td>Public method to set a watch expression.</td> -</tr><tr> -<td><a href="#DebugBase.step">step</a></td> -<td>Public method to perform a step operation in this thread.</td> -</tr><tr> -<td><a href="#DebugBase.stepOut">stepOut</a></td> -<td>Public method to perform a step out of the current call.</td> -</tr><tr> -<td><a href="#DebugBase.stop_here">stop_here</a></td> -<td>Public method reimplemented to filter out debugger files.</td> -</tr><tr> -<td><a href="#DebugBase.storeFrameLocals">storeFrameLocals</a></td> -<td>Public method to store the locals into the frame, so an access to frame.f_locals returns the last data.</td> -</tr><tr> -<td><a href="#DebugBase.trace_dispatch">trace_dispatch</a></td> -<td>Public method reimplemented from bdb.py to do some special things.</td> -</tr><tr> -<td><a href="#DebugBase.user_exception">user_exception</a></td> -<td>Public method reimplemented to report an exception to the debug server.</td> -</tr><tr> -<td><a href="#DebugBase.user_line">user_line</a></td> -<td>Public method reimplemented to handle the program about to execute a particular line.</td> -</tr><tr> -<td><a href="#DebugBase.user_return">user_return</a></td> -<td>Public method reimplemented to report program termination to the debug server.</td> -</tr> -</table> -<h3>Static Methods</h3> -<table> -<tr><td>None</td></tr> -</table> -<a NAME="DebugBase.__init__" ID="DebugBase.__init__"></a> -<h4>DebugBase (Constructor)</h4> -<b>DebugBase</b>(<i>dbgClient</i>) -<p> - Constructor -</p><dl> -<dt><i>dbgClient</i></dt> -<dd> -the owning client -</dd> -</dl><a NAME="DebugBase.__do_clear" ID="DebugBase.__do_clear"></a> -<h4>DebugBase.__do_clear</h4> -<b>__do_clear</b>(<i>filename, lineno</i>) -<p> - Private method called to clear a temporary breakpoint. -</p><dl> -<dt><i>filename</i></dt> -<dd> -name of the file the bp belongs to -</dd><dt><i>lineno</i></dt> -<dd> -linenumber of the bp -</dd> -</dl><a NAME="DebugBase.__do_clearWatch" ID="DebugBase.__do_clearWatch"></a> -<h4>DebugBase.__do_clearWatch</h4> -<b>__do_clearWatch</b>(<i>cond</i>) -<p> - Private method called to clear a temporary watch expression. -</p><dl> -<dt><i>cond</i></dt> -<dd> -expression of the watch expression to be cleared (string) -</dd> -</dl><a NAME="DebugBase.__effective" ID="DebugBase.__effective"></a> -<h4>DebugBase.__effective</h4> -<b>__effective</b>(<i>frame</i>) -<p> - Private method to determine, if a watch expression is effective. -</p><dl> -<dt><i>frame</i></dt> -<dd> -the current execution frame -</dd> -</dl><dl> -<dt>Returns:</dt> -<dd> -tuple of watch expression and a flag to indicate, that a - temporary watch expression may be deleted (bdb.Breakpoint, boolean) -</dd> -</dl><a NAME="DebugBase.__extract_stack" ID="DebugBase.__extract_stack"></a> -<h4>DebugBase.__extract_stack</h4> -<b>__extract_stack</b>(<i>exctb</i>) -<p> - Private member to return a list of stack frames. -</p><dl> -<dt><i>exctb</i></dt> -<dd> -exception traceback -</dd> -</dl><dl> -<dt>Returns:</dt> -<dd> -list of stack frames -</dd> -</dl><a NAME="DebugBase.__sendCallTrace" ID="DebugBase.__sendCallTrace"></a> -<h4>DebugBase.__sendCallTrace</h4> -<b>__sendCallTrace</b>(<i>event, fromFrame, toFrame</i>) -<p> - Private method to send a call/return trace. -</p><dl> -<dt><i>event</i></dt> -<dd> -trace event (string) -</dd><dt><i>fromFrame</i></dt> -<dd> -originating frame (frame) -</dd><dt><i>toFrame</i></dt> -<dd> -destination frame (frame) -</dd> -</dl><a NAME="DebugBase.__skip_it" ID="DebugBase.__skip_it"></a> -<h4>DebugBase.__skip_it</h4> -<b>__skip_it</b>(<i>frame</i>) -<p> - Private method to filter out debugger files. -</p><p> - Tracing is turned off for files that are part of the - debugger that are called from the application being debugged. -</p><dl> -<dt><i>frame</i></dt> -<dd> -the frame object -</dd> -</dl><dl> -<dt>Returns:</dt> -<dd> -flag indicating whether the debugger should skip this frame -</dd> -</dl><a NAME="DebugBase.break_anywhere" ID="DebugBase.break_anywhere"></a> -<h4>DebugBase.break_anywhere</h4> -<b>break_anywhere</b>(<i>frame</i>) -<p> - Public method reimplemented from bdb.py to do some special things. -</p><p> - These speciality is to fix the filename from the frame - (see fix_frame_filename for more info). -</p><dl> -<dt><i>frame</i></dt> -<dd> -the frame object -</dd> -</dl><dl> -<dt>Returns:</dt> -<dd> -flag indicating the break status (boolean) -</dd> -</dl><a NAME="DebugBase.break_here" ID="DebugBase.break_here"></a> -<h4>DebugBase.break_here</h4> -<b>break_here</b>(<i>frame</i>) -<p> - Public method reimplemented from bdb.py to fix the filename from the - frame. -</p><p> - See fix_frame_filename for more info. -</p><dl> -<dt><i>frame</i></dt> -<dd> -the frame object -</dd> -</dl><dl> -<dt>Returns:</dt> -<dd> -flag indicating the break status (boolean) -</dd> -</dl><a NAME="DebugBase.clear_watch" ID="DebugBase.clear_watch"></a> -<h4>DebugBase.clear_watch</h4> -<b>clear_watch</b>(<i>cond</i>) -<p> - Public method to clear a watch expression. -</p><dl> -<dt><i>cond</i></dt> -<dd> -expression of the watch expression to be cleared (string) -</dd> -</dl><a NAME="DebugBase.dispatch_exception" ID="DebugBase.dispatch_exception"></a> -<h4>DebugBase.dispatch_exception</h4> -<b>dispatch_exception</b>(<i>frame, arg</i>) -<p> - Public method reimplemented from bdb.py to always call user_exception. -</p><dl> -<dt><i>frame</i></dt> -<dd> -The current stack frame. -</dd><dt><i>arg</i></dt> -<dd> -The arguments -</dd> -</dl><dl> -<dt>Returns:</dt> -<dd> -local trace function -</dd> -</dl><dl> -<dt>Raises <b>bdb.BdbQuit</b>:</dt> -<dd> -raised to indicate the end of the debug session -</dd> -</dl><a NAME="DebugBase.dispatch_line" ID="DebugBase.dispatch_line"></a> -<h4>DebugBase.dispatch_line</h4> -<b>dispatch_line</b>(<i>frame</i>) -<p> - Public method reimplemented from bdb.py to do some special things. -</p><p> - This speciality is to check the connection to the debug server - for new events (i.e. new breakpoints) while we are going through - the code. -</p><dl> -<dt><i>frame</i></dt> -<dd> -The current stack frame. -</dd> -</dl><dl> -<dt>Returns:</dt> -<dd> -local trace function -</dd> -</dl><dl> -<dt>Raises <b>bdb.BdbQuit</b>:</dt> -<dd> -raised to indicate the end of the debug session -</dd> -</dl><a NAME="DebugBase.dispatch_return" ID="DebugBase.dispatch_return"></a> -<h4>DebugBase.dispatch_return</h4> -<b>dispatch_return</b>(<i>frame, arg</i>) -<p> - Public method reimplemented from bdb.py to handle passive mode cleanly. -</p><dl> -<dt><i>frame</i></dt> -<dd> -The current stack frame. -</dd><dt><i>arg</i></dt> -<dd> -The arguments -</dd> -</dl><dl> -<dt>Returns:</dt> -<dd> -local trace function -</dd> -</dl><dl> -<dt>Raises <b>bdb.BdbQuit</b>:</dt> -<dd> -raised to indicate the end of the debug session -</dd> -</dl><a NAME="DebugBase.fix_frame_filename" ID="DebugBase.fix_frame_filename"></a> -<h4>DebugBase.fix_frame_filename</h4> -<b>fix_frame_filename</b>(<i>frame</i>) -<p> - Public method used to fixup the filename for a given frame. -</p><p> - The logic employed here is that if a module was loaded - from a .pyc file, then the correct .py to operate with - should be in the same path as the .pyc. The reason this - logic is needed is that when a .pyc file is generated, the - filename embedded and thus what is readable in the code object - of the frame object is the fully qualified filepath when the - pyc is generated. If files are moved from machine to machine - this can break debugging as the .pyc will refer to the .py - on the original machine. Another case might be sharing - code over a network... This logic deals with that. -</p><dl> -<dt><i>frame</i></dt> -<dd> -the frame object -</dd> -</dl><dl> -<dt>Returns:</dt> -<dd> -fixed up file name (string) -</dd> -</dl><a NAME="DebugBase.getCurrentFrame" ID="DebugBase.getCurrentFrame"></a> -<h4>DebugBase.getCurrentFrame</h4> -<b>getCurrentFrame</b>(<i></i>) -<p> - Public method to return the current frame. -</p><dl> -<dt>Returns:</dt> -<dd> -the current frame -</dd> -</dl><a NAME="DebugBase.getEvent" ID="DebugBase.getEvent"></a> -<h4>DebugBase.getEvent</h4> -<b>getEvent</b>(<i></i>) -<p> - Protected method to return the last debugger event. -</p><dl> -<dt>Returns:</dt> -<dd> -last debugger event (string) -</dd> -</dl><a NAME="DebugBase.getFrameLocals" ID="DebugBase.getFrameLocals"></a> -<h4>DebugBase.getFrameLocals</h4> -<b>getFrameLocals</b>(<i>frmnr=0</i>) -<p> - Public method to return the locals dictionary of the current frame - or a frame below. -</p><dl> -<dt><i>frmnr=</i></dt> -<dd> -distance of frame to get locals dictionary of. 0 is - the current frame (int) -</dd> -</dl><dl> -<dt>Returns:</dt> -<dd> -locals dictionary of the frame -</dd> -</dl><a NAME="DebugBase.getStack" ID="DebugBase.getStack"></a> -<h4>DebugBase.getStack</h4> -<b>getStack</b>(<i></i>) -<p> - Public method to get the stack. -</p><dl> -<dt>Returns:</dt> -<dd> -list of lists with file name (string), line number (integer) - and function name (string) -</dd> -</dl><a NAME="DebugBase.get_break" ID="DebugBase.get_break"></a> -<h4>DebugBase.get_break</h4> -<b>get_break</b>(<i>filename, lineno</i>) -<p> - Public method reimplemented from bdb.py to get the first breakpoint of - a particular line. -</p><p> - Because eric6 supports only one breakpoint per line, this overwritten - method will return this one and only breakpoint. -</p><dl> -<dt><i>filename</i></dt> -<dd> -file name of the bp to retrieve (string) -</dd><dt><i>lineno</i></dt> -<dd> -line number of the bp to retrieve (integer) -</dd> -</dl><dl> -<dt>Returns:</dt> -<dd> -breakpoint or None, if there is no bp -</dd> -</dl><a NAME="DebugBase.get_watch" ID="DebugBase.get_watch"></a> -<h4>DebugBase.get_watch</h4> -<b>get_watch</b>(<i>cond</i>) -<p> - Public method to get a watch expression. -</p><dl> -<dt><i>cond</i></dt> -<dd> -expression of the watch expression to be cleared (string) -</dd> -</dl><dl> -<dt>Returns:</dt> -<dd> -reference to the watch point -</dd> -</dl><a NAME="DebugBase.go" ID="DebugBase.go"></a> -<h4>DebugBase.go</h4> -<b>go</b>(<i>special</i>) -<p> - Public method to resume the thread. -</p><p> - It resumes the thread stopping only at breakpoints or exceptions. -</p><dl> -<dt><i>special</i></dt> -<dd> -flag indicating a special continue operation -</dd> -</dl><a NAME="DebugBase.isBroken" ID="DebugBase.isBroken"></a> -<h4>DebugBase.isBroken</h4> -<b>isBroken</b>(<i></i>) -<p> - Public method to return the broken state of the debugger. -</p><dl> -<dt>Returns:</dt> -<dd> -flag indicating the broken state (boolean) -</dd> -</dl><a NAME="DebugBase.profile" ID="DebugBase.profile"></a> -<h4>DebugBase.profile</h4> -<b>profile</b>(<i>frame, event, arg</i>) -<p> - Public method used to trace some stuff independent of the debugger - trace function. -</p><dl> -<dt><i>frame</i></dt> -<dd> -current stack frame. -</dd><dt><i>event</i></dt> -<dd> -trace event (string) -</dd><dt><i>arg</i></dt> -<dd> -arguments -</dd> -</dl><dl> -<dt>Raises <b>RuntimeError</b>:</dt> -<dd> -raised to indicate too many recursions -</dd> -</dl><a NAME="DebugBase.setRecursionDepth" ID="DebugBase.setRecursionDepth"></a> -<h4>DebugBase.setRecursionDepth</h4> -<b>setRecursionDepth</b>(<i>frame</i>) -<p> - Public method to determine the current recursion depth. -</p><dl> -<dt><i>frame</i></dt> -<dd> -The current stack frame. -</dd> -</dl><a NAME="DebugBase.set_continue" ID="DebugBase.set_continue"></a> -<h4>DebugBase.set_continue</h4> -<b>set_continue</b>(<i>special</i>) -<p> - Public method reimplemented from bdb.py to always get informed of - exceptions. -</p><dl> -<dt><i>special</i></dt> -<dd> -flag indicating a special continue operation -</dd> -</dl><a NAME="DebugBase.set_quit" ID="DebugBase.set_quit"></a> -<h4>DebugBase.set_quit</h4> -<b>set_quit</b>(<i></i>) -<p> - Public method to quit. -</p><p> - It wraps call to bdb to clear the current frame properly. -</p><a NAME="DebugBase.set_trace" ID="DebugBase.set_trace"></a> -<h4>DebugBase.set_trace</h4> -<b>set_trace</b>(<i>frame=None</i>) -<p> - Public method reimplemented from bdb.py to do some special setup. -</p><dl> -<dt><i>frame</i></dt> -<dd> -frame to start debugging from -</dd> -</dl><a NAME="DebugBase.set_watch" ID="DebugBase.set_watch"></a> -<h4>DebugBase.set_watch</h4> -<b>set_watch</b>(<i>cond, temporary=False</i>) -<p> - Public method to set a watch expression. -</p><dl> -<dt><i>cond</i></dt> -<dd> -expression of the watch expression (string) -</dd><dt><i>temporary</i></dt> -<dd> -flag indicating a temporary watch expression (boolean) -</dd> -</dl><a NAME="DebugBase.step" ID="DebugBase.step"></a> -<h4>DebugBase.step</h4> -<b>step</b>(<i>traceMode</i>) -<p> - Public method to perform a step operation in this thread. -</p><dl> -<dt><i>traceMode</i></dt> -<dd> -If it is True, then the step is a step into, - otherwise it is a step over. -</dd> -</dl><a NAME="DebugBase.stepOut" ID="DebugBase.stepOut"></a> -<h4>DebugBase.stepOut</h4> -<b>stepOut</b>(<i></i>) -<p> - Public method to perform a step out of the current call. -</p><a NAME="DebugBase.stop_here" ID="DebugBase.stop_here"></a> -<h4>DebugBase.stop_here</h4> -<b>stop_here</b>(<i>frame</i>) -<p> - Public method reimplemented to filter out debugger files. -</p><p> - Tracing is turned off for files that are part of the - debugger that are called from the application being debugged. -</p><dl> -<dt><i>frame</i></dt> -<dd> -the frame object -</dd> -</dl><dl> -<dt>Returns:</dt> -<dd> -flag indicating whether the debugger should stop here -</dd> -</dl><a NAME="DebugBase.storeFrameLocals" ID="DebugBase.storeFrameLocals"></a> -<h4>DebugBase.storeFrameLocals</h4> -<b>storeFrameLocals</b>(<i>frmnr=0</i>) -<p> - Public method to store the locals into the frame, so an access to - frame.f_locals returns the last data. -</p><dl> -<dt><i>frmnr=</i></dt> -<dd> -distance of frame to store locals dictionary to. 0 is - the current frame (int) -</dd> -</dl><a NAME="DebugBase.trace_dispatch" ID="DebugBase.trace_dispatch"></a> -<h4>DebugBase.trace_dispatch</h4> -<b>trace_dispatch</b>(<i>frame, event, arg</i>) -<p> - Public method reimplemented from bdb.py to do some special things. -</p><p> - This specialty is to check the connection to the debug server - for new events (i.e. new breakpoints) while we are going through - the code. -</p><dl> -<dt><i>frame</i></dt> -<dd> -The current stack frame. -</dd><dt><i>event</i></dt> -<dd> -The trace event (string) -</dd><dt><i>arg</i></dt> -<dd> -The arguments -</dd> -</dl><dl> -<dt>Returns:</dt> -<dd> -local trace function -</dd> -</dl><a NAME="DebugBase.user_exception" ID="DebugBase.user_exception"></a> -<h4>DebugBase.user_exception</h4> -<b>user_exception</b>(<i>frame, (exctype, excval, exctb), unhandled=0</i>) -<p> - Public method reimplemented to report an exception to the debug server. -</p><dl> -<dt><i>frame</i></dt> -<dd> -the frame object -</dd><dt><i>exctype</i></dt> -<dd> -the type of the exception -</dd><dt><i>excval</i></dt> -<dd> -data about the exception -</dd><dt><i>exctb</i></dt> -<dd> -traceback for the exception -</dd><dt><i>unhandled</i></dt> -<dd> -flag indicating an uncaught exception -</dd> -</dl><a NAME="DebugBase.user_line" ID="DebugBase.user_line"></a> -<h4>DebugBase.user_line</h4> -<b>user_line</b>(<i>frame</i>) -<p> - Public method reimplemented to handle the program about to execute a - particular line. -</p><dl> -<dt><i>frame</i></dt> -<dd> -the frame object -</dd> -</dl><a NAME="DebugBase.user_return" ID="DebugBase.user_return"></a> -<h4>DebugBase.user_return</h4> -<b>user_return</b>(<i>frame, retval</i>) -<p> - Public method reimplemented to report program termination to the - debug server. -</p><dl> -<dt><i>frame</i></dt> -<dd> -the frame object -</dd><dt><i>retval</i></dt> -<dd> -the return value of the program -</dd> -</dl> -<div align="right"><a href="#top">Up</a></div> -<hr /><hr /> -<a NAME="printerr" ID="printerr"></a> -<h2>printerr</h2> -<b>printerr</b>(<i>s</i>) -<p> - Module function used for debugging the debug client. -</p><dl> -<dt><i>s</i></dt> -<dd> -data to be printed -</dd> -</dl> -<div align="right"><a href="#top">Up</a></div> -<hr /><hr /> -<a NAME="setRecursionLimit" ID="setRecursionLimit"></a> -<h2>setRecursionLimit</h2> -<b>setRecursionLimit</b>(<i>limit</i>) -<p> - Module function to set the recursion limit. -</p><dl> -<dt><i>limit</i></dt> -<dd> -recursion limit (integer) -</dd> -</dl> -<div align="right"><a href="#top">Up</a></div> -<hr /> -</body></html> \ No newline at end of file
--- a/Documentation/Source/eric6.DebugClients.Python2.DebugClient.html Sun Oct 16 14:43:18 2016 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,79 +0,0 @@ -<!DOCTYPE html> -<html><head> -<title>eric6.DebugClients.Python2.DebugClient</title> -<meta charset="UTF-8"> -<style> -body { - background: #EDECE6; - margin: 0em 1em 10em 1em; - color: black; -} - -h1 { color: white; background: #85774A; } -h2 { color: white; background: #85774A; } -h3 { color: white; background: #9D936E; } -h4 { color: white; background: #9D936E; } - -a { color: #BA6D36; } - -</style> -</head> -<body><a NAME="top" ID="top"></a> -<h1>eric6.DebugClients.Python2.DebugClient</h1> -<p> -Module implementing a non-threaded variant of the debug client. -</p> -<h3>Global Attributes</h3> -<table> -<tr><td>None</td></tr> -</table> -<h3>Classes</h3> -<table> -<tr> -<td><a href="#DebugClient">DebugClient</a></td> -<td>Class implementing the client side of the debugger.</td> -</tr> -</table> -<h3>Functions</h3> -<table> -<tr><td>None</td></tr> -</table> -<hr /><hr /> -<a NAME="DebugClient" ID="DebugClient"></a> -<h2>DebugClient</h2> -<p> - Class implementing the client side of the debugger. -</p><p> - This variant of the debugger implements the standard debugger client - by subclassing all relevant base classes. -</p> -<h3>Derived from</h3> -DebugClientBase.DebugClientBase, DebugBase -<h3>Class Attributes</h3> -<table> -<tr><td>debugClient</td></tr> -</table> -<h3>Class Methods</h3> -<table> -<tr><td>None</td></tr> -</table> -<h3>Methods</h3> -<table> -<tr> -<td><a href="#DebugClient.__init__">DebugClient</a></td> -<td>Constructor</td> -</tr> -</table> -<h3>Static Methods</h3> -<table> -<tr><td>None</td></tr> -</table> -<a NAME="DebugClient.__init__" ID="DebugClient.__init__"></a> -<h4>DebugClient (Constructor)</h4> -<b>DebugClient</b>(<i></i>) -<p> - Constructor -</p> -<div align="right"><a href="#top">Up</a></div> -<hr /> -</body></html> \ No newline at end of file
--- a/Documentation/Source/eric6.DebugClients.Python2.DebugClientBase.html Sun Oct 16 14:43:18 2016 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1028 +0,0 @@ -<!DOCTYPE html> -<html><head> -<title>eric6.DebugClients.Python2.DebugClientBase</title> -<meta charset="UTF-8"> -<style> -body { - background: #EDECE6; - margin: 0em 1em 10em 1em; - color: black; -} - -h1 { color: white; background: #85774A; } -h2 { color: white; background: #85774A; } -h3 { color: white; background: #9D936E; } -h4 { color: white; background: #9D936E; } - -a { color: #BA6D36; } - -</style> -</head> -<body><a NAME="top" ID="top"></a> -<h1>eric6.DebugClients.Python2.DebugClientBase</h1> -<p> -Module implementing a debug client base class. -</p> -<h3>Global Attributes</h3> -<table> -<tr><td>DebugClientInstance</td></tr> -</table> -<h3>Classes</h3> -<table> -<tr> -<td><a href="#DebugClientBase">DebugClientBase</a></td> -<td>Class implementing the client side of the debugger.</td> -</tr> -</table> -<h3>Functions</h3> -<table> -<tr> -<td><a href="#DebugClientClose">DebugClientClose</a></td> -<td>Replacement for the standard os.close(fd).</td> -</tr><tr> -<td><a href="#DebugClientFork">DebugClientFork</a></td> -<td>Replacement for the standard os.fork().</td> -</tr><tr> -<td><a href="#DebugClientInput">DebugClientInput</a></td> -<td>Replacement for the standard input builtin.</td> -</tr><tr> -<td><a href="#DebugClientRawInput">DebugClientRawInput</a></td> -<td>Replacement for the standard raw_input builtin.</td> -</tr><tr> -<td><a href="#DebugClientSetRecursionLimit">DebugClientSetRecursionLimit</a></td> -<td>Replacement for the standard sys.setrecursionlimit(limit).</td> -</tr> -</table> -<hr /><hr /> -<a NAME="DebugClientBase" ID="DebugClientBase"></a> -<h2>DebugClientBase</h2> -<p> - Class implementing the client side of the debugger. -</p><p> - It provides access to the Python interpeter from a debugger running in - another process. -</p><p> - The protocol between the debugger and the client is based on JSONRPC 2.0 - PDUs. Each one is sent on a single line, i.e. commands or responses are - separated by a linefeed character. -</p><p> - If the debugger closes the session there is no response from the client. - The client may close the session at any time as a result of the script - being debugged closing or crashing. -</p><p> - <b>Note</b>: This class is meant to be subclassed by individual - DebugClient classes. Do not instantiate it directly. -</p> -<h3>Derived from</h3> -object -<h3>Class Attributes</h3> -<table> -<tr><td>Indicators</td></tr><tr><td>clientCapabilities</td></tr> -</table> -<h3>Class Methods</h3> -<table> -<tr><td>None</td></tr> -</table> -<h3>Methods</h3> -<table> -<tr> -<td><a href="#DebugClientBase.__init__">DebugClientBase</a></td> -<td>Constructor</td> -</tr><tr> -<td><a href="#DebugClientBase.__clientCapabilities">__clientCapabilities</a></td> -<td>Private method to determine the clients capabilities.</td> -</tr><tr> -<td><a href="#DebugClientBase.__completionList">__completionList</a></td> -<td>Private slot to handle the request for a commandline completion list.</td> -</tr><tr> -<td><a href="#DebugClientBase.__dumpThreadList">__dumpThreadList</a></td> -<td>Private method to send the list of threads.</td> -</tr><tr> -<td><a href="#DebugClientBase.__dumpVariable">__dumpVariable</a></td> -<td>Private method to return the variables of a frame to the debug server.</td> -</tr><tr> -<td><a href="#DebugClientBase.__dumpVariables">__dumpVariables</a></td> -<td>Private method to return the variables of a frame to the debug server.</td> -</tr><tr> -<td><a href="#DebugClientBase.__extractIndicators">__extractIndicators</a></td> -<td>Private method to extract the indicator string from a variable text.</td> -</tr><tr> -<td><a href="#DebugClientBase.__formatQtVariable">__formatQtVariable</a></td> -<td>Private method to produce a formatted output of a simple Qt4/Qt5 type.</td> -</tr><tr> -<td><a href="#DebugClientBase.__formatVariablesList">__formatVariablesList</a></td> -<td>Private method to produce a formated variables list.</td> -</tr><tr> -<td><a href="#DebugClientBase.__generateFilterObjects">__generateFilterObjects</a></td> -<td>Private slot to convert a filter string to a list of filter objects.</td> -</tr><tr> -<td><a href="#DebugClientBase.__getCompletionList">__getCompletionList</a></td> -<td>Private method to create a completions list.</td> -</tr><tr> -<td><a href="#DebugClientBase.__getSysPath">__getSysPath</a></td> -<td>Private slot to calculate a path list including the PYTHONPATH environment variable.</td> -</tr><tr> -<td><a href="#DebugClientBase.__interact">__interact</a></td> -<td>Private method to interact with the debugger.</td> -</tr><tr> -<td><a href="#DebugClientBase.__interceptSignals">__interceptSignals</a></td> -<td>Private method to intercept common signals.</td> -</tr><tr> -<td><a href="#DebugClientBase.__resolveHost">__resolveHost</a></td> -<td>Private method to resolve a hostname to an IP address.</td> -</tr><tr> -<td><a href="#DebugClientBase.__setCoding">__setCoding</a></td> -<td>Private method to set the coding used by a python file.</td> -</tr><tr> -<td><a href="#DebugClientBase.__signalHandler">__signalHandler</a></td> -<td>Private method to handle signals.</td> -</tr><tr> -<td><a href="#DebugClientBase.__unhandled_exception">__unhandled_exception</a></td> -<td>Private method called to report an uncaught exception.</td> -</tr><tr> -<td><a href="#DebugClientBase.absPath">absPath</a></td> -<td>Public method to convert a filename to an absolute name.</td> -</tr><tr> -<td><a href="#DebugClientBase.attachThread">attachThread</a></td> -<td>Public method to setup a thread for DebugClient to debug.</td> -</tr><tr> -<td><a href="#DebugClientBase.close">close</a></td> -<td>Public method implementing a close method as a replacement for os.close().</td> -</tr><tr> -<td><a href="#DebugClientBase.connectDebugger">connectDebugger</a></td> -<td>Public method to establish a session with the debugger.</td> -</tr><tr> -<td><a href="#DebugClientBase.eventLoop">eventLoop</a></td> -<td>Public method implementing our event loop.</td> -</tr><tr> -<td><a href="#DebugClientBase.eventPoll">eventPoll</a></td> -<td>Public method to poll for events like 'set break point'.</td> -</tr><tr> -<td><a href="#DebugClientBase.fork">fork</a></td> -<td>Public method implementing a fork routine deciding which branch to follow.</td> -</tr><tr> -<td><a href="#DebugClientBase.getCoding">getCoding</a></td> -<td>Public method to return the current coding.</td> -</tr><tr> -<td><a href="#DebugClientBase.getRunning">getRunning</a></td> -<td>Public method to return the main script we are currently running.</td> -</tr><tr> -<td><a href="#DebugClientBase.handleJsonCommand">handleJsonCommand</a></td> -<td>Public method to handle a command serialized as a JSON string.</td> -</tr><tr> -<td><a href="#DebugClientBase.handleLine">handleLine</a></td> -<td>Public method to handle the receipt of a complete line.</td> -</tr><tr> -<td><a href="#DebugClientBase.input">input</a></td> -<td>Public method to implement input() using the event loop.</td> -</tr><tr> -<td><a href="#DebugClientBase.main">main</a></td> -<td>Public method implementing the main method.</td> -</tr><tr> -<td><a href="#DebugClientBase.progTerminated">progTerminated</a></td> -<td>Public method to tell the debugger that the program has terminated.</td> -</tr><tr> -<td><a href="#DebugClientBase.raw_input">raw_input</a></td> -<td>Public method to implement raw_input() using the event loop.</td> -</tr><tr> -<td><a href="#DebugClientBase.readReady">readReady</a></td> -<td>Public method called when there is data ready to be read.</td> -</tr><tr> -<td><a href="#DebugClientBase.run_call">run_call</a></td> -<td>Public method used to start the remote debugger and call a function.</td> -</tr><tr> -<td><a href="#DebugClientBase.sendCallTrace">sendCallTrace</a></td> -<td>Public method to send a call trace entry.</td> -</tr><tr> -<td><a href="#DebugClientBase.sendClearTemporaryBreakpoint">sendClearTemporaryBreakpoint</a></td> -<td>Public method to signal the deletion of a temporary breakpoint.</td> -</tr><tr> -<td><a href="#DebugClientBase.sendClearTemporaryWatch">sendClearTemporaryWatch</a></td> -<td>Public method to signal the deletion of a temporary watch expression.</td> -</tr><tr> -<td><a href="#DebugClientBase.sendException">sendException</a></td> -<td>Public method to send information for an exception.</td> -</tr><tr> -<td><a href="#DebugClientBase.sendJsonCommand">sendJsonCommand</a></td> -<td>Public method to send a single command or response to the IDE.</td> -</tr><tr> -<td><a href="#DebugClientBase.sendPassiveStartup">sendPassiveStartup</a></td> -<td>Public method to send the passive start information.</td> -</tr><tr> -<td><a href="#DebugClientBase.sendResponseLine">sendResponseLine</a></td> -<td>Public method to send the current call stack.</td> -</tr><tr> -<td><a href="#DebugClientBase.sendSyntaxError">sendSyntaxError</a></td> -<td>Public method to send information for a syntax error.</td> -</tr><tr> -<td><a href="#DebugClientBase.sessionClose">sessionClose</a></td> -<td>Public method to close the session with the debugger and optionally terminate.</td> -</tr><tr> -<td><a href="#DebugClientBase.shouldSkip">shouldSkip</a></td> -<td>Public method to check if a file should be skipped.</td> -</tr><tr> -<td><a href="#DebugClientBase.startDebugger">startDebugger</a></td> -<td>Public method used to start the remote debugger.</td> -</tr><tr> -<td><a href="#DebugClientBase.startProgInDebugger">startProgInDebugger</a></td> -<td>Public method used to start the remote debugger.</td> -</tr><tr> -<td><a href="#DebugClientBase.writeReady">writeReady</a></td> -<td>Public method called when we are ready to write data.</td> -</tr> -</table> -<h3>Static Methods</h3> -<table> -<tr><td>None</td></tr> -</table> -<a NAME="DebugClientBase.__init__" ID="DebugClientBase.__init__"></a> -<h4>DebugClientBase (Constructor)</h4> -<b>DebugClientBase</b>(<i></i>) -<p> - Constructor -</p><a NAME="DebugClientBase.__clientCapabilities" ID="DebugClientBase.__clientCapabilities"></a> -<h4>DebugClientBase.__clientCapabilities</h4> -<b>__clientCapabilities</b>(<i></i>) -<p> - Private method to determine the clients capabilities. -</p><dl> -<dt>Returns:</dt> -<dd> -client capabilities (integer) -</dd> -</dl><a NAME="DebugClientBase.__completionList" ID="DebugClientBase.__completionList"></a> -<h4>DebugClientBase.__completionList</h4> -<b>__completionList</b>(<i>text</i>) -<p> - Private slot to handle the request for a commandline completion list. -</p><dl> -<dt><i>text</i></dt> -<dd> -the text to be completed (string) -</dd> -</dl><a NAME="DebugClientBase.__dumpThreadList" ID="DebugClientBase.__dumpThreadList"></a> -<h4>DebugClientBase.__dumpThreadList</h4> -<b>__dumpThreadList</b>(<i></i>) -<p> - Private method to send the list of threads. -</p><a NAME="DebugClientBase.__dumpVariable" ID="DebugClientBase.__dumpVariable"></a> -<h4>DebugClientBase.__dumpVariable</h4> -<b>__dumpVariable</b>(<i>var, frmnr, scope, filter</i>) -<p> - Private method to return the variables of a frame to the debug server. -</p><dl> -<dt><i>var</i></dt> -<dd> -list encoded name of the requested variable - (list of strings) -</dd><dt><i>frmnr</i></dt> -<dd> -distance of frame reported on. 0 is the current frame - (int) -</dd><dt><i>scope</i></dt> -<dd> -1 to report global variables, 0 for local variables (int) -</dd><dt><i>filter</i></dt> -<dd> -the indices of variable types to be filtered - (list of int) -</dd> -</dl><a NAME="DebugClientBase.__dumpVariables" ID="DebugClientBase.__dumpVariables"></a> -<h4>DebugClientBase.__dumpVariables</h4> -<b>__dumpVariables</b>(<i>frmnr, scope, filter</i>) -<p> - Private method to return the variables of a frame to the debug server. -</p><dl> -<dt><i>frmnr</i></dt> -<dd> -distance of frame reported on. 0 is the current frame - (int) -</dd><dt><i>scope</i></dt> -<dd> -1 to report global variables, 0 for local variables (int) -</dd><dt><i>filter</i></dt> -<dd> -the indices of variable types to be filtered - (list of int) -</dd> -</dl><a NAME="DebugClientBase.__extractIndicators" ID="DebugClientBase.__extractIndicators"></a> -<h4>DebugClientBase.__extractIndicators</h4> -<b>__extractIndicators</b>(<i>var</i>) -<p> - Private method to extract the indicator string from a variable text. -</p><dl> -<dt><i>var</i> (str)</dt> -<dd> -variable text -</dd> -</dl><dl> -<dt>Returns:</dt> -<dd> -tuple containing the variable text without indicators and the - indicator string -</dd> -</dl><dl> -<dt>Return Type:</dt> -<dd> -tuple of two str -</dd> -</dl><a NAME="DebugClientBase.__formatQtVariable" ID="DebugClientBase.__formatQtVariable"></a> -<h4>DebugClientBase.__formatQtVariable</h4> -<b>__formatQtVariable</b>(<i>value, qttype</i>) -<p> - Private method to produce a formatted output of a simple Qt4/Qt5 type. -</p><dl> -<dt><i>value</i></dt> -<dd> -variable to be formatted -</dd><dt><i>qttype</i></dt> -<dd> -type of the Qt variable to be formatted (string) -</dd> -</dl><dl> -<dt>Returns:</dt> -<dd> -A tuple consisting of a list of formatted variables. Each - variable entry is a tuple of three elements, the variable name, - its type and value. -</dd> -</dl><a NAME="DebugClientBase.__formatVariablesList" ID="DebugClientBase.__formatVariablesList"></a> -<h4>DebugClientBase.__formatVariablesList</h4> -<b>__formatVariablesList</b>(<i>keylist, dict, scope, filter=[], formatSequences=False</i>) -<p> - Private method to produce a formated variables list. -</p><p> - The dictionary passed in to it is scanned. Variables are - only added to the list, if their type is not contained - in the filter list and their name doesn't match any of - the filter expressions. The formated variables list (a list of tuples - of 3 values) is returned. -</p><dl> -<dt><i>keylist</i></dt> -<dd> -keys of the dictionary -</dd><dt><i>dict</i></dt> -<dd> -the dictionary to be scanned -</dd><dt><i>scope</i></dt> -<dd> -1 to filter using the globals filter, 0 using the locals - filter (int). - Variables are only added to the list, if their name do not match - any of the filter expressions. -</dd><dt><i>filter</i></dt> -<dd> -the indices of variable types to be filtered. Variables - are only added to the list, if their type is not contained in the - filter list. -</dd><dt><i>formatSequences</i></dt> -<dd> -flag indicating, that sequence or dictionary - variables should be formatted. If it is 0 (or false), just the - number of items contained in these variables is returned. (boolean) -</dd> -</dl><dl> -<dt>Returns:</dt> -<dd> -A tuple consisting of a list of formatted variables. Each - variable entry is a tuple of three elements, the variable name, - its type and value. -</dd> -</dl><a NAME="DebugClientBase.__generateFilterObjects" ID="DebugClientBase.__generateFilterObjects"></a> -<h4>DebugClientBase.__generateFilterObjects</h4> -<b>__generateFilterObjects</b>(<i>scope, filterString</i>) -<p> - Private slot to convert a filter string to a list of filter objects. -</p><dl> -<dt><i>scope</i></dt> -<dd> -1 to generate filter for global variables, 0 for local - variables (int) -</dd><dt><i>filterString</i></dt> -<dd> -string of filter patterns separated by ';' -</dd> -</dl><a NAME="DebugClientBase.__getCompletionList" ID="DebugClientBase.__getCompletionList"></a> -<h4>DebugClientBase.__getCompletionList</h4> -<b>__getCompletionList</b>(<i>text, completer, completions</i>) -<p> - Private method to create a completions list. -</p><dl> -<dt><i>text</i></dt> -<dd> -text to complete (string) -</dd><dt><i>completer</i></dt> -<dd> -completer methode -</dd><dt><i>completions</i></dt> -<dd> -set where to add new completions strings (set) -</dd> -</dl><a NAME="DebugClientBase.__getSysPath" ID="DebugClientBase.__getSysPath"></a> -<h4>DebugClientBase.__getSysPath</h4> -<b>__getSysPath</b>(<i>firstEntry</i>) -<p> - Private slot to calculate a path list including the PYTHONPATH - environment variable. -</p><dl> -<dt><i>firstEntry</i></dt> -<dd> -entry to be put first in sys.path (string) -</dd> -</dl><dl> -<dt>Returns:</dt> -<dd> -path list for use as sys.path (list of strings) -</dd> -</dl><a NAME="DebugClientBase.__interact" ID="DebugClientBase.__interact"></a> -<h4>DebugClientBase.__interact</h4> -<b>__interact</b>(<i></i>) -<p> - Private method to interact with the debugger. -</p><a NAME="DebugClientBase.__interceptSignals" ID="DebugClientBase.__interceptSignals"></a> -<h4>DebugClientBase.__interceptSignals</h4> -<b>__interceptSignals</b>(<i></i>) -<p> - Private method to intercept common signals. -</p><a NAME="DebugClientBase.__resolveHost" ID="DebugClientBase.__resolveHost"></a> -<h4>DebugClientBase.__resolveHost</h4> -<b>__resolveHost</b>(<i>host</i>) -<p> - Private method to resolve a hostname to an IP address. -</p><dl> -<dt><i>host</i></dt> -<dd> -hostname of the debug server (string) -</dd> -</dl><dl> -<dt>Returns:</dt> -<dd> -IP address (string) -</dd> -</dl><a NAME="DebugClientBase.__setCoding" ID="DebugClientBase.__setCoding"></a> -<h4>DebugClientBase.__setCoding</h4> -<b>__setCoding</b>(<i>filename</i>) -<p> - Private method to set the coding used by a python file. -</p><dl> -<dt><i>filename</i></dt> -<dd> -name of the file to inspect (string) -</dd> -</dl><a NAME="DebugClientBase.__signalHandler" ID="DebugClientBase.__signalHandler"></a> -<h4>DebugClientBase.__signalHandler</h4> -<b>__signalHandler</b>(<i>signalNumber, stackFrame</i>) -<p> - Private method to handle signals. -</p><dl> -<dt><i>signalNumber</i> (int)</dt> -<dd> -number of the signal to be handled -</dd><dt><i>stackFrame</i> (frame object)</dt> -<dd> -current stack frame -</dd> -</dl><a NAME="DebugClientBase.__unhandled_exception" ID="DebugClientBase.__unhandled_exception"></a> -<h4>DebugClientBase.__unhandled_exception</h4> -<b>__unhandled_exception</b>(<i>exctype, excval, exctb</i>) -<p> - Private method called to report an uncaught exception. -</p><dl> -<dt><i>exctype</i></dt> -<dd> -the type of the exception -</dd><dt><i>excval</i></dt> -<dd> -data about the exception -</dd><dt><i>exctb</i></dt> -<dd> -traceback for the exception -</dd> -</dl><a NAME="DebugClientBase.absPath" ID="DebugClientBase.absPath"></a> -<h4>DebugClientBase.absPath</h4> -<b>absPath</b>(<i>fn</i>) -<p> - Public method to convert a filename to an absolute name. -</p><p> - sys.path is used as a set of possible prefixes. The name stays - relative if a file could not be found. -</p><dl> -<dt><i>fn</i></dt> -<dd> -filename (string) -</dd> -</dl><dl> -<dt>Returns:</dt> -<dd> -the converted filename (string) -</dd> -</dl><a NAME="DebugClientBase.attachThread" ID="DebugClientBase.attachThread"></a> -<h4>DebugClientBase.attachThread</h4> -<b>attachThread</b>(<i>target=None, args=None, kwargs=None, mainThread=False</i>) -<p> - Public method to setup a thread for DebugClient to debug. -</p><p> - If mainThread is True, then we are attaching to the already - started mainthread of the app and the rest of the args are ignored. -</p><dl> -<dt><i>target</i></dt> -<dd> -the start function of the target thread (i.e. the user - code) -</dd><dt><i>args</i></dt> -<dd> -arguments to pass to target -</dd><dt><i>kwargs</i></dt> -<dd> -keyword arguments to pass to target -</dd><dt><i>mainThread</i></dt> -<dd> -True, if we are attaching to the already - started mainthread of the app -</dd> -</dl><a NAME="DebugClientBase.close" ID="DebugClientBase.close"></a> -<h4>DebugClientBase.close</h4> -<b>close</b>(<i>fd</i>) -<p> - Public method implementing a close method as a replacement for - os.close(). -</p><p> - It prevents the debugger connections from being closed. -</p><dl> -<dt><i>fd</i></dt> -<dd> -file descriptor to be closed (integer) -</dd> -</dl><a NAME="DebugClientBase.connectDebugger" ID="DebugClientBase.connectDebugger"></a> -<h4>DebugClientBase.connectDebugger</h4> -<b>connectDebugger</b>(<i>port, remoteAddress=None, redirect=1</i>) -<p> - Public method to establish a session with the debugger. -</p><p> - It opens a network connection to the debugger, connects it to stdin, - stdout and stderr and saves these file objects in case the application - being debugged redirects them itself. -</p><dl> -<dt><i>port</i></dt> -<dd> -the port number to connect to (int) -</dd><dt><i>remoteAddress</i></dt> -<dd> -the network address of the debug server host - (string) -</dd><dt><i>redirect</i></dt> -<dd> -flag indicating redirection of stdin, stdout and - stderr (boolean) -</dd> -</dl><a NAME="DebugClientBase.eventLoop" ID="DebugClientBase.eventLoop"></a> -<h4>DebugClientBase.eventLoop</h4> -<b>eventLoop</b>(<i>disablePolling=False</i>) -<p> - Public method implementing our event loop. -</p><dl> -<dt><i>disablePolling</i></dt> -<dd> -flag indicating to enter an event loop with - polling disabled (boolean) -</dd> -</dl><a NAME="DebugClientBase.eventPoll" ID="DebugClientBase.eventPoll"></a> -<h4>DebugClientBase.eventPoll</h4> -<b>eventPoll</b>(<i></i>) -<p> - Public method to poll for events like 'set break point'. -</p><a NAME="DebugClientBase.fork" ID="DebugClientBase.fork"></a> -<h4>DebugClientBase.fork</h4> -<b>fork</b>(<i></i>) -<p> - Public method implementing a fork routine deciding which branch - to follow. -</p><dl> -<dt>Returns:</dt> -<dd> -process ID (integer) -</dd> -</dl><a NAME="DebugClientBase.getCoding" ID="DebugClientBase.getCoding"></a> -<h4>DebugClientBase.getCoding</h4> -<b>getCoding</b>(<i></i>) -<p> - Public method to return the current coding. -</p><dl> -<dt>Returns:</dt> -<dd> -codec name (string) -</dd> -</dl><a NAME="DebugClientBase.getRunning" ID="DebugClientBase.getRunning"></a> -<h4>DebugClientBase.getRunning</h4> -<b>getRunning</b>(<i></i>) -<p> - Public method to return the main script we are currently running. -</p><dl> -<dt>Returns:</dt> -<dd> -flag indicating a running debug session (boolean) -</dd> -</dl><a NAME="DebugClientBase.handleJsonCommand" ID="DebugClientBase.handleJsonCommand"></a> -<h4>DebugClientBase.handleJsonCommand</h4> -<b>handleJsonCommand</b>(<i>jsonStr</i>) -<p> - Public method to handle a command serialized as a JSON string. -</p><dl> -<dt><i>jsonStr</i> (str)</dt> -<dd> -string containing the command received from the IDE -</dd> -</dl><a NAME="DebugClientBase.handleLine" ID="DebugClientBase.handleLine"></a> -<h4>DebugClientBase.handleLine</h4> -<b>handleLine</b>(<i>line</i>) -<p> - Public method to handle the receipt of a complete line. -</p><p> - It first looks for a valid protocol token at the start of the line. - Thereafter it trys to execute the lines accumulated so far. -</p><dl> -<dt><i>line</i></dt> -<dd> -the received line -</dd> -</dl><a NAME="DebugClientBase.input" ID="DebugClientBase.input"></a> -<h4>DebugClientBase.input</h4> -<b>input</b>(<i>prompt</i>) -<p> - Public method to implement input() using the event loop. -</p><dl> -<dt><i>prompt</i></dt> -<dd> -the prompt to be shown (string) -</dd> -</dl><dl> -<dt>Returns:</dt> -<dd> -the entered string evaluated as a Python expresion -</dd> -</dl><a NAME="DebugClientBase.main" ID="DebugClientBase.main"></a> -<h4>DebugClientBase.main</h4> -<b>main</b>(<i></i>) -<p> - Public method implementing the main method. -</p><a NAME="DebugClientBase.progTerminated" ID="DebugClientBase.progTerminated"></a> -<h4>DebugClientBase.progTerminated</h4> -<b>progTerminated</b>(<i>status, message=""</i>) -<p> - Public method to tell the debugger that the program has terminated. -</p><dl> -<dt><i>status</i> (int)</dt> -<dd> -return status -</dd><dt><i>message</i> (str)</dt> -<dd> -status message -</dd> -</dl><a NAME="DebugClientBase.raw_input" ID="DebugClientBase.raw_input"></a> -<h4>DebugClientBase.raw_input</h4> -<b>raw_input</b>(<i>prompt, echo</i>) -<p> - Public method to implement raw_input() using the event loop. -</p><dl> -<dt><i>prompt</i></dt> -<dd> -the prompt to be shown (string) -</dd><dt><i>echo</i></dt> -<dd> -Flag indicating echoing of the input (boolean) -</dd> -</dl><dl> -<dt>Returns:</dt> -<dd> -the entered string -</dd> -</dl><a NAME="DebugClientBase.readReady" ID="DebugClientBase.readReady"></a> -<h4>DebugClientBase.readReady</h4> -<b>readReady</b>(<i>stream</i>) -<p> - Public method called when there is data ready to be read. -</p><dl> -<dt><i>stream</i></dt> -<dd> -file like object that has data to be written -</dd> -</dl><a NAME="DebugClientBase.run_call" ID="DebugClientBase.run_call"></a> -<h4>DebugClientBase.run_call</h4> -<b>run_call</b>(<i>scriptname, func, *args</i>) -<p> - Public method used to start the remote debugger and call a function. -</p><dl> -<dt><i>scriptname</i></dt> -<dd> -name of the script to be debugged (string) -</dd><dt><i>func</i></dt> -<dd> -function to be called -</dd><dt><i>*args</i></dt> -<dd> -arguments being passed to func -</dd> -</dl><dl> -<dt>Returns:</dt> -<dd> -result of the function call -</dd> -</dl><a NAME="DebugClientBase.sendCallTrace" ID="DebugClientBase.sendCallTrace"></a> -<h4>DebugClientBase.sendCallTrace</h4> -<b>sendCallTrace</b>(<i>event, fromInfo, toInfo</i>) -<p> - Public method to send a call trace entry. -</p><dl> -<dt><i>event</i> (str)</dt> -<dd> -trace event (call or return) -</dd><dt><i>fromInfo</i> (dict with 'filename', 'linenumber' and 'codename')</dt> -<dd> -dictionary containing the origin info - as keys -</dd><dt><i>toInfo</i> (dict with 'filename', 'linenumber' and 'codename')</dt> -<dd> -dictionary containing the target info - as keys -</dd> -</dl><a NAME="DebugClientBase.sendClearTemporaryBreakpoint" ID="DebugClientBase.sendClearTemporaryBreakpoint"></a> -<h4>DebugClientBase.sendClearTemporaryBreakpoint</h4> -<b>sendClearTemporaryBreakpoint</b>(<i>filename, lineno</i>) -<p> - Public method to signal the deletion of a temporary breakpoint. -</p><dl> -<dt><i>filename</i> (str)</dt> -<dd> -name of the file the bp belongs to -</dd><dt><i>lineno</i> (int)</dt> -<dd> -linenumber of the bp -</dd> -</dl><a NAME="DebugClientBase.sendClearTemporaryWatch" ID="DebugClientBase.sendClearTemporaryWatch"></a> -<h4>DebugClientBase.sendClearTemporaryWatch</h4> -<b>sendClearTemporaryWatch</b>(<i>condition</i>) -<p> - Public method to signal the deletion of a temporary watch expression. -</p><dl> -<dt><i>condition</i> (str)</dt> -<dd> -condition of the watch expression to be cleared -</dd> -</dl><a NAME="DebugClientBase.sendException" ID="DebugClientBase.sendException"></a> -<h4>DebugClientBase.sendException</h4> -<b>sendException</b>(<i>exceptionType, exceptionMessage, stack</i>) -<p> - Public method to send information for an exception. -</p><dl> -<dt><i>exceptionType</i> (str)</dt> -<dd> -type of exception raised -</dd><dt><i>exceptionMessage</i> (str)</dt> -<dd> -message of the exception -</dd><dt><i>stack</i> (list)</dt> -<dd> -stack trace information -</dd> -</dl><a NAME="DebugClientBase.sendJsonCommand" ID="DebugClientBase.sendJsonCommand"></a> -<h4>DebugClientBase.sendJsonCommand</h4> -<b>sendJsonCommand</b>(<i>method, params</i>) -<p> - Public method to send a single command or response to the IDE. -</p><dl> -<dt><i>method</i> (str)</dt> -<dd> -command or response command name to be sent -</dd><dt><i>params</i> (dict)</dt> -<dd> -dictionary of named parameters for the command or - response -</dd> -</dl><a NAME="DebugClientBase.sendPassiveStartup" ID="DebugClientBase.sendPassiveStartup"></a> -<h4>DebugClientBase.sendPassiveStartup</h4> -<b>sendPassiveStartup</b>(<i>filename, exceptions</i>) -<p> - Public method to send the passive start information. -</p><dl> -<dt><i>filename</i> (str)</dt> -<dd> -name of the script -</dd><dt><i>exceptions</i> (bool)</dt> -<dd> -flag to enable exception reporting of the IDE -</dd> -</dl><a NAME="DebugClientBase.sendResponseLine" ID="DebugClientBase.sendResponseLine"></a> -<h4>DebugClientBase.sendResponseLine</h4> -<b>sendResponseLine</b>(<i>stack</i>) -<p> - Public method to send the current call stack. -</p><dl> -<dt><i>stack</i> (list)</dt> -<dd> -call stack -</dd> -</dl><a NAME="DebugClientBase.sendSyntaxError" ID="DebugClientBase.sendSyntaxError"></a> -<h4>DebugClientBase.sendSyntaxError</h4> -<b>sendSyntaxError</b>(<i>message, filename, lineno, charno</i>) -<p> - Public method to send information for a syntax error. -</p><dl> -<dt><i>message</i> (str)</dt> -<dd> -syntax error message -</dd><dt><i>filename</i> (str)</dt> -<dd> -name of the faulty file -</dd><dt><i>lineno</i> (int)</dt> -<dd> -line number info -</dd><dt><i>charno</i> (int)</dt> -<dd> -character number info -</dd> -</dl><a NAME="DebugClientBase.sessionClose" ID="DebugClientBase.sessionClose"></a> -<h4>DebugClientBase.sessionClose</h4> -<b>sessionClose</b>(<i>exit=True</i>) -<p> - Public method to close the session with the debugger and optionally - terminate. -</p><dl> -<dt><i>exit</i></dt> -<dd> -flag indicating to terminate (boolean) -</dd> -</dl><a NAME="DebugClientBase.shouldSkip" ID="DebugClientBase.shouldSkip"></a> -<h4>DebugClientBase.shouldSkip</h4> -<b>shouldSkip</b>(<i>fn</i>) -<p> - Public method to check if a file should be skipped. -</p><dl> -<dt><i>fn</i></dt> -<dd> -filename to be checked -</dd> -</dl><dl> -<dt>Returns:</dt> -<dd> -non-zero if fn represents a file we are 'skipping', - zero otherwise. -</dd> -</dl><a NAME="DebugClientBase.startDebugger" ID="DebugClientBase.startDebugger"></a> -<h4>DebugClientBase.startDebugger</h4> -<b>startDebugger</b>(<i>filename=None, host=None, port=None, enableTrace=True, exceptions=True, tracePython=False, redirect=True</i>) -<p> - Public method used to start the remote debugger. -</p><dl> -<dt><i>filename</i></dt> -<dd> -the program to be debugged (string) -</dd><dt><i>host</i></dt> -<dd> -hostname of the debug server (string) -</dd><dt><i>port</i></dt> -<dd> -portnumber of the debug server (int) -</dd><dt><i>enableTrace</i></dt> -<dd> -flag to enable the tracing function (boolean) -</dd><dt><i>exceptions</i></dt> -<dd> -flag to enable exception reporting of the IDE - (boolean) -</dd><dt><i>tracePython</i></dt> -<dd> -flag to enable tracing into the Python library - (boolean) -</dd><dt><i>redirect</i></dt> -<dd> -flag indicating redirection of stdin, stdout and - stderr (boolean) -</dd> -</dl><a NAME="DebugClientBase.startProgInDebugger" ID="DebugClientBase.startProgInDebugger"></a> -<h4>DebugClientBase.startProgInDebugger</h4> -<b>startProgInDebugger</b>(<i>progargs, wd='', host=None, port=None, exceptions=True, tracePython=False, redirect=True</i>) -<p> - Public method used to start the remote debugger. -</p><dl> -<dt><i>progargs</i></dt> -<dd> -commandline for the program to be debugged - (list of strings) -</dd><dt><i>wd</i></dt> -<dd> -working directory for the program execution (string) -</dd><dt><i>host</i></dt> -<dd> -hostname of the debug server (string) -</dd><dt><i>port</i></dt> -<dd> -portnumber of the debug server (int) -</dd><dt><i>exceptions</i></dt> -<dd> -flag to enable exception reporting of the IDE - (boolean) -</dd><dt><i>tracePython</i></dt> -<dd> -flag to enable tracing into the Python library - (boolean) -</dd><dt><i>redirect</i></dt> -<dd> -flag indicating redirection of stdin, stdout and - stderr (boolean) -</dd> -</dl><a NAME="DebugClientBase.writeReady" ID="DebugClientBase.writeReady"></a> -<h4>DebugClientBase.writeReady</h4> -<b>writeReady</b>(<i>stream</i>) -<p> - Public method called when we are ready to write data. -</p><dl> -<dt><i>stream</i></dt> -<dd> -file like object that has data to be written -</dd> -</dl> -<div align="right"><a href="#top">Up</a></div> -<hr /><hr /> -<a NAME="DebugClientClose" ID="DebugClientClose"></a> -<h2>DebugClientClose</h2> -<b>DebugClientClose</b>(<i>fd</i>) -<p> - Replacement for the standard os.close(fd). -</p><dl> -<dt><i>fd</i></dt> -<dd> -open file descriptor to be closed (integer) -</dd> -</dl> -<div align="right"><a href="#top">Up</a></div> -<hr /><hr /> -<a NAME="DebugClientFork" ID="DebugClientFork"></a> -<h2>DebugClientFork</h2> -<b>DebugClientFork</b>(<i></i>) -<p> - Replacement for the standard os.fork(). -</p><dl> -<dt>Returns:</dt> -<dd> -result of the fork() call -</dd> -</dl> -<div align="right"><a href="#top">Up</a></div> -<hr /><hr /> -<a NAME="DebugClientInput" ID="DebugClientInput"></a> -<h2>DebugClientInput</h2> -<b>DebugClientInput</b>(<i>prompt=""</i>) -<p> - Replacement for the standard input builtin. -</p><p> - This function works with the split debugger. -</p><dl> -<dt><i>prompt</i></dt> -<dd> -prompt to be shown (string) -</dd> -</dl><dl> -<dt>Returns:</dt> -<dd> -result of the input() call -</dd> -</dl> -<div align="right"><a href="#top">Up</a></div> -<hr /><hr /> -<a NAME="DebugClientRawInput" ID="DebugClientRawInput"></a> -<h2>DebugClientRawInput</h2> -<b>DebugClientRawInput</b>(<i>prompt="", echo=1</i>) -<p> - Replacement for the standard raw_input builtin. -</p><p> - This function works with the split debugger. -</p><dl> -<dt><i>prompt</i></dt> -<dd> -prompt to be shown. (string) -</dd><dt><i>echo</i></dt> -<dd> -flag indicating echoing of the input (boolean) -</dd> -</dl><dl> -<dt>Returns:</dt> -<dd> -result of the raw_input() call -</dd> -</dl> -<div align="right"><a href="#top">Up</a></div> -<hr /><hr /> -<a NAME="DebugClientSetRecursionLimit" ID="DebugClientSetRecursionLimit"></a> -<h2>DebugClientSetRecursionLimit</h2> -<b>DebugClientSetRecursionLimit</b>(<i>limit</i>) -<p> - Replacement for the standard sys.setrecursionlimit(limit). -</p><dl> -<dt><i>limit</i></dt> -<dd> -recursion limit (integer) -</dd> -</dl> -<div align="right"><a href="#top">Up</a></div> -<hr /> -</body></html> \ No newline at end of file
--- a/Documentation/Source/eric6.DebugClients.Python2.DebugClientCapabilities.html Sun Oct 16 14:43:18 2016 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,39 +0,0 @@ -<!DOCTYPE html> -<html><head> -<title>eric6.DebugClients.Python2.DebugClientCapabilities</title> -<meta charset="UTF-8"> -<style> -body { - background: #EDECE6; - margin: 0em 1em 10em 1em; - color: black; -} - -h1 { color: white; background: #85774A; } -h2 { color: white; background: #85774A; } -h3 { color: white; background: #9D936E; } -h4 { color: white; background: #9D936E; } - -a { color: #BA6D36; } - -</style> -</head> -<body><a NAME="top" ID="top"></a> -<h1>eric6.DebugClients.Python2.DebugClientCapabilities</h1> -<p> -Module defining the debug clients capabilities. -</p> -<h3>Global Attributes</h3> -<table> -<tr><td>HasAll</td></tr><tr><td>HasCompleter</td></tr><tr><td>HasCoverage</td></tr><tr><td>HasDebugger</td></tr><tr><td>HasInterpreter</td></tr><tr><td>HasProfiler</td></tr><tr><td>HasShell</td></tr><tr><td>HasUnittest</td></tr> -</table> -<h3>Classes</h3> -<table> -<tr><td>None</td></tr> -</table> -<h3>Functions</h3> -<table> -<tr><td>None</td></tr> -</table> -<hr /> -</body></html> \ No newline at end of file
--- a/Documentation/Source/eric6.DebugClients.Python2.DebugClientThreads.html Sun Oct 16 14:43:18 2016 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,227 +0,0 @@ -<!DOCTYPE html> -<html><head> -<title>eric6.DebugClients.Python2.DebugClientThreads</title> -<meta charset="UTF-8"> -<style> -body { - background: #EDECE6; - margin: 0em 1em 10em 1em; - color: black; -} - -h1 { color: white; background: #85774A; } -h2 { color: white; background: #85774A; } -h3 { color: white; background: #9D936E; } -h4 { color: white; background: #9D936E; } - -a { color: #BA6D36; } - -</style> -</head> -<body><a NAME="top" ID="top"></a> -<h1>eric6.DebugClients.Python2.DebugClientThreads</h1> -<p> -Module implementing the multithreaded version of the debug client. -</p> -<h3>Global Attributes</h3> -<table> -<tr><td>_original_start_thread</td></tr> -</table> -<h3>Classes</h3> -<table> -<tr> -<td><a href="#DebugClientThreads">DebugClientThreads</a></td> -<td>Class implementing the client side of the debugger.</td> -</tr> -</table> -<h3>Functions</h3> -<table> -<tr> -<td><a href="#_debugclient_start_new_thread">_debugclient_start_new_thread</a></td> -<td>Module function used to allow for debugging of multiple threads.</td> -</tr> -</table> -<hr /><hr /> -<a NAME="DebugClientThreads" ID="DebugClientThreads"></a> -<h2>DebugClientThreads</h2> -<p> - Class implementing the client side of the debugger. -</p><p> - This variant of the debugger implements a threaded debugger client - by subclassing all relevant base classes. -</p> -<h3>Derived from</h3> -DebugClientBase.DebugClientBase -<h3>Class Attributes</h3> -<table> -<tr><td>debugClient</td></tr> -</table> -<h3>Class Methods</h3> -<table> -<tr><td>None</td></tr> -</table> -<h3>Methods</h3> -<table> -<tr> -<td><a href="#DebugClientThreads.__init__">DebugClientThreads</a></td> -<td>Constructor</td> -</tr><tr> -<td><a href="#DebugClientThreads.attachThread">attachThread</a></td> -<td>Public method to setup a thread for DebugClient to debug.</td> -</tr><tr> -<td><a href="#DebugClientThreads.eventLoop">eventLoop</a></td> -<td>Public method implementing our event loop.</td> -</tr><tr> -<td><a href="#DebugClientThreads.lockClient">lockClient</a></td> -<td>Public method to acquire the lock for this client.</td> -</tr><tr> -<td><a href="#DebugClientThreads.setCurrentThread">setCurrentThread</a></td> -<td>Public method to set the current thread.</td> -</tr><tr> -<td><a href="#DebugClientThreads.set_quit">set_quit</a></td> -<td>Public method to do a 'set quit' on all threads.</td> -</tr><tr> -<td><a href="#DebugClientThreads.threadTerminated">threadTerminated</a></td> -<td>Public method called when a DebugThread has exited.</td> -</tr><tr> -<td><a href="#DebugClientThreads.unlockClient">unlockClient</a></td> -<td>Public method to release the lock for this client.</td> -</tr> -</table> -<h3>Static Methods</h3> -<table> -<tr><td>None</td></tr> -</table> -<a NAME="DebugClientThreads.__init__" ID="DebugClientThreads.__init__"></a> -<h4>DebugClientThreads (Constructor)</h4> -<b>DebugClientThreads</b>(<i></i>) -<p> - Constructor -</p><a NAME="DebugClientThreads.attachThread" ID="DebugClientThreads.attachThread"></a> -<h4>DebugClientThreads.attachThread</h4> -<b>attachThread</b>(<i>target=None, args=None, kwargs=None, mainThread=False</i>) -<p> - Public method to setup a thread for DebugClient to debug. -</p><p> - If mainThread is True, then we are attaching to the already - started mainthread of the app and the rest of the args are ignored. -</p><dl> -<dt><i>target</i></dt> -<dd> -the start function of the target thread (i.e. the - user code) -</dd><dt><i>args</i></dt> -<dd> -arguments to pass to target -</dd><dt><i>kwargs</i></dt> -<dd> -keyword arguments to pass to target -</dd><dt><i>mainThread</i></dt> -<dd> -True, if we are attaching to the already - started mainthread of the app -</dd> -</dl><dl> -<dt>Returns:</dt> -<dd> -identifier of the created thread -</dd> -</dl><a NAME="DebugClientThreads.eventLoop" ID="DebugClientThreads.eventLoop"></a> -<h4>DebugClientThreads.eventLoop</h4> -<b>eventLoop</b>(<i>disablePolling=False</i>) -<p> - Public method implementing our event loop. -</p><dl> -<dt><i>disablePolling</i></dt> -<dd> -flag indicating to enter an event loop with - polling disabled (boolean) -</dd> -</dl><a NAME="DebugClientThreads.lockClient" ID="DebugClientThreads.lockClient"></a> -<h4>DebugClientThreads.lockClient</h4> -<b>lockClient</b>(<i>blocking=True</i>) -<p> - Public method to acquire the lock for this client. -</p><dl> -<dt><i>blocking</i> (bool)</dt> -<dd> -flag to indicating a blocking lock -</dd> -</dl><dl> -<dt>Returns:</dt> -<dd> -flag indicating successful locking -</dd> -</dl><dl> -<dt>Return Type:</dt> -<dd> -bool -</dd> -</dl><a NAME="DebugClientThreads.setCurrentThread" ID="DebugClientThreads.setCurrentThread"></a> -<h4>DebugClientThreads.setCurrentThread</h4> -<b>setCurrentThread</b>(<i>id</i>) -<p> - Public method to set the current thread. -</p><dl> -<dt><i>id</i></dt> -<dd> -the id the current thread should be set to. -</dd> -</dl><a NAME="DebugClientThreads.set_quit" ID="DebugClientThreads.set_quit"></a> -<h4>DebugClientThreads.set_quit</h4> -<b>set_quit</b>(<i></i>) -<p> - Public method to do a 'set quit' on all threads. -</p><a NAME="DebugClientThreads.threadTerminated" ID="DebugClientThreads.threadTerminated"></a> -<h4>DebugClientThreads.threadTerminated</h4> -<b>threadTerminated</b>(<i>dbgThread</i>) -<p> - Public method called when a DebugThread has exited. -</p><dl> -<dt><i>dbgThread</i></dt> -<dd> -the DebugThread that has exited -</dd> -</dl><a NAME="DebugClientThreads.unlockClient" ID="DebugClientThreads.unlockClient"></a> -<h4>DebugClientThreads.unlockClient</h4> -<b>unlockClient</b>(<i></i>) -<p> - Public method to release the lock for this client. -</p> -<div align="right"><a href="#top">Up</a></div> -<hr /><hr /> -<a NAME="_debugclient_start_new_thread" ID="_debugclient_start_new_thread"></a> -<h2>_debugclient_start_new_thread</h2> -<b>_debugclient_start_new_thread</b>(<i>target, args, kwargs={}</i>) -<p> - Module function used to allow for debugging of multiple threads. -</p><p> - The way it works is that below, we reset thread._start_new_thread to - this function object. Thus, providing a hook for us to see when - threads are started. From here we forward the request onto the - DebugClient which will create a DebugThread object to allow tracing - of the thread then start up the thread. These actions are always - performed in order to allow dropping into debug mode. -</p><p> - See DebugClientThreads.attachThread and DebugThread.DebugThread in - DebugThread.py -</p><dl> -<dt><i>target</i></dt> -<dd> -the start function of the target thread (i.e. the user code) -</dd><dt><i>args</i></dt> -<dd> -arguments to pass to target -</dd><dt><i>kwargs</i></dt> -<dd> -keyword arguments to pass to target -</dd> -</dl><dl> -<dt>Returns:</dt> -<dd> -The identifier of the created thread -</dd> -</dl> -<div align="right"><a href="#top">Up</a></div> -<hr /> -</body></html> \ No newline at end of file
--- a/Documentation/Source/eric6.DebugClients.Python2.DebugConfig.html Sun Oct 16 14:43:18 2016 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,39 +0,0 @@ -<!DOCTYPE html> -<html><head> -<title>eric6.DebugClients.Python2.DebugConfig</title> -<meta charset="UTF-8"> -<style> -body { - background: #EDECE6; - margin: 0em 1em 10em 1em; - color: black; -} - -h1 { color: white; background: #85774A; } -h2 { color: white; background: #85774A; } -h3 { color: white; background: #9D936E; } -h4 { color: white; background: #9D936E; } - -a { color: #BA6D36; } - -</style> -</head> -<body><a NAME="top" ID="top"></a> -<h1>eric6.DebugClients.Python2.DebugConfig</h1> -<p> -Module defining type strings for the different Python types. -</p> -<h3>Global Attributes</h3> -<table> -<tr><td>ConfigVarTypeStrings</td></tr> -</table> -<h3>Classes</h3> -<table> -<tr><td>None</td></tr> -</table> -<h3>Functions</h3> -<table> -<tr><td>None</td></tr> -</table> -<hr /> -</body></html> \ No newline at end of file
--- a/Documentation/Source/eric6.DebugClients.Python2.DebugThread.html Sun Oct 16 14:43:18 2016 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,184 +0,0 @@ -<!DOCTYPE html> -<html><head> -<title>eric6.DebugClients.Python2.DebugThread</title> -<meta charset="UTF-8"> -<style> -body { - background: #EDECE6; - margin: 0em 1em 10em 1em; - color: black; -} - -h1 { color: white; background: #85774A; } -h2 { color: white; background: #85774A; } -h3 { color: white; background: #9D936E; } -h4 { color: white; background: #9D936E; } - -a { color: #BA6D36; } - -</style> -</head> -<body><a NAME="top" ID="top"></a> -<h1>eric6.DebugClients.Python2.DebugThread</h1> -<p> -Module implementing the debug thread. -</p> -<h3>Global Attributes</h3> -<table> -<tr><td>None</td></tr> -</table> -<h3>Classes</h3> -<table> -<tr> -<td><a href="#DebugThread">DebugThread</a></td> -<td>Class implementing a debug thread.</td> -</tr> -</table> -<h3>Functions</h3> -<table> -<tr><td>None</td></tr> -</table> -<hr /><hr /> -<a NAME="DebugThread" ID="DebugThread"></a> -<h2>DebugThread</h2> -<p> - Class implementing a debug thread. -</p><p> - It represents a thread in the python interpreter that we are tracing. -</p><p> - Provides simple wrapper methods around bdb for the 'owning' client to - call to step etc. -</p> -<h3>Derived from</h3> -DebugBase -<h3>Class Attributes</h3> -<table> -<tr><td>None</td></tr> -</table> -<h3>Class Methods</h3> -<table> -<tr><td>None</td></tr> -</table> -<h3>Methods</h3> -<table> -<tr> -<td><a href="#DebugThread.__init__">DebugThread</a></td> -<td>Constructor</td> -</tr><tr> -<td><a href="#DebugThread.bootstrap">bootstrap</a></td> -<td>Public method to bootstrap the thread.</td> -</tr><tr> -<td><a href="#DebugThread.get_ident">get_ident</a></td> -<td>Public method to return the id of this thread.</td> -</tr><tr> -<td><a href="#DebugThread.get_name">get_name</a></td> -<td>Public method to return the name of this thread.</td> -</tr><tr> -<td><a href="#DebugThread.set_ident">set_ident</a></td> -<td>Public method to set the id for this thread.</td> -</tr><tr> -<td><a href="#DebugThread.traceThread">traceThread</a></td> -<td>Public method to setup tracing for this thread.</td> -</tr><tr> -<td><a href="#DebugThread.trace_dispatch">trace_dispatch</a></td> -<td>Public method wrapping the trace_dispatch of bdb.py.</td> -</tr> -</table> -<h3>Static Methods</h3> -<table> -<tr><td>None</td></tr> -</table> -<a NAME="DebugThread.__init__" ID="DebugThread.__init__"></a> -<h4>DebugThread (Constructor)</h4> -<b>DebugThread</b>(<i>dbgClient, targ=None, args=None, kwargs=None, mainThread=False</i>) -<p> - Constructor -</p><dl> -<dt><i>dbgClient</i></dt> -<dd> -the owning client -</dd><dt><i>targ</i></dt> -<dd> -the target method in the run thread -</dd><dt><i>args</i></dt> -<dd> -arguments to be passed to the thread -</dd><dt><i>kwargs</i></dt> -<dd> -arguments to be passed to the thread -</dd><dt><i>mainThread</i></dt> -<dd> -False if this thread is not the main script's thread -</dd> -</dl><a NAME="DebugThread.bootstrap" ID="DebugThread.bootstrap"></a> -<h4>DebugThread.bootstrap</h4> -<b>bootstrap</b>(<i></i>) -<p> - Public method to bootstrap the thread. -</p><p> - It wraps the call to the user function to enable tracing - before hand. -</p><a NAME="DebugThread.get_ident" ID="DebugThread.get_ident"></a> -<h4>DebugThread.get_ident</h4> -<b>get_ident</b>(<i></i>) -<p> - Public method to return the id of this thread. -</p><dl> -<dt>Returns:</dt> -<dd> -the id of this thread (int) -</dd> -</dl><a NAME="DebugThread.get_name" ID="DebugThread.get_name"></a> -<h4>DebugThread.get_name</h4> -<b>get_name</b>(<i></i>) -<p> - Public method to return the name of this thread. -</p><dl> -<dt>Returns:</dt> -<dd> -name of this thread (string) -</dd> -</dl><a NAME="DebugThread.set_ident" ID="DebugThread.set_ident"></a> -<h4>DebugThread.set_ident</h4> -<b>set_ident</b>(<i>id</i>) -<p> - Public method to set the id for this thread. -</p><dl> -<dt><i>id</i></dt> -<dd> -id for this thread (int) -</dd> -</dl><a NAME="DebugThread.traceThread" ID="DebugThread.traceThread"></a> -<h4>DebugThread.traceThread</h4> -<b>traceThread</b>(<i></i>) -<p> - Public method to setup tracing for this thread. -</p><a NAME="DebugThread.trace_dispatch" ID="DebugThread.trace_dispatch"></a> -<h4>DebugThread.trace_dispatch</h4> -<b>trace_dispatch</b>(<i>frame, event, arg</i>) -<p> - Public method wrapping the trace_dispatch of bdb.py. -</p><p> - It wraps the call to dispatch tracing into - bdb to make sure we have locked the client to prevent multiple - threads from entering the client event loop. -</p><dl> -<dt><i>frame</i></dt> -<dd> -The current stack frame. -</dd><dt><i>event</i></dt> -<dd> -The trace event (string) -</dd><dt><i>arg</i></dt> -<dd> -The arguments -</dd> -</dl><dl> -<dt>Returns:</dt> -<dd> -local trace function -</dd> -</dl> -<div align="right"><a href="#top">Up</a></div> -<hr /> -</body></html> \ No newline at end of file
--- a/Documentation/Source/eric6.DebugClients.Python2.DebugUtilities.html Sun Oct 16 14:43:18 2016 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,69 +0,0 @@ -<!DOCTYPE html> -<html><head> -<title>eric6.DebugClients.Python2.DebugUtilities</title> -<meta charset="UTF-8"> -<style> -body { - background: #EDECE6; - margin: 0em 1em 10em 1em; - color: black; -} - -h1 { color: white; background: #85774A; } -h2 { color: white; background: #85774A; } -h3 { color: white; background: #9D936E; } -h4 { color: white; background: #9D936E; } - -a { color: #BA6D36; } - -</style> -</head> -<body><a NAME="top" ID="top"></a> -<h1>eric6.DebugClients.Python2.DebugUtilities</h1> -<p> -Module implementing utilities functions for the debug client. -</p> -<h3>Global Attributes</h3> -<table> -<tr><td>None</td></tr> -</table> -<h3>Classes</h3> -<table> -<tr><td>None</td></tr> -</table> -<h3>Functions</h3> -<table> -<tr> -<td><a href="#prepareJsonCommand">prepareJsonCommand</a></td> -<td>Function to prepare a single command or response for transmission to the IDE.</td> -</tr> -</table> -<hr /><hr /> -<a NAME="prepareJsonCommand" ID="prepareJsonCommand"></a> -<h2>prepareJsonCommand</h2> -<b>prepareJsonCommand</b>(<i>method, params</i>) -<p> - Function to prepare a single command or response for transmission to - the IDE. -</p><dl> -<dt><i>method</i> (str)</dt> -<dd> -command or response name to be sent -</dd><dt><i>params</i> (dict)</dt> -<dd> -dictionary of named parameters for the command or response -</dd> -</dl><dl> -<dt>Returns:</dt> -<dd> -prepared JSON command or response string -</dd> -</dl><dl> -<dt>Return Type:</dt> -<dd> -str -</dd> -</dl> -<div align="right"><a href="#top">Up</a></div> -<hr /> -</body></html> \ No newline at end of file
--- a/Documentation/Source/eric6.DebugClients.Python2.DebugVariables.html Sun Oct 16 14:43:18 2016 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,816 +0,0 @@ -<!DOCTYPE html> -<html><head> -<title>eric6.DebugClients.Python2.DebugVariables</title> -<meta charset="UTF-8"> -<style> -body { - background: #EDECE6; - margin: 0em 1em 10em 1em; - color: black; -} - -h1 { color: white; background: #85774A; } -h2 { color: white; background: #85774A; } -h3 { color: white; background: #9D936E; } -h4 { color: white; background: #9D936E; } - -a { color: #BA6D36; } - -</style> -</head> -<body><a NAME="top" ID="top"></a> -<h1>eric6.DebugClients.Python2.DebugVariables</h1> -<p> -Module implementing classes and functions to dump variable contents. -</p> -<h3>Global Attributes</h3> -<table> -<tr><td>MaxItemsToHandle</td></tr><tr><td>TooLargeAttribute</td></tr><tr><td>TooLargeMessage</td></tr><tr><td>_TypeMap</td></tr><tr><td>arrayResolver</td></tr><tr><td>defaultResolver</td></tr><tr><td>dictResolver</td></tr><tr><td>listResolver</td></tr><tr><td>multiValueDictResolver</td></tr><tr><td>ndarrayResolver</td></tr><tr><td>setResolver</td></tr> -</table> -<h3>Classes</h3> -<table> -<tr> -<td><a href="#ArrayItemsContainer">ArrayItemsContainer</a></td> -<td>Class to store array.array items.</td> -</tr><tr> -<td><a href="#ArrayResolver">ArrayResolver</a></td> -<td>Class used to resolve from array.array including some meta data.</td> -</tr><tr> -<td><a href="#BaseResolver">BaseResolver</a></td> -<td>Base class of the resolver class tree.</td> -</tr><tr> -<td><a href="#DefaultResolver">DefaultResolver</a></td> -<td>Class used to resolve the default way.</td> -</tr><tr> -<td><a href="#DictResolver">DictResolver</a></td> -<td>Class used to resolve from a dictionary.</td> -</tr><tr> -<td><a href="#ListResolver">ListResolver</a></td> -<td>Class used to resolve from a tuple or list.</td> -</tr><tr> -<td><a href="#MultiValueDictResolver">MultiValueDictResolver</a></td> -<td>Class used to resolve from Django multi value dictionaries.</td> -</tr><tr> -<td><a href="#NdArrayItemsContainer">NdArrayItemsContainer</a></td> -<td>Class to store ndarray items.</td> -</tr><tr> -<td><a href="#NdArrayResolver">NdArrayResolver</a></td> -<td>Class used to resolve from numpy ndarray including some meta data.</td> -</tr><tr> -<td><a href="#SetResolver">SetResolver</a></td> -<td>Class used to resolve from a set or frozenset.</td> -</tr> -</table> -<h3>Functions</h3> -<table> -<tr> -<td><a href="#_initTypeMap">_initTypeMap</a></td> -<td>Protected function to initialize the type map.</td> -</tr><tr> -<td><a href="#getType">getType</a></td> -<td>Public method to get the type information for an object.</td> -</tr> -</table> -<hr /><hr /> -<a NAME="ArrayItemsContainer" ID="ArrayItemsContainer"></a> -<h2>ArrayItemsContainer</h2> -<p> - Class to store array.array items. -</p> -<h3>Derived from</h3> -None -<h3>Class Attributes</h3> -<table> -<tr><td>None</td></tr> -</table> -<h3>Class Methods</h3> -<table> -<tr><td>None</td></tr> -</table> -<h3>Methods</h3> -<table> -<tr><td>None</td></tr> -</table> -<h3>Static Methods</h3> -<table> -<tr><td>None</td></tr> -</table> - -<div align="right"><a href="#top">Up</a></div> -<hr /><hr /> -<a NAME="ArrayResolver" ID="ArrayResolver"></a> -<h2>ArrayResolver</h2> -<p> - Class used to resolve from array.array including some meta data. -</p> -<h3>Derived from</h3> -BaseResolver -<h3>Class Attributes</h3> -<table> -<tr><td>TypeCodeMap</td></tr> -</table> -<h3>Class Methods</h3> -<table> -<tr><td>None</td></tr> -</table> -<h3>Methods</h3> -<table> -<tr> -<td><a href="#ArrayResolver.getDictionary">getDictionary</a></td> -<td>Public method to get the attributes of a variable as a dictionary.</td> -</tr><tr> -<td><a href="#ArrayResolver.resolve">resolve</a></td> -<td>Public method to get an attribute from a variable.</td> -</tr> -</table> -<h3>Static Methods</h3> -<table> -<tr><td>None</td></tr> -</table> -<a NAME="ArrayResolver.getDictionary" ID="ArrayResolver.getDictionary"></a> -<h4>ArrayResolver.getDictionary</h4> -<b>getDictionary</b>(<i>var</i>) -<p> - Public method to get the attributes of a variable as a dictionary. -</p><dl> -<dt><i>var</i> (any)</dt> -<dd> -variable to be converted -</dd> -</dl><dl> -<dt>Returns:</dt> -<dd> -dictionary containing the variable attributes -</dd> -</dl><dl> -<dt>Return Type:</dt> -<dd> -dict -</dd> -</dl><a NAME="ArrayResolver.resolve" ID="ArrayResolver.resolve"></a> -<h4>ArrayResolver.resolve</h4> -<b>resolve</b>(<i>var, attribute</i>) -<p> - Public method to get an attribute from a variable. -</p><dl> -<dt><i>var</i> (tuple or list)</dt> -<dd> -variable to extract an attribute or value from -</dd><dt><i>attribute</i> (str)</dt> -<dd> -id of the value to extract -</dd> -</dl><dl> -<dt>Returns:</dt> -<dd> -value of the attribute -</dd> -</dl><dl> -<dt>Return Type:</dt> -<dd> -any -</dd> -</dl> -<div align="right"><a href="#top">Up</a></div> -<hr /><hr /> -<a NAME="BaseResolver" ID="BaseResolver"></a> -<h2>BaseResolver</h2> -<p> - Base class of the resolver class tree. -</p> -<h3>Derived from</h3> -object -<h3>Class Attributes</h3> -<table> -<tr><td>None</td></tr> -</table> -<h3>Class Methods</h3> -<table> -<tr><td>None</td></tr> -</table> -<h3>Methods</h3> -<table> -<tr> -<td><a href="#BaseResolver.getDictionary">getDictionary</a></td> -<td>Public method to get the attributes of a variable as a dictionary.</td> -</tr><tr> -<td><a href="#BaseResolver.resolve">resolve</a></td> -<td>Public method to get an attribute from a variable.</td> -</tr> -</table> -<h3>Static Methods</h3> -<table> -<tr><td>None</td></tr> -</table> -<a NAME="BaseResolver.getDictionary" ID="BaseResolver.getDictionary"></a> -<h4>BaseResolver.getDictionary</h4> -<b>getDictionary</b>(<i>var</i>) -<p> - Public method to get the attributes of a variable as a dictionary. -</p><dl> -<dt><i>var</i> (any)</dt> -<dd> -variable to be converted -</dd> -</dl><dl> -<dt>Returns:</dt> -<dd> -dictionary containing the variable attributes -</dd> -</dl><dl> -<dt>Return Type:</dt> -<dd> -dict -</dd> -</dl><dl> -<dt>Raises <b>NotImplementedError</b>:</dt> -<dd> -raised to indicate a missing - implementation -</dd> -</dl><a NAME="BaseResolver.resolve" ID="BaseResolver.resolve"></a> -<h4>BaseResolver.resolve</h4> -<b>resolve</b>(<i>var, attribute</i>) -<p> - Public method to get an attribute from a variable. -</p><dl> -<dt><i>var</i> (any)</dt> -<dd> -variable to extract an attribute or value from -</dd><dt><i>attribute</i> (str)</dt> -<dd> -name of the attribute to extract -</dd> -</dl><dl> -<dt>Returns:</dt> -<dd> -value of the attribute -</dd> -</dl><dl> -<dt>Return Type:</dt> -<dd> -any -</dd> -</dl><dl> -<dt>Raises <b>NotImplementedError</b>:</dt> -<dd> -raised to indicate a missing - implementation -</dd> -</dl> -<div align="right"><a href="#top">Up</a></div> -<hr /><hr /> -<a NAME="DefaultResolver" ID="DefaultResolver"></a> -<h2>DefaultResolver</h2> -<p> - Class used to resolve the default way. -</p> -<h3>Derived from</h3> -BaseResolver -<h3>Class Attributes</h3> -<table> -<tr><td>None</td></tr> -</table> -<h3>Class Methods</h3> -<table> -<tr><td>None</td></tr> -</table> -<h3>Methods</h3> -<table> -<tr> -<td><a href="#DefaultResolver.getDictionary">getDictionary</a></td> -<td>Public method to get the attributes of a variable as a dictionary.</td> -</tr><tr> -<td><a href="#DefaultResolver.resolve">resolve</a></td> -<td>Public method to get an attribute from a variable.</td> -</tr> -</table> -<h3>Static Methods</h3> -<table> -<tr><td>None</td></tr> -</table> -<a NAME="DefaultResolver.getDictionary" ID="DefaultResolver.getDictionary"></a> -<h4>DefaultResolver.getDictionary</h4> -<b>getDictionary</b>(<i>var</i>) -<p> - Public method to get the attributes of a variable as a dictionary. -</p><dl> -<dt><i>var</i> (any)</dt> -<dd> -variable to be converted -</dd> -</dl><dl> -<dt>Returns:</dt> -<dd> -dictionary containing the variable attributes -</dd> -</dl><dl> -<dt>Return Type:</dt> -<dd> -dict -</dd> -</dl><a NAME="DefaultResolver.resolve" ID="DefaultResolver.resolve"></a> -<h4>DefaultResolver.resolve</h4> -<b>resolve</b>(<i>var, attribute</i>) -<p> - Public method to get an attribute from a variable. -</p><dl> -<dt><i>var</i> (any)</dt> -<dd> -variable to extract an attribute or value from -</dd><dt><i>attribute</i> (str)</dt> -<dd> -name of the attribute to extract -</dd> -</dl><dl> -<dt>Returns:</dt> -<dd> -value of the attribute -</dd> -</dl><dl> -<dt>Return Type:</dt> -<dd> -any -</dd> -</dl> -<div align="right"><a href="#top">Up</a></div> -<hr /><hr /> -<a NAME="DictResolver" ID="DictResolver"></a> -<h2>DictResolver</h2> -<p> - Class used to resolve from a dictionary. -</p> -<h3>Derived from</h3> -BaseResolver -<h3>Class Attributes</h3> -<table> -<tr><td>None</td></tr> -</table> -<h3>Class Methods</h3> -<table> -<tr><td>None</td></tr> -</table> -<h3>Methods</h3> -<table> -<tr> -<td><a href="#DictResolver.getDictionary">getDictionary</a></td> -<td>Public method to get the attributes of a variable as a dictionary.</td> -</tr><tr> -<td><a href="#DictResolver.keyToStr">keyToStr</a></td> -<td>Public method to get a string representation for a key.</td> -</tr><tr> -<td><a href="#DictResolver.resolve">resolve</a></td> -<td>Public method to get an attribute from a variable.</td> -</tr> -</table> -<h3>Static Methods</h3> -<table> -<tr><td>None</td></tr> -</table> -<a NAME="DictResolver.getDictionary" ID="DictResolver.getDictionary"></a> -<h4>DictResolver.getDictionary</h4> -<b>getDictionary</b>(<i>var</i>) -<p> - Public method to get the attributes of a variable as a dictionary. -</p><dl> -<dt><i>var</i> (any)</dt> -<dd> -variable to be converted -</dd> -</dl><dl> -<dt>Returns:</dt> -<dd> -dictionary containing the variable attributes -</dd> -</dl><dl> -<dt>Return Type:</dt> -<dd> -dict -</dd> -</dl><a NAME="DictResolver.keyToStr" ID="DictResolver.keyToStr"></a> -<h4>DictResolver.keyToStr</h4> -<b>keyToStr</b>(<i>key</i>) -<p> - Public method to get a string representation for a key. -</p><dl> -<dt><i>key</i> (any)</dt> -<dd> -key to be converted -</dd> -</dl><dl> -<dt>Returns:</dt> -<dd> -string representation of the given key -</dd> -</dl><dl> -<dt>Return Type:</dt> -<dd> -str -</dd> -</dl><a NAME="DictResolver.resolve" ID="DictResolver.resolve"></a> -<h4>DictResolver.resolve</h4> -<b>resolve</b>(<i>var, attribute</i>) -<p> - Public method to get an attribute from a variable. -</p><dl> -<dt><i>var</i> (dict)</dt> -<dd> -variable to extract an attribute or value from -</dd><dt><i>attribute</i> (str)</dt> -<dd> -name of the attribute to extract -</dd> -</dl><dl> -<dt>Returns:</dt> -<dd> -value of the attribute -</dd> -</dl><dl> -<dt>Return Type:</dt> -<dd> -any -</dd> -</dl> -<div align="right"><a href="#top">Up</a></div> -<hr /><hr /> -<a NAME="ListResolver" ID="ListResolver"></a> -<h2>ListResolver</h2> -<p> - Class used to resolve from a tuple or list. -</p> -<h3>Derived from</h3> -BaseResolver -<h3>Class Attributes</h3> -<table> -<tr><td>None</td></tr> -</table> -<h3>Class Methods</h3> -<table> -<tr><td>None</td></tr> -</table> -<h3>Methods</h3> -<table> -<tr> -<td><a href="#ListResolver.getDictionary">getDictionary</a></td> -<td>Public method to get the attributes of a variable as a dictionary.</td> -</tr><tr> -<td><a href="#ListResolver.resolve">resolve</a></td> -<td>Public method to get an attribute from a variable.</td> -</tr> -</table> -<h3>Static Methods</h3> -<table> -<tr><td>None</td></tr> -</table> -<a NAME="ListResolver.getDictionary" ID="ListResolver.getDictionary"></a> -<h4>ListResolver.getDictionary</h4> -<b>getDictionary</b>(<i>var</i>) -<p> - Public method to get the attributes of a variable as a dictionary. -</p><dl> -<dt><i>var</i> (any)</dt> -<dd> -variable to be converted -</dd> -</dl><dl> -<dt>Returns:</dt> -<dd> -dictionary containing the variable attributes -</dd> -</dl><dl> -<dt>Return Type:</dt> -<dd> -dict -</dd> -</dl><a NAME="ListResolver.resolve" ID="ListResolver.resolve"></a> -<h4>ListResolver.resolve</h4> -<b>resolve</b>(<i>var, attribute</i>) -<p> - Public method to get an attribute from a variable. -</p><dl> -<dt><i>var</i> (tuple or list)</dt> -<dd> -variable to extract an attribute or value from -</dd><dt><i>attribute</i> (str)</dt> -<dd> -name of the attribute to extract -</dd> -</dl><dl> -<dt>Returns:</dt> -<dd> -value of the attribute -</dd> -</dl><dl> -<dt>Return Type:</dt> -<dd> -any -</dd> -</dl> -<div align="right"><a href="#top">Up</a></div> -<hr /><hr /> -<a NAME="MultiValueDictResolver" ID="MultiValueDictResolver"></a> -<h2>MultiValueDictResolver</h2> -<p> - Class used to resolve from Django multi value dictionaries. -</p> -<h3>Derived from</h3> -DictResolver -<h3>Class Attributes</h3> -<table> -<tr><td>None</td></tr> -</table> -<h3>Class Methods</h3> -<table> -<tr><td>None</td></tr> -</table> -<h3>Methods</h3> -<table> -<tr> -<td><a href="#MultiValueDictResolver.getDictionary">getDictionary</a></td> -<td>Public method to get the attributes of a variable as a dictionary.</td> -</tr><tr> -<td><a href="#MultiValueDictResolver.resolve">resolve</a></td> -<td>Public method to get an attribute from a variable.</td> -</tr> -</table> -<h3>Static Methods</h3> -<table> -<tr><td>None</td></tr> -</table> -<a NAME="MultiValueDictResolver.getDictionary" ID="MultiValueDictResolver.getDictionary"></a> -<h4>MultiValueDictResolver.getDictionary</h4> -<b>getDictionary</b>(<i>var</i>) -<p> - Public method to get the attributes of a variable as a dictionary. -</p><dl> -<dt><i>var</i> (any)</dt> -<dd> -variable to be converted -</dd> -</dl><dl> -<dt>Returns:</dt> -<dd> -dictionary containing the variable attributes -</dd> -</dl><dl> -<dt>Return Type:</dt> -<dd> -dict -</dd> -</dl><a NAME="MultiValueDictResolver.resolve" ID="MultiValueDictResolver.resolve"></a> -<h4>MultiValueDictResolver.resolve</h4> -<b>resolve</b>(<i>var, attribute</i>) -<p> - Public method to get an attribute from a variable. -</p><dl> -<dt><i>var</i> (dict)</dt> -<dd> -variable to extract an attribute or value from -</dd><dt><i>attribute</i> (str)</dt> -<dd> -name of the attribute to extract -</dd> -</dl><dl> -<dt>Returns:</dt> -<dd> -value of the attribute -</dd> -</dl><dl> -<dt>Return Type:</dt> -<dd> -any -</dd> -</dl> -<div align="right"><a href="#top">Up</a></div> -<hr /><hr /> -<a NAME="NdArrayItemsContainer" ID="NdArrayItemsContainer"></a> -<h2>NdArrayItemsContainer</h2> -<p> - Class to store ndarray items. -</p> -<h3>Derived from</h3> -None -<h3>Class Attributes</h3> -<table> -<tr><td>None</td></tr> -</table> -<h3>Class Methods</h3> -<table> -<tr><td>None</td></tr> -</table> -<h3>Methods</h3> -<table> -<tr><td>None</td></tr> -</table> -<h3>Static Methods</h3> -<table> -<tr><td>None</td></tr> -</table> - -<div align="right"><a href="#top">Up</a></div> -<hr /><hr /> -<a NAME="NdArrayResolver" ID="NdArrayResolver"></a> -<h2>NdArrayResolver</h2> -<p> - Class used to resolve from numpy ndarray including some meta data. -</p> -<h3>Derived from</h3> -BaseResolver -<h3>Class Attributes</h3> -<table> -<tr><td>None</td></tr> -</table> -<h3>Class Methods</h3> -<table> -<tr><td>None</td></tr> -</table> -<h3>Methods</h3> -<table> -<tr> -<td><a href="#NdArrayResolver.__isNumeric">__isNumeric</a></td> -<td>Private method to check, if an array is of a numeric type.</td> -</tr><tr> -<td><a href="#NdArrayResolver.getDictionary">getDictionary</a></td> -<td>Public method to get the attributes of a variable as a dictionary.</td> -</tr><tr> -<td><a href="#NdArrayResolver.resolve">resolve</a></td> -<td>Public method to get an attribute from a variable.</td> -</tr> -</table> -<h3>Static Methods</h3> -<table> -<tr><td>None</td></tr> -</table> -<a NAME="NdArrayResolver.__isNumeric" ID="NdArrayResolver.__isNumeric"></a> -<h4>NdArrayResolver.__isNumeric</h4> -<b>__isNumeric</b>(<i>arr</i>) -<p> - Private method to check, if an array is of a numeric type. -</p><dl> -<dt><i>arr</i> (ndarray)</dt> -<dd> -array to check -</dd> -</dl><dl> -<dt>Returns:</dt> -<dd> -flag indicating a numeric array -</dd> -</dl><dl> -<dt>Return Type:</dt> -<dd> -bool -</dd> -</dl><a NAME="NdArrayResolver.getDictionary" ID="NdArrayResolver.getDictionary"></a> -<h4>NdArrayResolver.getDictionary</h4> -<b>getDictionary</b>(<i>var</i>) -<p> - Public method to get the attributes of a variable as a dictionary. -</p><dl> -<dt><i>var</i> (any)</dt> -<dd> -variable to be converted -</dd> -</dl><dl> -<dt>Returns:</dt> -<dd> -dictionary containing the variable attributes -</dd> -</dl><dl> -<dt>Return Type:</dt> -<dd> -dict -</dd> -</dl><a NAME="NdArrayResolver.resolve" ID="NdArrayResolver.resolve"></a> -<h4>NdArrayResolver.resolve</h4> -<b>resolve</b>(<i>var, attribute</i>) -<p> - Public method to get an attribute from a variable. -</p><dl> -<dt><i>var</i> (tuple or list)</dt> -<dd> -variable to extract an attribute or value from -</dd><dt><i>attribute</i> (str)</dt> -<dd> -id of the value to extract -</dd> -</dl><dl> -<dt>Returns:</dt> -<dd> -value of the attribute -</dd> -</dl><dl> -<dt>Return Type:</dt> -<dd> -any -</dd> -</dl> -<div align="right"><a href="#top">Up</a></div> -<hr /><hr /> -<a NAME="SetResolver" ID="SetResolver"></a> -<h2>SetResolver</h2> -<p> - Class used to resolve from a set or frozenset. -</p> -<h3>Derived from</h3> -BaseResolver -<h3>Class Attributes</h3> -<table> -<tr><td>None</td></tr> -</table> -<h3>Class Methods</h3> -<table> -<tr><td>None</td></tr> -</table> -<h3>Methods</h3> -<table> -<tr> -<td><a href="#SetResolver.getDictionary">getDictionary</a></td> -<td>Public method to get the attributes of a variable as a dictionary.</td> -</tr><tr> -<td><a href="#SetResolver.resolve">resolve</a></td> -<td>Public method to get an attribute from a variable.</td> -</tr> -</table> -<h3>Static Methods</h3> -<table> -<tr><td>None</td></tr> -</table> -<a NAME="SetResolver.getDictionary" ID="SetResolver.getDictionary"></a> -<h4>SetResolver.getDictionary</h4> -<b>getDictionary</b>(<i>var</i>) -<p> - Public method to get the attributes of a variable as a dictionary. -</p><dl> -<dt><i>var</i> (any)</dt> -<dd> -variable to be converted -</dd> -</dl><dl> -<dt>Returns:</dt> -<dd> -dictionary containing the variable attributes -</dd> -</dl><dl> -<dt>Return Type:</dt> -<dd> -dict -</dd> -</dl><a NAME="SetResolver.resolve" ID="SetResolver.resolve"></a> -<h4>SetResolver.resolve</h4> -<b>resolve</b>(<i>var, attribute</i>) -<p> - Public method to get an attribute from a variable. -</p><dl> -<dt><i>var</i> (tuple or list)</dt> -<dd> -variable to extract an attribute or value from -</dd><dt><i>attribute</i> (str)</dt> -<dd> -id of the value to extract -</dd> -</dl><dl> -<dt>Returns:</dt> -<dd> -value of the attribute -</dd> -</dl><dl> -<dt>Return Type:</dt> -<dd> -any -</dd> -</dl> -<div align="right"><a href="#top">Up</a></div> -<hr /><hr /> -<a NAME="_initTypeMap" ID="_initTypeMap"></a> -<h2>_initTypeMap</h2> -<b>_initTypeMap</b>(<i></i>) -<p> - Protected function to initialize the type map. -</p> -<div align="right"><a href="#top">Up</a></div> -<hr /><hr /> -<a NAME="getType" ID="getType"></a> -<h2>getType</h2> -<b>getType</b>(<i>obj</i>) -<p> - Public method to get the type information for an object. -</p><dl> -<dt><i>obj</i> (any)</dt> -<dd> -object to get type information for -</dd> -</dl><dl> -<dt>Returns:</dt> -<dd> -tuple containing the type, type name, type string and resolver -</dd> -</dl><dl> -<dt>Return Type:</dt> -<dd> -tuple of type, str, str, BaseResolver -</dd> -</dl> -<div align="right"><a href="#top">Up</a></div> -<hr /> -</body></html> \ No newline at end of file
--- a/Documentation/Source/eric6.DebugClients.Python2.FlexCompleter.html Sun Oct 16 14:43:18 2016 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,288 +0,0 @@ -<!DOCTYPE html> -<html><head> -<title>eric6.DebugClients.Python2.FlexCompleter</title> -<meta charset="UTF-8"> -<style> -body { - background: #EDECE6; - margin: 0em 1em 10em 1em; - color: black; -} - -h1 { color: white; background: #85774A; } -h2 { color: white; background: #85774A; } -h3 { color: white; background: #9D936E; } -h4 { color: white; background: #9D936E; } - -a { color: #BA6D36; } - -</style> -</head> -<body><a NAME="top" ID="top"></a> -<h1>eric6.DebugClients.Python2.FlexCompleter</h1> -<p> -Word completion for the eric6 shell. -</p><p> -<h4>NOTE for eric6 variant</h4> -</p><p> - This version is a re-implementation of FlexCompleter - as found in the PyQwt package. It is modified to work with the eric6 debug - clients. -</p><p> - -</p><p> -<h4>NOTE for the PyQwt variant</h4> -</p><p> - This version is a re-implementation of FlexCompleter - with readline support for PyQt&sip-3.6 and earlier. -</p><p> - Full readline support is present in PyQt&sip-snapshot-20030531 and later. -</p><p> - -</p><p> -<h4>NOTE for FlexCompleter</h4> -</p><p> - This version is a re-implementation of rlcompleter with - selectable namespace. -</p><p> - The problem with rlcompleter is that it's hardwired to work with - __main__.__dict__, and in some cases one may have 'sandboxed' namespaces. - So this class is a ripoff of rlcompleter, with the namespace to work in as - an optional parameter. -</p><p> - This class can be used just like rlcompleter, but the Completer class now - has a constructor with the optional 'namespace' parameter. -</p><p> - A patch has been submitted to Python@sourceforge for these changes to go in - the standard Python distribution. -</p><p> - -</p><p> -<h4>Original rlcompleter documentation</h4> -</p><p> - This requires the latest extension to the readline module (the - completes keywords, built-ins and globals in __main__; when completing - NAME.NAME..., it evaluates (!) the expression up to the last dot and - completes its attributes. -</p><p> - It's very cool to do "import string" type "string.", hit the - completion key (twice), and see the list of names defined by the - string module! -</p><p> - Tip: to use the tab key as the completion key, call -</p><p> - 'readline.parse_and_bind("tab: complete")' -</p><p> - <b>Notes</b>: - <ul> - <li> - Exceptions raised by the completer function are *ignored* (and - generally cause the completion to fail). This is a feature -- since - readline sets the tty device in raw (or cbreak) mode, printing a - traceback wouldn't work well without some complicated hoopla to save, - reset and restore the tty state. - </li> - <li> - The evaluation of the NAME.NAME... form may cause arbitrary - application defined code to be executed if an object with a - __getattr__ hook is found. Since it is the responsibility of the - application (or the user) to enable this feature, I consider this an - acceptable risk. More complicated expressions (e.g. function calls or - indexing operations) are *not* evaluated. - </li> - <li> - GNU readline is also used by the built-in functions input() and - raw_input(), and thus these also benefit/suffer from the completer - features. Clearly an interactive application can benefit by - specifying its own completer function and using raw_input() for all - its input. - </li> - <li> - When the original stdin is not a tty device, GNU readline is never - used, and this module (and the readline module) are silently inactive. - </li> - </ul> -</p> -<h3>Global Attributes</h3> -<table> -<tr><td>__all__</td></tr> -</table> -<h3>Classes</h3> -<table> -<tr> -<td><a href="#Completer">Completer</a></td> -<td>Class implementing the command line completer object.</td> -</tr> -</table> -<h3>Functions</h3> -<table> -<tr> -<td><a href="#get_class_members">get_class_members</a></td> -<td>Module function to retrieve the class members.</td> -</tr> -</table> -<hr /><hr /> -<a NAME="Completer" ID="Completer"></a> -<h2>Completer</h2> -<p> - Class implementing the command line completer object. -</p> -<h3>Derived from</h3> -object -<h3>Class Attributes</h3> -<table> -<tr><td>None</td></tr> -</table> -<h3>Class Methods</h3> -<table> -<tr><td>None</td></tr> -</table> -<h3>Methods</h3> -<table> -<tr> -<td><a href="#Completer.__init__">Completer</a></td> -<td>Constructor</td> -</tr><tr> -<td><a href="#Completer._callable_postfix">_callable_postfix</a></td> -<td>Protected method to check for a callable.</td> -</tr><tr> -<td><a href="#Completer.attr_matches">attr_matches</a></td> -<td>Public method to compute matches when text contains a dot.</td> -</tr><tr> -<td><a href="#Completer.complete">complete</a></td> -<td>Public method to return the next possible completion for 'text'.</td> -</tr><tr> -<td><a href="#Completer.global_matches">global_matches</a></td> -<td>Public method to compute matches when text is a simple name.</td> -</tr> -</table> -<h3>Static Methods</h3> -<table> -<tr><td>None</td></tr> -</table> -<a NAME="Completer.__init__" ID="Completer.__init__"></a> -<h4>Completer (Constructor)</h4> -<b>Completer</b>(<i>namespace=None</i>) -<p> - Constructor -</p><p> - Completer([namespace]) -> completer instance. -</p><p> - If unspecified, the default namespace where completions are performed - is __main__ (technically, __main__.__dict__). Namespaces should be - given as dictionaries. -</p><p> - Completer instances should be used as the completion mechanism of - readline via the set_completer() call: -</p><p> - readline.set_completer(Completer(my_namespace).complete) -</p><dl> -<dt><i>namespace</i></dt> -<dd> -namespace for the completer -</dd> -</dl><dl> -<dt>Raises <b>TypeError</b>:</dt> -<dd> -raised to indicate a wrong namespace structure -</dd> -</dl><a NAME="Completer._callable_postfix" ID="Completer._callable_postfix"></a> -<h4>Completer._callable_postfix</h4> -<b>_callable_postfix</b>(<i>val, word</i>) -<p> - Protected method to check for a callable. -</p><dl> -<dt><i>val</i></dt> -<dd> -value to check (object) -</dd><dt><i>word</i></dt> -<dd> -word to ammend (string) -</dd> -</dl><dl> -<dt>Returns:</dt> -<dd> -ammended word (string) -</dd> -</dl><a NAME="Completer.attr_matches" ID="Completer.attr_matches"></a> -<h4>Completer.attr_matches</h4> -<b>attr_matches</b>(<i>text</i>) -<p> - Public method to compute matches when text contains a dot. -</p><p> - Assuming the text is of the form NAME.NAME....[NAME], and is - evaluatable in self.namespace, it will be evaluated and its attributes - (as revealed by dir()) are used as possible completions. (For class - instances, class members are are also considered.) -</p><p> - <b>WARNING</b>: this can still invoke arbitrary C code, if an object - with a __getattr__ hook is evaluated. -</p><dl> -<dt><i>text</i></dt> -<dd> -The text to be completed. (string) -</dd> -</dl><dl> -<dt>Returns:</dt> -<dd> -A list of all matches. -</dd> -</dl><a NAME="Completer.complete" ID="Completer.complete"></a> -<h4>Completer.complete</h4> -<b>complete</b>(<i>text, state</i>) -<p> - Public method to return the next possible completion for 'text'. -</p><p> - This is called successively with state == 0, 1, 2, ... until it - returns None. The completion should begin with 'text'. -</p><dl> -<dt><i>text</i></dt> -<dd> -The text to be completed. (string) -</dd><dt><i>state</i></dt> -<dd> -The state of the completion. (integer) -</dd> -</dl><dl> -<dt>Returns:</dt> -<dd> -The possible completions as a list of strings. -</dd> -</dl><a NAME="Completer.global_matches" ID="Completer.global_matches"></a> -<h4>Completer.global_matches</h4> -<b>global_matches</b>(<i>text</i>) -<p> - Public method to compute matches when text is a simple name. -</p><dl> -<dt><i>text</i></dt> -<dd> -The text to be completed. (string) -</dd> -</dl><dl> -<dt>Returns:</dt> -<dd> -A list of all keywords, built-in functions and names currently - defined in self.namespace that match. -</dd> -</dl> -<div align="right"><a href="#top">Up</a></div> -<hr /><hr /> -<a NAME="get_class_members" ID="get_class_members"></a> -<h2>get_class_members</h2> -<b>get_class_members</b>(<i>klass</i>) -<p> - Module function to retrieve the class members. -</p><dl> -<dt><i>klass</i></dt> -<dd> -The class object to be analysed. -</dd> -</dl><dl> -<dt>Returns:</dt> -<dd> -A list of all names defined in the class. -</dd> -</dl> -<div align="right"><a href="#top">Up</a></div> -<hr /> -</body></html> \ No newline at end of file
--- a/Documentation/Source/eric6.DebugClients.Python2.PyProfile.html Sun Oct 16 14:43:18 2016 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,182 +0,0 @@ -<!DOCTYPE html> -<html><head> -<title>eric6.DebugClients.Python2.PyProfile</title> -<meta charset="UTF-8"> -<style> -body { - background: #EDECE6; - margin: 0em 1em 10em 1em; - color: black; -} - -h1 { color: white; background: #85774A; } -h2 { color: white; background: #85774A; } -h3 { color: white; background: #9D936E; } -h4 { color: white; background: #9D936E; } - -a { color: #BA6D36; } - -</style> -</head> -<body><a NAME="top" ID="top"></a> -<h1>eric6.DebugClients.Python2.PyProfile</h1> -<p> -Module defining additions to the standard Python profile.py. -</p> -<h3>Global Attributes</h3> -<table> -<tr><td>None</td></tr> -</table> -<h3>Classes</h3> -<table> -<tr> -<td><a href="#PyProfile">PyProfile</a></td> -<td>Class extending the standard Python profiler with additional methods.</td> -</tr> -</table> -<h3>Functions</h3> -<table> -<tr><td>None</td></tr> -</table> -<hr /><hr /> -<a NAME="PyProfile" ID="PyProfile"></a> -<h2>PyProfile</h2> -<p> - Class extending the standard Python profiler with additional methods. -</p><p> - This class extends the standard Python profiler by the functionality to - save the collected timing data in a timing cache, to restore these data - on subsequent calls, to store a profile dump to a standard filename and - to erase these caches. -</p> -<h3>Derived from</h3> -profile.Profile -<h3>Class Attributes</h3> -<table> -<tr><td>dispatch</td></tr> -</table> -<h3>Class Methods</h3> -<table> -<tr><td>None</td></tr> -</table> -<h3>Methods</h3> -<table> -<tr> -<td><a href="#PyProfile.__init__">PyProfile</a></td> -<td>Constructor</td> -</tr><tr> -<td><a href="#PyProfile.__restore">__restore</a></td> -<td>Private method to restore the timing data from the timing cache.</td> -</tr><tr> -<td><a href="#PyProfile.dump_stats">dump_stats</a></td> -<td>Public method to dump the statistics data.</td> -</tr><tr> -<td><a href="#PyProfile.erase">erase</a></td> -<td>Public method to erase the collected timing data.</td> -</tr><tr> -<td><a href="#PyProfile.fix_frame_filename">fix_frame_filename</a></td> -<td>Public method used to fixup the filename for a given frame.</td> -</tr><tr> -<td><a href="#PyProfile.save">save</a></td> -<td>Public method to store the collected profile data.</td> -</tr><tr> -<td><a href="#PyProfile.trace_dispatch_call">trace_dispatch_call</a></td> -<td>Public method used to trace functions calls.</td> -</tr> -</table> -<h3>Static Methods</h3> -<table> -<tr><td>None</td></tr> -</table> -<a NAME="PyProfile.__init__" ID="PyProfile.__init__"></a> -<h4>PyProfile (Constructor)</h4> -<b>PyProfile</b>(<i>basename, timer=None, bias=None</i>) -<p> - Constructor -</p><dl> -<dt><i>basename</i></dt> -<dd> -name of the script to be profiled (string) -</dd><dt><i>timer</i></dt> -<dd> -function defining the timing calculation -</dd><dt><i>bias</i></dt> -<dd> -calibration value (float) -</dd> -</dl><a NAME="PyProfile.__restore" ID="PyProfile.__restore"></a> -<h4>PyProfile.__restore</h4> -<b>__restore</b>(<i></i>) -<p> - Private method to restore the timing data from the timing cache. -</p><a NAME="PyProfile.dump_stats" ID="PyProfile.dump_stats"></a> -<h4>PyProfile.dump_stats</h4> -<b>dump_stats</b>(<i>file</i>) -<p> - Public method to dump the statistics data. -</p><dl> -<dt><i>file</i></dt> -<dd> -name of the file to write to (string) -</dd> -</dl><a NAME="PyProfile.erase" ID="PyProfile.erase"></a> -<h4>PyProfile.erase</h4> -<b>erase</b>(<i></i>) -<p> - Public method to erase the collected timing data. -</p><a NAME="PyProfile.fix_frame_filename" ID="PyProfile.fix_frame_filename"></a> -<h4>PyProfile.fix_frame_filename</h4> -<b>fix_frame_filename</b>(<i>frame</i>) -<p> - Public method used to fixup the filename for a given frame. -</p><p> - The logic employed here is that if a module was loaded - from a .pyc file, then the correct .py to operate with - should be in the same path as the .pyc. The reason this - logic is needed is that when a .pyc file is generated, the - filename embedded and thus what is readable in the code object - of the frame object is the fully qualified filepath when the - pyc is generated. If files are moved from machine to machine - this can break debugging as the .pyc will refer to the .py - on the original machine. Another case might be sharing - code over a network... This logic deals with that. -</p><dl> -<dt><i>frame</i></dt> -<dd> -the frame object -</dd> -</dl><dl> -<dt>Returns:</dt> -<dd> -fixed up file name (string) -</dd> -</dl><a NAME="PyProfile.save" ID="PyProfile.save"></a> -<h4>PyProfile.save</h4> -<b>save</b>(<i></i>) -<p> - Public method to store the collected profile data. -</p><a NAME="PyProfile.trace_dispatch_call" ID="PyProfile.trace_dispatch_call"></a> -<h4>PyProfile.trace_dispatch_call</h4> -<b>trace_dispatch_call</b>(<i>frame, t</i>) -<p> - Public method used to trace functions calls. -</p><p> - This is a variant of the one found in the standard Python - profile.py calling fix_frame_filename above. -</p><dl> -<dt><i>frame</i></dt> -<dd> -reference to the call frame -</dd><dt><i>t</i></dt> -<dd> -arguments of the call -</dd> -</dl><dl> -<dt>Returns:</dt> -<dd> -flag indicating a handled call -</dd> -</dl> -<div align="right"><a href="#top">Up</a></div> -<hr /> -</body></html> \ No newline at end of file
--- a/Documentation/Source/eric6.DebugClients.Python2.eric6dbgstub.html Sun Oct 16 14:43:18 2016 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,134 +0,0 @@ -<!DOCTYPE html> -<html><head> -<title>eric6.DebugClients.Python2.eric6dbgstub</title> -<meta charset="UTF-8"> -<style> -body { - background: #EDECE6; - margin: 0em 1em 10em 1em; - color: black; -} - -h1 { color: white; background: #85774A; } -h2 { color: white; background: #85774A; } -h3 { color: white; background: #9D936E; } -h4 { color: white; background: #9D936E; } - -a { color: #BA6D36; } - -</style> -</head> -<body><a NAME="top" ID="top"></a> -<h1>eric6.DebugClients.Python2.eric6dbgstub</h1> -<p> -Module implementing a debugger stub for remote debugging. -</p> -<h3>Global Attributes</h3> -<table> -<tr><td>__scriptname</td></tr><tr><td>debugger</td></tr><tr><td>ericpath</td></tr><tr><td>modDir</td></tr> -</table> -<h3>Classes</h3> -<table> -<tr><td>None</td></tr> -</table> -<h3>Functions</h3> -<table> -<tr> -<td><a href="#initDebugger">initDebugger</a></td> -<td>Module function to initialize a debugger for remote debugging.</td> -</tr><tr> -<td><a href="#runcall">runcall</a></td> -<td>Module function mimicing the Pdb interface.</td> -</tr><tr> -<td><a href="#setScriptname">setScriptname</a></td> -<td>Module function to set the scriptname to be reported back to the IDE.</td> -</tr><tr> -<td><a href="#startDebugger">startDebugger</a></td> -<td>Module function used to start the remote debugger.</td> -</tr> -</table> -<hr /><hr /> -<a NAME="initDebugger" ID="initDebugger"></a> -<h2>initDebugger</h2> -<b>initDebugger</b>(<i>kind="standard"</i>) -<p> - Module function to initialize a debugger for remote debugging. -</p><dl> -<dt><i>kind</i></dt> -<dd> -type of debugger ("standard" or "threads") -</dd> -</dl><dl> -<dt>Returns:</dt> -<dd> -flag indicating success (boolean) -</dd> -</dl><dl> -<dt>Raises <b>ValueError</b>:</dt> -<dd> -raised to indicate an invalid debugger kind - was requested -</dd> -</dl> -<div align="right"><a href="#top">Up</a></div> -<hr /><hr /> -<a NAME="runcall" ID="runcall"></a> -<h2>runcall</h2> -<b>runcall</b>(<i>func, *args</i>) -<p> - Module function mimicing the Pdb interface. -</p><dl> -<dt><i>func</i></dt> -<dd> -function to be called (function object) -</dd><dt><i>*args</i></dt> -<dd> -arguments being passed to func -</dd> -</dl><dl> -<dt>Returns:</dt> -<dd> -the function result -</dd> -</dl> -<div align="right"><a href="#top">Up</a></div> -<hr /><hr /> -<a NAME="setScriptname" ID="setScriptname"></a> -<h2>setScriptname</h2> -<b>setScriptname</b>(<i>name</i>) -<p> - Module function to set the scriptname to be reported back to the IDE. -</p><dl> -<dt><i>name</i></dt> -<dd> -absolute pathname of the script (string) -</dd> -</dl> -<div align="right"><a href="#top">Up</a></div> -<hr /><hr /> -<a NAME="startDebugger" ID="startDebugger"></a> -<h2>startDebugger</h2> -<b>startDebugger</b>(<i>enableTrace=True, exceptions=True, tracePython=False, redirect=True</i>) -<p> - Module function used to start the remote debugger. -</p><dl> -<dt><i>enableTrace=</i></dt> -<dd> -flag to enable the tracing function (boolean) -</dd><dt><i>exceptions=</i></dt> -<dd> -flag to enable exception reporting of the IDE - (boolean) -</dd><dt><i>tracePython=</i></dt> -<dd> -flag to enable tracing into the Python library - (boolean) -</dd><dt><i>redirect=</i></dt> -<dd> -flag indicating redirection of stdin, stdout and - stderr (boolean) -</dd> -</dl> -<div align="right"><a href="#top">Up</a></div> -<hr /> -</body></html> \ No newline at end of file
--- a/Documentation/Source/eric6.DebugClients.Python2.getpass.html Sun Oct 16 14:43:18 2016 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,85 +0,0 @@ -<!DOCTYPE html> -<html><head> -<title>eric6.DebugClients.Python2.getpass</title> -<meta charset="UTF-8"> -<style> -body { - background: #EDECE6; - margin: 0em 1em 10em 1em; - color: black; -} - -h1 { color: white; background: #85774A; } -h2 { color: white; background: #85774A; } -h3 { color: white; background: #9D936E; } -h4 { color: white; background: #9D936E; } - -a { color: #BA6D36; } - -</style> -</head> -<body><a NAME="top" ID="top"></a> -<h1>eric6.DebugClients.Python2.getpass</h1> -<p> -Module implementing utilities to get a password and/or the current user name. -</p><p> -getpass(prompt) - prompt for a password, with echo turned off -getuser() - get the user name from the environment or password database -</p><p> -This module is a replacement for the one found in the Python distribution. It -is to provide a debugger compatible variant of the a.m. functions. -</p> -<h3>Global Attributes</h3> -<table> -<tr><td>__all__</td></tr><tr><td>default_getpass</td></tr><tr><td>unix_getpass</td></tr><tr><td>win_getpass</td></tr> -</table> -<h3>Classes</h3> -<table> -<tr><td>None</td></tr> -</table> -<h3>Functions</h3> -<table> -<tr> -<td><a href="#getpass">getpass</a></td> -<td>Function to prompt for a password, with echo turned off.</td> -</tr><tr> -<td><a href="#getuser">getuser</a></td> -<td>Function to get the username from the environment or password database.</td> -</tr> -</table> -<hr /><hr /> -<a NAME="getpass" ID="getpass"></a> -<h2>getpass</h2> -<b>getpass</b>(<i>prompt='Password: '</i>) -<p> - Function to prompt for a password, with echo turned off. -</p><dl> -<dt><i>prompt</i></dt> -<dd> -Prompt to be shown to the user (string) -</dd> -</dl><dl> -<dt>Returns:</dt> -<dd> -Password entered by the user (string) -</dd> -</dl> -<div align="right"><a href="#top">Up</a></div> -<hr /><hr /> -<a NAME="getuser" ID="getuser"></a> -<h2>getuser</h2> -<b>getuser</b>(<i></i>) -<p> - Function to get the username from the environment or password database. -</p><p> - First try various environment variables, then the password - database. This works on Windows as long as USERNAME is set. -</p><dl> -<dt>Returns:</dt> -<dd> -username (string) -</dd> -</dl> -<div align="right"><a href="#top">Up</a></div> -<hr /> -</body></html> \ No newline at end of file
--- a/Documentation/Source/eric6.DebugClients.Python3.AsyncFile.html Sun Oct 16 14:43:18 2016 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,435 +0,0 @@ -<!DOCTYPE html> -<html><head> -<title>eric6.DebugClients.Python3.AsyncFile</title> -<meta charset="UTF-8"> -<style> -body { - background: #EDECE6; - margin: 0em 1em 10em 1em; - color: black; -} - -h1 { color: white; background: #85774A; } -h2 { color: white; background: #85774A; } -h3 { color: white; background: #9D936E; } -h4 { color: white; background: #9D936E; } - -a { color: #BA6D36; } - -</style> -</head> -<body><a NAME="top" ID="top"></a> -<h1>eric6.DebugClients.Python3.AsyncFile</h1> -<p> -Module implementing an asynchronous file like socket interface for the -debugger. -</p> -<h3>Global Attributes</h3> -<table> -<tr><td>None</td></tr> -</table> -<h3>Classes</h3> -<table> -<tr> -<td><a href="#AsyncFile">AsyncFile</a></td> -<td>Class wrapping a socket object with a file interface.</td> -</tr> -</table> -<h3>Functions</h3> -<table> -<tr> -<td><a href="#AsyncPendingWrite">AsyncPendingWrite</a></td> -<td>Module function to check for data to be written.</td> -</tr> -</table> -<hr /><hr /> -<a NAME="AsyncFile" ID="AsyncFile"></a> -<h2>AsyncFile</h2> -<p> - Class wrapping a socket object with a file interface. -</p> -<h3>Derived from</h3> -object -<h3>Class Attributes</h3> -<table> -<tr><td>maxbuffersize</td></tr><tr><td>maxtries</td></tr> -</table> -<h3>Class Methods</h3> -<table> -<tr><td>None</td></tr> -</table> -<h3>Methods</h3> -<table> -<tr> -<td><a href="#AsyncFile.__init__">AsyncFile</a></td> -<td>Constructor</td> -</tr><tr> -<td><a href="#AsyncFile.__checkMode">__checkMode</a></td> -<td>Private method to check the mode.</td> -</tr><tr> -<td><a href="#AsyncFile.__nWrite">__nWrite</a></td> -<td>Private method to write a specific number of pending bytes.</td> -</tr><tr> -<td><a href="#AsyncFile.close">close</a></td> -<td>Public method to close the file.</td> -</tr><tr> -<td><a href="#AsyncFile.fileno">fileno</a></td> -<td>Public method returning the file number.</td> -</tr><tr> -<td><a href="#AsyncFile.flush">flush</a></td> -<td>Public method to write all pending bytes.</td> -</tr><tr> -<td><a href="#AsyncFile.isatty">isatty</a></td> -<td>Public method to indicate whether a tty interface is supported.</td> -</tr><tr> -<td><a href="#AsyncFile.pendingWrite">pendingWrite</a></td> -<td>Public method that returns the number of bytes waiting to be written.</td> -</tr><tr> -<td><a href="#AsyncFile.read">read</a></td> -<td>Public method to read bytes from this file.</td> -</tr><tr> -<td><a href="#AsyncFile.read_p">read_p</a></td> -<td>Public method to read bytes from this file.</td> -</tr><tr> -<td><a href="#AsyncFile.readable">readable</a></td> -<td>Public method to check, if the stream is readable.</td> -</tr><tr> -<td><a href="#AsyncFile.readline">readline</a></td> -<td>Public method to read one line from this file.</td> -</tr><tr> -<td><a href="#AsyncFile.readline_p">readline_p</a></td> -<td>Public method to read a line from this file.</td> -</tr><tr> -<td><a href="#AsyncFile.readlines">readlines</a></td> -<td>Public method to read all lines from this file.</td> -</tr><tr> -<td><a href="#AsyncFile.seek">seek</a></td> -<td>Public method to move the filepointer.</td> -</tr><tr> -<td><a href="#AsyncFile.seekable">seekable</a></td> -<td>Public method to check, if the stream is seekable.</td> -</tr><tr> -<td><a href="#AsyncFile.tell">tell</a></td> -<td>Public method to get the filepointer position.</td> -</tr><tr> -<td><a href="#AsyncFile.truncate">truncate</a></td> -<td>Public method to truncate the file.</td> -</tr><tr> -<td><a href="#AsyncFile.writable">writable</a></td> -<td>Public method to check, if a stream is writable.</td> -</tr><tr> -<td><a href="#AsyncFile.write">write</a></td> -<td>Public method to write a string to the file.</td> -</tr><tr> -<td><a href="#AsyncFile.write_p">write_p</a></td> -<td>Public method to write a string to the file.</td> -</tr><tr> -<td><a href="#AsyncFile.writelines">writelines</a></td> -<td>Public method to write a list of strings to the file.</td> -</tr> -</table> -<h3>Static Methods</h3> -<table> -<tr><td>None</td></tr> -</table> -<a NAME="AsyncFile.__init__" ID="AsyncFile.__init__"></a> -<h4>AsyncFile (Constructor)</h4> -<b>AsyncFile</b>(<i>sock, mode, name</i>) -<p> - Constructor -</p><dl> -<dt><i>sock</i></dt> -<dd> -the socket object being wrapped -</dd><dt><i>mode</i></dt> -<dd> -mode of this file (string) -</dd><dt><i>name</i></dt> -<dd> -name of this file (string) -</dd> -</dl><a NAME="AsyncFile.__checkMode" ID="AsyncFile.__checkMode"></a> -<h4>AsyncFile.__checkMode</h4> -<b>__checkMode</b>(<i>mode</i>) -<p> - Private method to check the mode. -</p><p> - This method checks, if an operation is permitted according to - the mode of the file. If it is not, an IOError is raised. -</p><dl> -<dt><i>mode</i></dt> -<dd> -the mode to be checked (string) -</dd> -</dl><dl> -<dt>Raises <b>IOError</b>:</dt> -<dd> -raised to indicate a bad file descriptor -</dd> -</dl><a NAME="AsyncFile.__nWrite" ID="AsyncFile.__nWrite"></a> -<h4>AsyncFile.__nWrite</h4> -<b>__nWrite</b>(<i>n</i>) -<p> - Private method to write a specific number of pending bytes. -</p><dl> -<dt><i>n</i></dt> -<dd> -the number of bytes to be written (int) -</dd> -</dl><a NAME="AsyncFile.close" ID="AsyncFile.close"></a> -<h4>AsyncFile.close</h4> -<b>close</b>(<i>closeit=False</i>) -<p> - Public method to close the file. -</p><dl> -<dt><i>closeit</i></dt> -<dd> -flag to indicate a close ordered by the debugger code - (boolean) -</dd> -</dl><a NAME="AsyncFile.fileno" ID="AsyncFile.fileno"></a> -<h4>AsyncFile.fileno</h4> -<b>fileno</b>(<i></i>) -<p> - Public method returning the file number. -</p><dl> -<dt>Returns:</dt> -<dd> -file number (int) -</dd> -</dl><a NAME="AsyncFile.flush" ID="AsyncFile.flush"></a> -<h4>AsyncFile.flush</h4> -<b>flush</b>(<i></i>) -<p> - Public method to write all pending bytes. -</p><a NAME="AsyncFile.isatty" ID="AsyncFile.isatty"></a> -<h4>AsyncFile.isatty</h4> -<b>isatty</b>(<i></i>) -<p> - Public method to indicate whether a tty interface is supported. -</p><dl> -<dt>Returns:</dt> -<dd> -always false -</dd> -</dl><a NAME="AsyncFile.pendingWrite" ID="AsyncFile.pendingWrite"></a> -<h4>AsyncFile.pendingWrite</h4> -<b>pendingWrite</b>(<i></i>) -<p> - Public method that returns the number of bytes waiting to be written. -</p><dl> -<dt>Returns:</dt> -<dd> -the number of bytes to be written (int) -</dd> -</dl><a NAME="AsyncFile.read" ID="AsyncFile.read"></a> -<h4>AsyncFile.read</h4> -<b>read</b>(<i>size=-1</i>) -<p> - Public method to read bytes from this file. -</p><dl> -<dt><i>size</i></dt> -<dd> -maximum number of bytes to be read (int) -</dd> -</dl><dl> -<dt>Returns:</dt> -<dd> -the bytes read (any) -</dd> -</dl><a NAME="AsyncFile.read_p" ID="AsyncFile.read_p"></a> -<h4>AsyncFile.read_p</h4> -<b>read_p</b>(<i>size=-1</i>) -<p> - Public method to read bytes from this file. -</p><dl> -<dt><i>size</i></dt> -<dd> -maximum number of bytes to be read (int) -</dd> -</dl><dl> -<dt>Returns:</dt> -<dd> -the bytes read (any) -</dd> -</dl><a NAME="AsyncFile.readable" ID="AsyncFile.readable"></a> -<h4>AsyncFile.readable</h4> -<b>readable</b>(<i></i>) -<p> - Public method to check, if the stream is readable. -</p><dl> -<dt>Returns:</dt> -<dd> -flag indicating a readable stream (boolean) -</dd> -</dl><a NAME="AsyncFile.readline" ID="AsyncFile.readline"></a> -<h4>AsyncFile.readline</h4> -<b>readline</b>(<i>sizehint=-1</i>) -<p> - Public method to read one line from this file. -</p><dl> -<dt><i>sizehint</i></dt> -<dd> -hint of the numbers of bytes to be read (int) -</dd> -</dl><dl> -<dt>Returns:</dt> -<dd> -one line read (string) -</dd> -</dl><a NAME="AsyncFile.readline_p" ID="AsyncFile.readline_p"></a> -<h4>AsyncFile.readline_p</h4> -<b>readline_p</b>(<i>size=-1</i>) -<p> - Public method to read a line from this file. -</p><p> - <b>Note</b>: This method will not block and may return - only a part of a line if that is all that is available. -</p><dl> -<dt><i>size</i></dt> -<dd> -maximum number of bytes to be read (int) -</dd> -</dl><dl> -<dt>Returns:</dt> -<dd> -one line of text up to size bytes (string) -</dd> -</dl><a NAME="AsyncFile.readlines" ID="AsyncFile.readlines"></a> -<h4>AsyncFile.readlines</h4> -<b>readlines</b>(<i>sizehint=-1</i>) -<p> - Public method to read all lines from this file. -</p><dl> -<dt><i>sizehint</i></dt> -<dd> -hint of the numbers of bytes to be read (int) -</dd> -</dl><dl> -<dt>Returns:</dt> -<dd> -list of lines read (list of strings) -</dd> -</dl><a NAME="AsyncFile.seek" ID="AsyncFile.seek"></a> -<h4>AsyncFile.seek</h4> -<b>seek</b>(<i>offset, whence=0</i>) -<p> - Public method to move the filepointer. -</p><dl> -<dt><i>offset</i></dt> -<dd> -offset to move the filepointer to (integer) -</dd><dt><i>whence</i></dt> -<dd> -position the offset relates to -</dd> -</dl><dl> -<dt>Raises <b>IOError</b>:</dt> -<dd> -This method is not supported and always raises an - IOError. -</dd> -</dl><a NAME="AsyncFile.seekable" ID="AsyncFile.seekable"></a> -<h4>AsyncFile.seekable</h4> -<b>seekable</b>(<i></i>) -<p> - Public method to check, if the stream is seekable. -</p><dl> -<dt>Returns:</dt> -<dd> -flag indicating a seekable stream (boolean) -</dd> -</dl><a NAME="AsyncFile.tell" ID="AsyncFile.tell"></a> -<h4>AsyncFile.tell</h4> -<b>tell</b>(<i></i>) -<p> - Public method to get the filepointer position. -</p><dl> -<dt>Raises <b>IOError</b>:</dt> -<dd> -This method is not supported and always raises an - IOError. -</dd> -</dl><a NAME="AsyncFile.truncate" ID="AsyncFile.truncate"></a> -<h4>AsyncFile.truncate</h4> -<b>truncate</b>(<i>size=-1</i>) -<p> - Public method to truncate the file. -</p><dl> -<dt><i>size</i></dt> -<dd> -size to truncate to (integer) -</dd> -</dl><dl> -<dt>Raises <b>IOError</b>:</dt> -<dd> -This method is not supported and always raises an - IOError. -</dd> -</dl><a NAME="AsyncFile.writable" ID="AsyncFile.writable"></a> -<h4>AsyncFile.writable</h4> -<b>writable</b>(<i></i>) -<p> - Public method to check, if a stream is writable. -</p><dl> -<dt>Returns:</dt> -<dd> -flag indicating a writable stream (boolean) -</dd> -</dl><a NAME="AsyncFile.write" ID="AsyncFile.write"></a> -<h4>AsyncFile.write</h4> -<b>write</b>(<i>s</i>) -<p> - Public method to write a string to the file. -</p><dl> -<dt><i>s</i></dt> -<dd> -text to be written (string) -</dd> -</dl><a NAME="AsyncFile.write_p" ID="AsyncFile.write_p"></a> -<h4>AsyncFile.write_p</h4> -<b>write_p</b>(<i>s</i>) -<p> - Public method to write a string to the file. -</p><dl> -<dt><i>s</i></dt> -<dd> -text to be written (string) -</dd> -</dl><dl> -<dt>Raises <b>socket.error</b>:</dt> -<dd> -raised to indicate too many send attempts -</dd> -</dl><a NAME="AsyncFile.writelines" ID="AsyncFile.writelines"></a> -<h4>AsyncFile.writelines</h4> -<b>writelines</b>(<i>lines</i>) -<p> - Public method to write a list of strings to the file. -</p><dl> -<dt><i>lines</i></dt> -<dd> -list of texts to be written (list of string) -</dd> -</dl> -<div align="right"><a href="#top">Up</a></div> -<hr /><hr /> -<a NAME="AsyncPendingWrite" ID="AsyncPendingWrite"></a> -<h2>AsyncPendingWrite</h2> -<b>AsyncPendingWrite</b>(<i>file</i>) -<p> - Module function to check for data to be written. -</p><dl> -<dt><i>file</i></dt> -<dd> -The file object to be checked (file) -</dd> -</dl><dl> -<dt>Returns:</dt> -<dd> -Flag indicating if there is data wating (int) -</dd> -</dl> -<div align="right"><a href="#top">Up</a></div> -<hr /> -</body></html> \ No newline at end of file
--- a/Documentation/Source/eric6.DebugClients.Python3.DCTestResult.html Sun Oct 16 14:43:18 2016 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,186 +0,0 @@ -<!DOCTYPE html> -<html><head> -<title>eric6.DebugClients.Python3.DCTestResult</title> -<meta charset="UTF-8"> -<style> -body { - background: #EDECE6; - margin: 0em 1em 10em 1em; - color: black; -} - -h1 { color: white; background: #85774A; } -h2 { color: white; background: #85774A; } -h3 { color: white; background: #9D936E; } -h4 { color: white; background: #9D936E; } - -a { color: #BA6D36; } - -</style> -</head> -<body><a NAME="top" ID="top"></a> -<h1>eric6.DebugClients.Python3.DCTestResult</h1> -<p> -Module implementing a TestResult derivative for the eric6 debugger. -</p> -<h3>Global Attributes</h3> -<table> -<tr><td>None</td></tr> -</table> -<h3>Classes</h3> -<table> -<tr> -<td><a href="#DCTestResult">DCTestResult</a></td> -<td>A TestResult derivative to work with eric6's debug client.</td> -</tr> -</table> -<h3>Functions</h3> -<table> -<tr><td>None</td></tr> -</table> -<hr /><hr /> -<a NAME="DCTestResult" ID="DCTestResult"></a> -<h2>DCTestResult</h2> -<p> - A TestResult derivative to work with eric6's debug client. -</p><p> - For more details see unittest.py of the standard python distribution. -</p> -<h3>Derived from</h3> -TestResult -<h3>Class Attributes</h3> -<table> -<tr><td>None</td></tr> -</table> -<h3>Class Methods</h3> -<table> -<tr><td>None</td></tr> -</table> -<h3>Methods</h3> -<table> -<tr> -<td><a href="#DCTestResult.__init__">DCTestResult</a></td> -<td>Constructor</td> -</tr><tr> -<td><a href="#DCTestResult.addError">addError</a></td> -<td>Public method called if a test errored.</td> -</tr><tr> -<td><a href="#DCTestResult.addExpectedFailure">addExpectedFailure</a></td> -<td>Public method called if a test failed expected.</td> -</tr><tr> -<td><a href="#DCTestResult.addFailure">addFailure</a></td> -<td>Public method called if a test failed.</td> -</tr><tr> -<td><a href="#DCTestResult.addSkip">addSkip</a></td> -<td>Public method called if a test was skipped.</td> -</tr><tr> -<td><a href="#DCTestResult.addUnexpectedSuccess">addUnexpectedSuccess</a></td> -<td>Public method called if a test succeeded expectedly.</td> -</tr><tr> -<td><a href="#DCTestResult.startTest">startTest</a></td> -<td>Public method called at the start of a test.</td> -</tr><tr> -<td><a href="#DCTestResult.stopTest">stopTest</a></td> -<td>Public method called at the end of a test.</td> -</tr> -</table> -<h3>Static Methods</h3> -<table> -<tr><td>None</td></tr> -</table> -<a NAME="DCTestResult.__init__" ID="DCTestResult.__init__"></a> -<h4>DCTestResult (Constructor)</h4> -<b>DCTestResult</b>(<i>dbgClient</i>) -<p> - Constructor -</p><dl> -<dt><i>dbgClient</i> (DebugClientBase)</dt> -<dd> -reference to the debug client -</dd> -</dl><a NAME="DCTestResult.addError" ID="DCTestResult.addError"></a> -<h4>DCTestResult.addError</h4> -<b>addError</b>(<i>test, err</i>) -<p> - Public method called if a test errored. -</p><dl> -<dt><i>test</i></dt> -<dd> -Reference to the test object -</dd><dt><i>err</i></dt> -<dd> -The error traceback -</dd> -</dl><a NAME="DCTestResult.addExpectedFailure" ID="DCTestResult.addExpectedFailure"></a> -<h4>DCTestResult.addExpectedFailure</h4> -<b>addExpectedFailure</b>(<i>test, err</i>) -<p> - Public method called if a test failed expected. -</p><dl> -<dt><i>test</i></dt> -<dd> -reference to the test object -</dd><dt><i>err</i></dt> -<dd> -error traceback -</dd> -</dl><a NAME="DCTestResult.addFailure" ID="DCTestResult.addFailure"></a> -<h4>DCTestResult.addFailure</h4> -<b>addFailure</b>(<i>test, err</i>) -<p> - Public method called if a test failed. -</p><dl> -<dt><i>test</i></dt> -<dd> -Reference to the test object -</dd><dt><i>err</i></dt> -<dd> -The error traceback -</dd> -</dl><a NAME="DCTestResult.addSkip" ID="DCTestResult.addSkip"></a> -<h4>DCTestResult.addSkip</h4> -<b>addSkip</b>(<i>test, reason</i>) -<p> - Public method called if a test was skipped. -</p><dl> -<dt><i>test</i></dt> -<dd> -reference to the test object -</dd><dt><i>reason</i></dt> -<dd> -reason for skipping the test (string) -</dd> -</dl><a NAME="DCTestResult.addUnexpectedSuccess" ID="DCTestResult.addUnexpectedSuccess"></a> -<h4>DCTestResult.addUnexpectedSuccess</h4> -<b>addUnexpectedSuccess</b>(<i>test</i>) -<p> - Public method called if a test succeeded expectedly. -</p><dl> -<dt><i>test</i></dt> -<dd> -reference to the test object -</dd> -</dl><a NAME="DCTestResult.startTest" ID="DCTestResult.startTest"></a> -<h4>DCTestResult.startTest</h4> -<b>startTest</b>(<i>test</i>) -<p> - Public method called at the start of a test. -</p><dl> -<dt><i>test</i></dt> -<dd> -Reference to the test object -</dd> -</dl><a NAME="DCTestResult.stopTest" ID="DCTestResult.stopTest"></a> -<h4>DCTestResult.stopTest</h4> -<b>stopTest</b>(<i>test</i>) -<p> - Public method called at the end of a test. -</p><dl> -<dt><i>test</i></dt> -<dd> -Reference to the test object -</dd> -</dl> -<div align="right"><a href="#top">Up</a></div> -<hr /> -</body></html> \ No newline at end of file
--- a/Documentation/Source/eric6.DebugClients.Python3.DebugBase.html Sun Oct 16 14:43:18 2016 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,762 +0,0 @@ -<!DOCTYPE html> -<html><head> -<title>eric6.DebugClients.Python3.DebugBase</title> -<meta charset="UTF-8"> -<style> -body { - background: #EDECE6; - margin: 0em 1em 10em 1em; - color: black; -} - -h1 { color: white; background: #85774A; } -h2 { color: white; background: #85774A; } -h3 { color: white; background: #9D936E; } -h4 { color: white; background: #9D936E; } - -a { color: #BA6D36; } - -</style> -</head> -<body><a NAME="top" ID="top"></a> -<h1>eric6.DebugClients.Python3.DebugBase</h1> -<p> -Module implementing the debug base class. -</p> -<h3>Global Attributes</h3> -<table> -<tr><td>gRecursionLimit</td></tr> -</table> -<h3>Classes</h3> -<table> -<tr> -<td><a href="#DebugBase">DebugBase</a></td> -<td>Class implementing base class of the debugger.</td> -</tr> -</table> -<h3>Functions</h3> -<table> -<tr> -<td><a href="#printerr">printerr</a></td> -<td>Module function used for debugging the debug client.</td> -</tr><tr> -<td><a href="#setRecursionLimit">setRecursionLimit</a></td> -<td>Module function to set the recursion limit.</td> -</tr> -</table> -<hr /><hr /> -<a NAME="DebugBase" ID="DebugBase"></a> -<h2>DebugBase</h2> -<p> - Class implementing base class of the debugger. -</p><p> - Provides simple wrapper methods around bdb for the 'owning' client to - call to step etc. -</p> -<h3>Derived from</h3> -bdb.Bdb -<h3>Class Attributes</h3> -<table> -<tr><td>None</td></tr> -</table> -<h3>Class Methods</h3> -<table> -<tr><td>None</td></tr> -</table> -<h3>Methods</h3> -<table> -<tr> -<td><a href="#DebugBase.__init__">DebugBase</a></td> -<td>Constructor</td> -</tr><tr> -<td><a href="#DebugBase.__do_clear">__do_clear</a></td> -<td>Private method called to clear a temporary breakpoint.</td> -</tr><tr> -<td><a href="#DebugBase.__do_clearWatch">__do_clearWatch</a></td> -<td>Private method called to clear a temporary watch expression.</td> -</tr><tr> -<td><a href="#DebugBase.__effective">__effective</a></td> -<td>Private method to determine, if a watch expression is effective.</td> -</tr><tr> -<td><a href="#DebugBase.__extractExceptionName">__extractExceptionName</a></td> -<td>Private method to extract the exception name given the exception type object.</td> -</tr><tr> -<td><a href="#DebugBase.__extract_stack">__extract_stack</a></td> -<td>Private member to return a list of stack frames.</td> -</tr><tr> -<td><a href="#DebugBase.__sendCallTrace">__sendCallTrace</a></td> -<td>Private method to send a call/return trace.</td> -</tr><tr> -<td><a href="#DebugBase.__skip_it">__skip_it</a></td> -<td>Private method to filter out debugger files.</td> -</tr><tr> -<td><a href="#DebugBase.break_anywhere">break_anywhere</a></td> -<td>Public method reimplemented from bdb.py to do some special things.</td> -</tr><tr> -<td><a href="#DebugBase.break_here">break_here</a></td> -<td>Public method reimplemented from bdb.py to fix the filename from the frame.</td> -</tr><tr> -<td><a href="#DebugBase.clear_watch">clear_watch</a></td> -<td>Public method to clear a watch expression.</td> -</tr><tr> -<td><a href="#DebugBase.dispatch_exception">dispatch_exception</a></td> -<td>Public method reimplemented from bdb.py to always call user_exception.</td> -</tr><tr> -<td><a href="#DebugBase.dispatch_line">dispatch_line</a></td> -<td>Public method reimplemented from bdb.py to do some special things.</td> -</tr><tr> -<td><a href="#DebugBase.dispatch_return">dispatch_return</a></td> -<td>Public method reimplemented from bdb.py to handle passive mode cleanly.</td> -</tr><tr> -<td><a href="#DebugBase.fix_frame_filename">fix_frame_filename</a></td> -<td>Public method used to fixup the filename for a given frame.</td> -</tr><tr> -<td><a href="#DebugBase.getCurrentFrame">getCurrentFrame</a></td> -<td>Public method to return the current frame.</td> -</tr><tr> -<td><a href="#DebugBase.getEvent">getEvent</a></td> -<td>Protected method to return the last debugger event.</td> -</tr><tr> -<td><a href="#DebugBase.getFrameLocals">getFrameLocals</a></td> -<td>Public method to return the locals dictionary of the current frame or a frame below.</td> -</tr><tr> -<td><a href="#DebugBase.getStack">getStack</a></td> -<td>Public method to get the stack.</td> -</tr><tr> -<td><a href="#DebugBase.get_break">get_break</a></td> -<td>Public method reimplemented from bdb.py to get the first breakpoint of a particular line.</td> -</tr><tr> -<td><a href="#DebugBase.get_watch">get_watch</a></td> -<td>Public method to get a watch expression.</td> -</tr><tr> -<td><a href="#DebugBase.go">go</a></td> -<td>Public method to resume the thread.</td> -</tr><tr> -<td><a href="#DebugBase.isBroken">isBroken</a></td> -<td>Public method to return the broken state of the debugger.</td> -</tr><tr> -<td><a href="#DebugBase.profile">profile</a></td> -<td>Public method used to trace some stuff independent of the debugger trace function.</td> -</tr><tr> -<td><a href="#DebugBase.setRecursionDepth">setRecursionDepth</a></td> -<td>Public method to determine the current recursion depth.</td> -</tr><tr> -<td><a href="#DebugBase.set_continue">set_continue</a></td> -<td>Public method reimplemented from bdb.py to always get informed of exceptions.</td> -</tr><tr> -<td><a href="#DebugBase.set_quit">set_quit</a></td> -<td>Public method to quit.</td> -</tr><tr> -<td><a href="#DebugBase.set_trace">set_trace</a></td> -<td>Public method reimplemented from bdb.py to do some special setup.</td> -</tr><tr> -<td><a href="#DebugBase.set_watch">set_watch</a></td> -<td>Public method to set a watch expression.</td> -</tr><tr> -<td><a href="#DebugBase.step">step</a></td> -<td>Public method to perform a step operation in this thread.</td> -</tr><tr> -<td><a href="#DebugBase.stepOut">stepOut</a></td> -<td>Public method to perform a step out of the current call.</td> -</tr><tr> -<td><a href="#DebugBase.stop_here">stop_here</a></td> -<td>Public method reimplemented to filter out debugger files.</td> -</tr><tr> -<td><a href="#DebugBase.storeFrameLocals">storeFrameLocals</a></td> -<td>Public method to store the locals into the frame, so an access to frame.f_locals returns the last data.</td> -</tr><tr> -<td><a href="#DebugBase.trace_dispatch">trace_dispatch</a></td> -<td>Public method reimplemented from bdb.py to do some special things.</td> -</tr><tr> -<td><a href="#DebugBase.user_exception">user_exception</a></td> -<td>Public method reimplemented to report an exception to the debug server.</td> -</tr><tr> -<td><a href="#DebugBase.user_line">user_line</a></td> -<td>Public method reimplemented to handle the program about to execute a particular line.</td> -</tr><tr> -<td><a href="#DebugBase.user_return">user_return</a></td> -<td>Public method reimplemented to report program termination to the debug server.</td> -</tr> -</table> -<h3>Static Methods</h3> -<table> -<tr><td>None</td></tr> -</table> -<a NAME="DebugBase.__init__" ID="DebugBase.__init__"></a> -<h4>DebugBase (Constructor)</h4> -<b>DebugBase</b>(<i>dbgClient</i>) -<p> - Constructor -</p><dl> -<dt><i>dbgClient</i></dt> -<dd> -the owning client -</dd> -</dl><a NAME="DebugBase.__do_clear" ID="DebugBase.__do_clear"></a> -<h4>DebugBase.__do_clear</h4> -<b>__do_clear</b>(<i>filename, lineno</i>) -<p> - Private method called to clear a temporary breakpoint. -</p><dl> -<dt><i>filename</i></dt> -<dd> -name of the file the bp belongs to -</dd><dt><i>lineno</i></dt> -<dd> -linenumber of the bp -</dd> -</dl><a NAME="DebugBase.__do_clearWatch" ID="DebugBase.__do_clearWatch"></a> -<h4>DebugBase.__do_clearWatch</h4> -<b>__do_clearWatch</b>(<i>cond</i>) -<p> - Private method called to clear a temporary watch expression. -</p><dl> -<dt><i>cond</i></dt> -<dd> -expression of the watch expression to be cleared (string) -</dd> -</dl><a NAME="DebugBase.__effective" ID="DebugBase.__effective"></a> -<h4>DebugBase.__effective</h4> -<b>__effective</b>(<i>frame</i>) -<p> - Private method to determine, if a watch expression is effective. -</p><dl> -<dt><i>frame</i></dt> -<dd> -the current execution frame -</dd> -</dl><dl> -<dt>Returns:</dt> -<dd> -tuple of watch expression and a flag to indicate, that a - temporary watch expression may be deleted (bdb.Breakpoint, boolean) -</dd> -</dl><a NAME="DebugBase.__extractExceptionName" ID="DebugBase.__extractExceptionName"></a> -<h4>DebugBase.__extractExceptionName</h4> -<b>__extractExceptionName</b>(<i>exctype</i>) -<p> - Private method to extract the exception name given the exception - type object. -</p><dl> -<dt><i>exctype</i></dt> -<dd> -type of the exception -</dd> -</dl><dl> -<dt>Returns:</dt> -<dd> -exception name (string) -</dd> -</dl><a NAME="DebugBase.__extract_stack" ID="DebugBase.__extract_stack"></a> -<h4>DebugBase.__extract_stack</h4> -<b>__extract_stack</b>(<i>exctb</i>) -<p> - Private member to return a list of stack frames. -</p><dl> -<dt><i>exctb</i></dt> -<dd> -exception traceback -</dd> -</dl><dl> -<dt>Returns:</dt> -<dd> -list of stack frames -</dd> -</dl><a NAME="DebugBase.__sendCallTrace" ID="DebugBase.__sendCallTrace"></a> -<h4>DebugBase.__sendCallTrace</h4> -<b>__sendCallTrace</b>(<i>event, fromFrame, toFrame</i>) -<p> - Private method to send a call/return trace. -</p><dl> -<dt><i>event</i></dt> -<dd> -trace event (string) -</dd><dt><i>fromFrame</i></dt> -<dd> -originating frame (frame) -</dd><dt><i>toFrame</i></dt> -<dd> -destination frame (frame) -</dd> -</dl><a NAME="DebugBase.__skip_it" ID="DebugBase.__skip_it"></a> -<h4>DebugBase.__skip_it</h4> -<b>__skip_it</b>(<i>frame</i>) -<p> - Private method to filter out debugger files. -</p><p> - Tracing is turned off for files that are part of the - debugger that are called from the application being debugged. -</p><dl> -<dt><i>frame</i></dt> -<dd> -the frame object -</dd> -</dl><dl> -<dt>Returns:</dt> -<dd> -flag indicating whether the debugger should skip this frame -</dd> -</dl><a NAME="DebugBase.break_anywhere" ID="DebugBase.break_anywhere"></a> -<h4>DebugBase.break_anywhere</h4> -<b>break_anywhere</b>(<i>frame</i>) -<p> - Public method reimplemented from bdb.py to do some special things. -</p><p> - These speciality is to fix the filename from the frame - (see fix_frame_filename for more info). -</p><dl> -<dt><i>frame</i></dt> -<dd> -the frame object -</dd> -</dl><dl> -<dt>Returns:</dt> -<dd> -flag indicating the break status (boolean) -</dd> -</dl><a NAME="DebugBase.break_here" ID="DebugBase.break_here"></a> -<h4>DebugBase.break_here</h4> -<b>break_here</b>(<i>frame</i>) -<p> - Public method reimplemented from bdb.py to fix the filename from the - frame. -</p><p> - See fix_frame_filename for more info. -</p><dl> -<dt><i>frame</i></dt> -<dd> -the frame object -</dd> -</dl><dl> -<dt>Returns:</dt> -<dd> -flag indicating the break status (boolean) -</dd> -</dl><a NAME="DebugBase.clear_watch" ID="DebugBase.clear_watch"></a> -<h4>DebugBase.clear_watch</h4> -<b>clear_watch</b>(<i>cond</i>) -<p> - Public method to clear a watch expression. -</p><dl> -<dt><i>cond</i></dt> -<dd> -expression of the watch expression to be cleared (string) -</dd> -</dl><a NAME="DebugBase.dispatch_exception" ID="DebugBase.dispatch_exception"></a> -<h4>DebugBase.dispatch_exception</h4> -<b>dispatch_exception</b>(<i>frame, arg</i>) -<p> - Public method reimplemented from bdb.py to always call user_exception. -</p><dl> -<dt><i>frame</i></dt> -<dd> -The current stack frame. -</dd><dt><i>arg</i></dt> -<dd> -The arguments -</dd> -</dl><dl> -<dt>Returns:</dt> -<dd> -local trace function -</dd> -</dl><dl> -<dt>Raises <b>bdb.BdbQuit</b>:</dt> -<dd> -raised to indicate the end of the debug session -</dd> -</dl><a NAME="DebugBase.dispatch_line" ID="DebugBase.dispatch_line"></a> -<h4>DebugBase.dispatch_line</h4> -<b>dispatch_line</b>(<i>frame</i>) -<p> - Public method reimplemented from bdb.py to do some special things. -</p><p> - This speciality is to check the connection to the debug server - for new events (i.e. new breakpoints) while we are going through - the code. -</p><dl> -<dt><i>frame</i></dt> -<dd> -The current stack frame. -</dd> -</dl><dl> -<dt>Returns:</dt> -<dd> -local trace function -</dd> -</dl><dl> -<dt>Raises <b>bdb.BdbQuit</b>:</dt> -<dd> -raised to indicate the end of the debug session -</dd> -</dl><a NAME="DebugBase.dispatch_return" ID="DebugBase.dispatch_return"></a> -<h4>DebugBase.dispatch_return</h4> -<b>dispatch_return</b>(<i>frame, arg</i>) -<p> - Public method reimplemented from bdb.py to handle passive mode cleanly. -</p><dl> -<dt><i>frame</i></dt> -<dd> -The current stack frame. -</dd><dt><i>arg</i></dt> -<dd> -The arguments -</dd> -</dl><dl> -<dt>Returns:</dt> -<dd> -local trace function -</dd> -</dl><dl> -<dt>Raises <b>bdb.BdbQuit</b>:</dt> -<dd> -raised to indicate the end of the debug session -</dd> -</dl><a NAME="DebugBase.fix_frame_filename" ID="DebugBase.fix_frame_filename"></a> -<h4>DebugBase.fix_frame_filename</h4> -<b>fix_frame_filename</b>(<i>frame</i>) -<p> - Public method used to fixup the filename for a given frame. -</p><p> - The logic employed here is that if a module was loaded - from a .pyc file, then the correct .py to operate with - should be in the same path as the .pyc. The reason this - logic is needed is that when a .pyc file is generated, the - filename embedded and thus what is readable in the code object - of the frame object is the fully qualified filepath when the - pyc is generated. If files are moved from machine to machine - this can break debugging as the .pyc will refer to the .py - on the original machine. Another case might be sharing - code over a network... This logic deals with that. -</p><dl> -<dt><i>frame</i></dt> -<dd> -the frame object -</dd> -</dl><dl> -<dt>Returns:</dt> -<dd> -fixed up file name (string) -</dd> -</dl><a NAME="DebugBase.getCurrentFrame" ID="DebugBase.getCurrentFrame"></a> -<h4>DebugBase.getCurrentFrame</h4> -<b>getCurrentFrame</b>(<i></i>) -<p> - Public method to return the current frame. -</p><dl> -<dt>Returns:</dt> -<dd> -the current frame -</dd> -</dl><a NAME="DebugBase.getEvent" ID="DebugBase.getEvent"></a> -<h4>DebugBase.getEvent</h4> -<b>getEvent</b>(<i></i>) -<p> - Protected method to return the last debugger event. -</p><dl> -<dt>Returns:</dt> -<dd> -last debugger event (string) -</dd> -</dl><a NAME="DebugBase.getFrameLocals" ID="DebugBase.getFrameLocals"></a> -<h4>DebugBase.getFrameLocals</h4> -<b>getFrameLocals</b>(<i>frmnr=0</i>) -<p> - Public method to return the locals dictionary of the current frame - or a frame below. -</p><dl> -<dt><i>frmnr=</i></dt> -<dd> -distance of frame to get locals dictionary of. 0 is - the current frame (int) -</dd> -</dl><dl> -<dt>Returns:</dt> -<dd> -locals dictionary of the frame -</dd> -</dl><a NAME="DebugBase.getStack" ID="DebugBase.getStack"></a> -<h4>DebugBase.getStack</h4> -<b>getStack</b>(<i></i>) -<p> - Public method to get the stack. -</p><dl> -<dt>Returns:</dt> -<dd> -list of lists with file name (string), line number (integer) - and function name (string) -</dd> -</dl><a NAME="DebugBase.get_break" ID="DebugBase.get_break"></a> -<h4>DebugBase.get_break</h4> -<b>get_break</b>(<i>filename, lineno</i>) -<p> - Public method reimplemented from bdb.py to get the first breakpoint of - a particular line. -</p><p> - Because eric6 supports only one breakpoint per line, this overwritten - method will return this one and only breakpoint. -</p><dl> -<dt><i>filename</i></dt> -<dd> -file name of the bp to retrieve (string) -</dd><dt><i>lineno</i></dt> -<dd> -line number of the bp to retrieve (integer) -</dd> -</dl><dl> -<dt>Returns:</dt> -<dd> -breakpoint or None, if there is no bp -</dd> -</dl><a NAME="DebugBase.get_watch" ID="DebugBase.get_watch"></a> -<h4>DebugBase.get_watch</h4> -<b>get_watch</b>(<i>cond</i>) -<p> - Public method to get a watch expression. -</p><dl> -<dt><i>cond</i></dt> -<dd> -expression of the watch expression to be cleared (string) -</dd> -</dl><dl> -<dt>Returns:</dt> -<dd> -reference to the watch point -</dd> -</dl><a NAME="DebugBase.go" ID="DebugBase.go"></a> -<h4>DebugBase.go</h4> -<b>go</b>(<i>special</i>) -<p> - Public method to resume the thread. -</p><p> - It resumes the thread stopping only at breakpoints or exceptions. -</p><dl> -<dt><i>special</i></dt> -<dd> -flag indicating a special continue operation -</dd> -</dl><a NAME="DebugBase.isBroken" ID="DebugBase.isBroken"></a> -<h4>DebugBase.isBroken</h4> -<b>isBroken</b>(<i></i>) -<p> - Public method to return the broken state of the debugger. -</p><dl> -<dt>Returns:</dt> -<dd> -flag indicating the broken state (boolean) -</dd> -</dl><a NAME="DebugBase.profile" ID="DebugBase.profile"></a> -<h4>DebugBase.profile</h4> -<b>profile</b>(<i>frame, event, arg</i>) -<p> - Public method used to trace some stuff independent of the debugger - trace function. -</p><dl> -<dt><i>frame</i></dt> -<dd> -current stack frame. -</dd><dt><i>event</i></dt> -<dd> -trace event (string) -</dd><dt><i>arg</i></dt> -<dd> -arguments -</dd> -</dl><dl> -<dt>Raises <b>RuntimeError</b>:</dt> -<dd> -raised to indicate too many recursions -</dd> -</dl><a NAME="DebugBase.setRecursionDepth" ID="DebugBase.setRecursionDepth"></a> -<h4>DebugBase.setRecursionDepth</h4> -<b>setRecursionDepth</b>(<i>frame</i>) -<p> - Public method to determine the current recursion depth. -</p><dl> -<dt><i>frame</i></dt> -<dd> -The current stack frame. -</dd> -</dl><a NAME="DebugBase.set_continue" ID="DebugBase.set_continue"></a> -<h4>DebugBase.set_continue</h4> -<b>set_continue</b>(<i>special</i>) -<p> - Public method reimplemented from bdb.py to always get informed of - exceptions. -</p><dl> -<dt><i>special</i></dt> -<dd> -flag indicating a special continue operation -</dd> -</dl><a NAME="DebugBase.set_quit" ID="DebugBase.set_quit"></a> -<h4>DebugBase.set_quit</h4> -<b>set_quit</b>(<i></i>) -<p> - Public method to quit. -</p><p> - It wraps call to bdb to clear the current frame properly. -</p><a NAME="DebugBase.set_trace" ID="DebugBase.set_trace"></a> -<h4>DebugBase.set_trace</h4> -<b>set_trace</b>(<i>frame=None</i>) -<p> - Public method reimplemented from bdb.py to do some special setup. -</p><dl> -<dt><i>frame</i></dt> -<dd> -frame to start debugging from -</dd> -</dl><a NAME="DebugBase.set_watch" ID="DebugBase.set_watch"></a> -<h4>DebugBase.set_watch</h4> -<b>set_watch</b>(<i>cond, temporary=False</i>) -<p> - Public method to set a watch expression. -</p><dl> -<dt><i>cond</i></dt> -<dd> -expression of the watch expression (string) -</dd><dt><i>temporary</i></dt> -<dd> -flag indicating a temporary watch expression (boolean) -</dd> -</dl><a NAME="DebugBase.step" ID="DebugBase.step"></a> -<h4>DebugBase.step</h4> -<b>step</b>(<i>traceMode</i>) -<p> - Public method to perform a step operation in this thread. -</p><dl> -<dt><i>traceMode</i></dt> -<dd> -If it is True, then the step is a step into, - otherwise it is a step over. -</dd> -</dl><a NAME="DebugBase.stepOut" ID="DebugBase.stepOut"></a> -<h4>DebugBase.stepOut</h4> -<b>stepOut</b>(<i></i>) -<p> - Public method to perform a step out of the current call. -</p><a NAME="DebugBase.stop_here" ID="DebugBase.stop_here"></a> -<h4>DebugBase.stop_here</h4> -<b>stop_here</b>(<i>frame</i>) -<p> - Public method reimplemented to filter out debugger files. -</p><p> - Tracing is turned off for files that are part of the - debugger that are called from the application being debugged. -</p><dl> -<dt><i>frame</i></dt> -<dd> -the frame object -</dd> -</dl><dl> -<dt>Returns:</dt> -<dd> -flag indicating whether the debugger should stop here -</dd> -</dl><a NAME="DebugBase.storeFrameLocals" ID="DebugBase.storeFrameLocals"></a> -<h4>DebugBase.storeFrameLocals</h4> -<b>storeFrameLocals</b>(<i>frmnr=0</i>) -<p> - Public method to store the locals into the frame, so an access to - frame.f_locals returns the last data. -</p><dl> -<dt><i>frmnr=</i></dt> -<dd> -distance of frame to store locals dictionary to. 0 is - the current frame (int) -</dd> -</dl><a NAME="DebugBase.trace_dispatch" ID="DebugBase.trace_dispatch"></a> -<h4>DebugBase.trace_dispatch</h4> -<b>trace_dispatch</b>(<i>frame, event, arg</i>) -<p> - Public method reimplemented from bdb.py to do some special things. -</p><p> - This specialty is to check the connection to the debug server - for new events (i.e. new breakpoints) while we are going through - the code. -</p><dl> -<dt><i>frame</i></dt> -<dd> -The current stack frame. -</dd><dt><i>event</i></dt> -<dd> -The trace event (string) -</dd><dt><i>arg</i></dt> -<dd> -The arguments -</dd> -</dl><dl> -<dt>Returns:</dt> -<dd> -local trace function -</dd> -</dl><a NAME="DebugBase.user_exception" ID="DebugBase.user_exception"></a> -<h4>DebugBase.user_exception</h4> -<b>user_exception</b>(<i>frame, excinfo, unhandled=False</i>) -<p> - Public method reimplemented to report an exception to the debug server. -</p><dl> -<dt><i>frame</i></dt> -<dd> -the frame object -</dd><dt><i>excinfo</i></dt> -<dd> -information about the exception -</dd><dt><i>unhandled</i></dt> -<dd> -flag indicating an uncaught exception -</dd> -</dl><a NAME="DebugBase.user_line" ID="DebugBase.user_line"></a> -<h4>DebugBase.user_line</h4> -<b>user_line</b>(<i>frame</i>) -<p> - Public method reimplemented to handle the program about to execute a - particular line. -</p><dl> -<dt><i>frame</i></dt> -<dd> -the frame object -</dd> -</dl><a NAME="DebugBase.user_return" ID="DebugBase.user_return"></a> -<h4>DebugBase.user_return</h4> -<b>user_return</b>(<i>frame, retval</i>) -<p> - Public method reimplemented to report program termination to the - debug server. -</p><dl> -<dt><i>frame</i></dt> -<dd> -the frame object -</dd><dt><i>retval</i></dt> -<dd> -the return value of the program -</dd> -</dl> -<div align="right"><a href="#top">Up</a></div> -<hr /><hr /> -<a NAME="printerr" ID="printerr"></a> -<h2>printerr</h2> -<b>printerr</b>(<i>s</i>) -<p> - Module function used for debugging the debug client. -</p><dl> -<dt><i>s</i></dt> -<dd> -data to be printed -</dd> -</dl> -<div align="right"><a href="#top">Up</a></div> -<hr /><hr /> -<a NAME="setRecursionLimit" ID="setRecursionLimit"></a> -<h2>setRecursionLimit</h2> -<b>setRecursionLimit</b>(<i>limit</i>) -<p> - Module function to set the recursion limit. -</p><dl> -<dt><i>limit</i></dt> -<dd> -recursion limit (integer) -</dd> -</dl> -<div align="right"><a href="#top">Up</a></div> -<hr /> -</body></html> \ No newline at end of file
--- a/Documentation/Source/eric6.DebugClients.Python3.DebugClient.html Sun Oct 16 14:43:18 2016 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,79 +0,0 @@ -<!DOCTYPE html> -<html><head> -<title>eric6.DebugClients.Python3.DebugClient</title> -<meta charset="UTF-8"> -<style> -body { - background: #EDECE6; - margin: 0em 1em 10em 1em; - color: black; -} - -h1 { color: white; background: #85774A; } -h2 { color: white; background: #85774A; } -h3 { color: white; background: #9D936E; } -h4 { color: white; background: #9D936E; } - -a { color: #BA6D36; } - -</style> -</head> -<body><a NAME="top" ID="top"></a> -<h1>eric6.DebugClients.Python3.DebugClient</h1> -<p> -Module implementing a non-threaded variant of the debug client. -</p> -<h3>Global Attributes</h3> -<table> -<tr><td>None</td></tr> -</table> -<h3>Classes</h3> -<table> -<tr> -<td><a href="#DebugClient">DebugClient</a></td> -<td>Class implementing the client side of the debugger.</td> -</tr> -</table> -<h3>Functions</h3> -<table> -<tr><td>None</td></tr> -</table> -<hr /><hr /> -<a NAME="DebugClient" ID="DebugClient"></a> -<h2>DebugClient</h2> -<p> - Class implementing the client side of the debugger. -</p><p> - This variant of the debugger implements the standard debugger client - by subclassing all relevant base classes. -</p> -<h3>Derived from</h3> -DebugClientBase.DebugClientBase, DebugBase -<h3>Class Attributes</h3> -<table> -<tr><td>debugClient</td></tr> -</table> -<h3>Class Methods</h3> -<table> -<tr><td>None</td></tr> -</table> -<h3>Methods</h3> -<table> -<tr> -<td><a href="#DebugClient.__init__">DebugClient</a></td> -<td>Constructor</td> -</tr> -</table> -<h3>Static Methods</h3> -<table> -<tr><td>None</td></tr> -</table> -<a NAME="DebugClient.__init__" ID="DebugClient.__init__"></a> -<h4>DebugClient (Constructor)</h4> -<b>DebugClient</b>(<i></i>) -<p> - Constructor -</p> -<div align="right"><a href="#top">Up</a></div> -<hr /> -</body></html> \ No newline at end of file
--- a/Documentation/Source/eric6.DebugClients.Python3.DebugClientBase.html Sun Oct 16 14:43:18 2016 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1008 +0,0 @@ -<!DOCTYPE html> -<html><head> -<title>eric6.DebugClients.Python3.DebugClientBase</title> -<meta charset="UTF-8"> -<style> -body { - background: #EDECE6; - margin: 0em 1em 10em 1em; - color: black; -} - -h1 { color: white; background: #85774A; } -h2 { color: white; background: #85774A; } -h3 { color: white; background: #9D936E; } -h4 { color: white; background: #9D936E; } - -a { color: #BA6D36; } - -</style> -</head> -<body><a NAME="top" ID="top"></a> -<h1>eric6.DebugClients.Python3.DebugClientBase</h1> -<p> -Module implementing a debug client base class. -</p> -<h3>Global Attributes</h3> -<table> -<tr><td>DebugClientInstance</td></tr> -</table> -<h3>Classes</h3> -<table> -<tr> -<td><a href="#DebugClientBase">DebugClientBase</a></td> -<td>Class implementing the client side of the debugger.</td> -</tr> -</table> -<h3>Functions</h3> -<table> -<tr> -<td><a href="#DebugClientClose">DebugClientClose</a></td> -<td>Replacement for the standard os.close(fd).</td> -</tr><tr> -<td><a href="#DebugClientFork">DebugClientFork</a></td> -<td>Replacement for the standard os.fork().</td> -</tr><tr> -<td><a href="#DebugClientInput">DebugClientInput</a></td> -<td>Replacement for the standard input builtin.</td> -</tr><tr> -<td><a href="#DebugClientSetRecursionLimit">DebugClientSetRecursionLimit</a></td> -<td>Replacement for the standard sys.setrecursionlimit(limit).</td> -</tr> -</table> -<hr /><hr /> -<a NAME="DebugClientBase" ID="DebugClientBase"></a> -<h2>DebugClientBase</h2> -<p> - Class implementing the client side of the debugger. -</p><p> - It provides access to the Python interpeter from a debugger running in - another process. -</p><p> - The protocol between the debugger and the client is based on JSONRPC 2.0 - PDUs. Each one is sent on a single line, i.e. commands or responses are - separated by a linefeed character. -</p><p> - If the debugger closes the session there is no response from the client. - The client may close the session at any time as a result of the script - being debugged closing or crashing. -</p><p> - <b>Note</b>: This class is meant to be subclassed by individual - DebugClient classes. Do not instantiate it directly. -</p> -<h3>Derived from</h3> -object -<h3>Class Attributes</h3> -<table> -<tr><td>Indicators</td></tr><tr><td>clientCapabilities</td></tr> -</table> -<h3>Class Methods</h3> -<table> -<tr><td>None</td></tr> -</table> -<h3>Methods</h3> -<table> -<tr> -<td><a href="#DebugClientBase.__init__">DebugClientBase</a></td> -<td>Constructor</td> -</tr><tr> -<td><a href="#DebugClientBase.__clientCapabilities">__clientCapabilities</a></td> -<td>Private method to determine the clients capabilities.</td> -</tr><tr> -<td><a href="#DebugClientBase.__compileFileSource">__compileFileSource</a></td> -<td>Private method to compile source code read from a file.</td> -</tr><tr> -<td><a href="#DebugClientBase.__completionList">__completionList</a></td> -<td>Private slot to handle the request for a commandline completion list.</td> -</tr><tr> -<td><a href="#DebugClientBase.__dumpThreadList">__dumpThreadList</a></td> -<td>Private method to send the list of threads.</td> -</tr><tr> -<td><a href="#DebugClientBase.__dumpVariable">__dumpVariable</a></td> -<td>Private method to return the variables of a frame to the debug server.</td> -</tr><tr> -<td><a href="#DebugClientBase.__dumpVariables">__dumpVariables</a></td> -<td>Private method to return the variables of a frame to the debug server.</td> -</tr><tr> -<td><a href="#DebugClientBase.__extractIndicators">__extractIndicators</a></td> -<td>Private method to extract the indicator string from a variable text.</td> -</tr><tr> -<td><a href="#DebugClientBase.__formatQtVariable">__formatQtVariable</a></td> -<td>Private method to produce a formatted output of a simple Qt4/Qt5 type.</td> -</tr><tr> -<td><a href="#DebugClientBase.__formatVariablesList">__formatVariablesList</a></td> -<td>Private method to produce a formated variables list.</td> -</tr><tr> -<td><a href="#DebugClientBase.__generateFilterObjects">__generateFilterObjects</a></td> -<td>Private slot to convert a filter string to a list of filter objects.</td> -</tr><tr> -<td><a href="#DebugClientBase.__getCompletionList">__getCompletionList</a></td> -<td>Private method to create a completions list.</td> -</tr><tr> -<td><a href="#DebugClientBase.__getSysPath">__getSysPath</a></td> -<td>Private slot to calculate a path list including the PYTHONPATH environment variable.</td> -</tr><tr> -<td><a href="#DebugClientBase.__interact">__interact</a></td> -<td>Private method to interact with the debugger.</td> -</tr><tr> -<td><a href="#DebugClientBase.__interceptSignals">__interceptSignals</a></td> -<td>Private method to intercept common signals.</td> -</tr><tr> -<td><a href="#DebugClientBase.__resolveHost">__resolveHost</a></td> -<td>Private method to resolve a hostname to an IP address.</td> -</tr><tr> -<td><a href="#DebugClientBase.__setCoding">__setCoding</a></td> -<td>Private method to set the coding used by a python file.</td> -</tr><tr> -<td><a href="#DebugClientBase.__signalHandler">__signalHandler</a></td> -<td>Private method to handle signals.</td> -</tr><tr> -<td><a href="#DebugClientBase.__unhandled_exception">__unhandled_exception</a></td> -<td>Private method called to report an uncaught exception.</td> -</tr><tr> -<td><a href="#DebugClientBase.absPath">absPath</a></td> -<td>Public method to convert a filename to an absolute name.</td> -</tr><tr> -<td><a href="#DebugClientBase.attachThread">attachThread</a></td> -<td>Public method to setup a thread for DebugClient to debug.</td> -</tr><tr> -<td><a href="#DebugClientBase.close">close</a></td> -<td>Public method implementing a close method as a replacement for os.close().</td> -</tr><tr> -<td><a href="#DebugClientBase.connectDebugger">connectDebugger</a></td> -<td>Public method to establish a session with the debugger.</td> -</tr><tr> -<td><a href="#DebugClientBase.eventLoop">eventLoop</a></td> -<td>Public method implementing our event loop.</td> -</tr><tr> -<td><a href="#DebugClientBase.eventPoll">eventPoll</a></td> -<td>Public method to poll for events like 'set break point'.</td> -</tr><tr> -<td><a href="#DebugClientBase.fork">fork</a></td> -<td>Public method implementing a fork routine deciding which branch to follow.</td> -</tr><tr> -<td><a href="#DebugClientBase.getCoding">getCoding</a></td> -<td>Public method to return the current coding.</td> -</tr><tr> -<td><a href="#DebugClientBase.getRunning">getRunning</a></td> -<td>Public method to return the main script we are currently running.</td> -</tr><tr> -<td><a href="#DebugClientBase.handleJsonCommand">handleJsonCommand</a></td> -<td>Public method to handle a command serialized as a JSON string.</td> -</tr><tr> -<td><a href="#DebugClientBase.handleLine">handleLine</a></td> -<td>Public method to handle the receipt of a complete line.</td> -</tr><tr> -<td><a href="#DebugClientBase.input">input</a></td> -<td>Public method to implement input() using the event loop.</td> -</tr><tr> -<td><a href="#DebugClientBase.main">main</a></td> -<td>Public method implementing the main method.</td> -</tr><tr> -<td><a href="#DebugClientBase.progTerminated">progTerminated</a></td> -<td>Public method to tell the debugger that the program has terminated.</td> -</tr><tr> -<td><a href="#DebugClientBase.readReady">readReady</a></td> -<td>Public method called when there is data ready to be read.</td> -</tr><tr> -<td><a href="#DebugClientBase.run_call">run_call</a></td> -<td>Public method used to start the remote debugger and call a function.</td> -</tr><tr> -<td><a href="#DebugClientBase.sendCallTrace">sendCallTrace</a></td> -<td>Public method to send a call trace entry.</td> -</tr><tr> -<td><a href="#DebugClientBase.sendClearTemporaryBreakpoint">sendClearTemporaryBreakpoint</a></td> -<td>Public method to signal the deletion of a temporary breakpoint.</td> -</tr><tr> -<td><a href="#DebugClientBase.sendClearTemporaryWatch">sendClearTemporaryWatch</a></td> -<td>Public method to signal the deletion of a temporary watch expression.</td> -</tr><tr> -<td><a href="#DebugClientBase.sendException">sendException</a></td> -<td>Public method to send information for an exception.</td> -</tr><tr> -<td><a href="#DebugClientBase.sendJsonCommand">sendJsonCommand</a></td> -<td>Public method to send a single command or response to the IDE.</td> -</tr><tr> -<td><a href="#DebugClientBase.sendPassiveStartup">sendPassiveStartup</a></td> -<td>Public method to send the passive start information.</td> -</tr><tr> -<td><a href="#DebugClientBase.sendResponseLine">sendResponseLine</a></td> -<td>Public method to send the current call stack.</td> -</tr><tr> -<td><a href="#DebugClientBase.sendSyntaxError">sendSyntaxError</a></td> -<td>Public method to send information for a syntax error.</td> -</tr><tr> -<td><a href="#DebugClientBase.sessionClose">sessionClose</a></td> -<td>Public method to close the session with the debugger and optionally terminate.</td> -</tr><tr> -<td><a href="#DebugClientBase.shouldSkip">shouldSkip</a></td> -<td>Public method to check if a file should be skipped.</td> -</tr><tr> -<td><a href="#DebugClientBase.startDebugger">startDebugger</a></td> -<td>Public method used to start the remote debugger.</td> -</tr><tr> -<td><a href="#DebugClientBase.startProgInDebugger">startProgInDebugger</a></td> -<td>Public method used to start the remote debugger.</td> -</tr><tr> -<td><a href="#DebugClientBase.writeReady">writeReady</a></td> -<td>Public method called when we are ready to write data.</td> -</tr> -</table> -<h3>Static Methods</h3> -<table> -<tr><td>None</td></tr> -</table> -<a NAME="DebugClientBase.__init__" ID="DebugClientBase.__init__"></a> -<h4>DebugClientBase (Constructor)</h4> -<b>DebugClientBase</b>(<i></i>) -<p> - Constructor -</p><a NAME="DebugClientBase.__clientCapabilities" ID="DebugClientBase.__clientCapabilities"></a> -<h4>DebugClientBase.__clientCapabilities</h4> -<b>__clientCapabilities</b>(<i></i>) -<p> - Private method to determine the clients capabilities. -</p><dl> -<dt>Returns:</dt> -<dd> -client capabilities (integer) -</dd> -</dl><a NAME="DebugClientBase.__compileFileSource" ID="DebugClientBase.__compileFileSource"></a> -<h4>DebugClientBase.__compileFileSource</h4> -<b>__compileFileSource</b>(<i>filename, mode='exec'</i>) -<p> - Private method to compile source code read from a file. -</p><dl> -<dt><i>filename</i></dt> -<dd> -name of the source file (string) -</dd><dt><i>mode</i></dt> -<dd> -kind of code to be generated (string, exec or eval) -</dd> -</dl><dl> -<dt>Returns:</dt> -<dd> -compiled code object (None in case of errors) -</dd> -</dl><a NAME="DebugClientBase.__completionList" ID="DebugClientBase.__completionList"></a> -<h4>DebugClientBase.__completionList</h4> -<b>__completionList</b>(<i>text</i>) -<p> - Private slot to handle the request for a commandline completion list. -</p><dl> -<dt><i>text</i></dt> -<dd> -the text to be completed (string) -</dd> -</dl><a NAME="DebugClientBase.__dumpThreadList" ID="DebugClientBase.__dumpThreadList"></a> -<h4>DebugClientBase.__dumpThreadList</h4> -<b>__dumpThreadList</b>(<i></i>) -<p> - Private method to send the list of threads. -</p><a NAME="DebugClientBase.__dumpVariable" ID="DebugClientBase.__dumpVariable"></a> -<h4>DebugClientBase.__dumpVariable</h4> -<b>__dumpVariable</b>(<i>var, frmnr, scope, filter</i>) -<p> - Private method to return the variables of a frame to the debug server. -</p><dl> -<dt><i>var</i></dt> -<dd> -list encoded name of the requested variable - (list of strings) -</dd><dt><i>frmnr</i></dt> -<dd> -distance of frame reported on. 0 is the current frame - (int) -</dd><dt><i>scope</i></dt> -<dd> -1 to report global variables, 0 for local variables (int) -</dd><dt><i>filter</i></dt> -<dd> -the indices of variable types to be filtered - (list of int) -</dd> -</dl><a NAME="DebugClientBase.__dumpVariables" ID="DebugClientBase.__dumpVariables"></a> -<h4>DebugClientBase.__dumpVariables</h4> -<b>__dumpVariables</b>(<i>frmnr, scope, filter</i>) -<p> - Private method to return the variables of a frame to the debug server. -</p><dl> -<dt><i>frmnr</i></dt> -<dd> -distance of frame reported on. 0 is the current frame - (int) -</dd><dt><i>scope</i></dt> -<dd> -1 to report global variables, 0 for local variables (int) -</dd><dt><i>filter</i></dt> -<dd> -the indices of variable types to be filtered - (list of int) -</dd> -</dl><a NAME="DebugClientBase.__extractIndicators" ID="DebugClientBase.__extractIndicators"></a> -<h4>DebugClientBase.__extractIndicators</h4> -<b>__extractIndicators</b>(<i>var</i>) -<p> - Private method to extract the indicator string from a variable text. -</p><dl> -<dt><i>var</i> (str)</dt> -<dd> -variable text -</dd> -</dl><dl> -<dt>Returns:</dt> -<dd> -tuple containing the variable text without indicators and the - indicator string -</dd> -</dl><dl> -<dt>Return Type:</dt> -<dd> -tuple of two str -</dd> -</dl><a NAME="DebugClientBase.__formatQtVariable" ID="DebugClientBase.__formatQtVariable"></a> -<h4>DebugClientBase.__formatQtVariable</h4> -<b>__formatQtVariable</b>(<i>value, qttype</i>) -<p> - Private method to produce a formatted output of a simple Qt4/Qt5 type. -</p><dl> -<dt><i>value</i></dt> -<dd> -variable to be formatted -</dd><dt><i>qttype</i></dt> -<dd> -type of the Qt variable to be formatted (string) -</dd> -</dl><dl> -<dt>Returns:</dt> -<dd> -A tuple consisting of a list of formatted variables. Each - variable entry is a tuple of three elements, the variable name, - its type and value. -</dd> -</dl><a NAME="DebugClientBase.__formatVariablesList" ID="DebugClientBase.__formatVariablesList"></a> -<h4>DebugClientBase.__formatVariablesList</h4> -<b>__formatVariablesList</b>(<i>keylist, dict, scope, filter=[], formatSequences=False</i>) -<p> - Private method to produce a formated variables list. -</p><p> - The dictionary passed in to it is scanned. Variables are - only added to the list, if their type is not contained - in the filter list and their name doesn't match any of the filter - expressions. The formated variables list (a list of tuples of 3 - values) is returned. -</p><dl> -<dt><i>keylist</i></dt> -<dd> -keys of the dictionary -</dd><dt><i>dict</i></dt> -<dd> -the dictionary to be scanned -</dd><dt><i>scope</i></dt> -<dd> -1 to filter using the globals filter, 0 using the locals - filter (int). - Variables are only added to the list, if their name do not match - any of the filter expressions. -</dd><dt><i>filter</i></dt> -<dd> -the indices of variable types to be filtered. Variables - are only added to the list, if their type is not contained in the - filter list. -</dd><dt><i>formatSequences</i></dt> -<dd> -flag indicating, that sequence or dictionary - variables should be formatted. If it is 0 (or false), just the - number of items contained in these variables is returned. (boolean) -</dd> -</dl><dl> -<dt>Returns:</dt> -<dd> -A tuple consisting of a list of formatted variables. Each - variable entry is a tuple of three elements, the variable name, - its type and value. -</dd> -</dl><a NAME="DebugClientBase.__generateFilterObjects" ID="DebugClientBase.__generateFilterObjects"></a> -<h4>DebugClientBase.__generateFilterObjects</h4> -<b>__generateFilterObjects</b>(<i>scope, filterString</i>) -<p> - Private slot to convert a filter string to a list of filter objects. -</p><dl> -<dt><i>scope</i></dt> -<dd> -1 to generate filter for global variables, 0 for local - variables (int) -</dd><dt><i>filterString</i></dt> -<dd> -string of filter patterns separated by ';' -</dd> -</dl><a NAME="DebugClientBase.__getCompletionList" ID="DebugClientBase.__getCompletionList"></a> -<h4>DebugClientBase.__getCompletionList</h4> -<b>__getCompletionList</b>(<i>text, completer, completions</i>) -<p> - Private method to create a completions list. -</p><dl> -<dt><i>text</i></dt> -<dd> -text to complete (string) -</dd><dt><i>completer</i></dt> -<dd> -completer methode -</dd><dt><i>completions</i></dt> -<dd> -set where to add new completions strings (set) -</dd> -</dl><a NAME="DebugClientBase.__getSysPath" ID="DebugClientBase.__getSysPath"></a> -<h4>DebugClientBase.__getSysPath</h4> -<b>__getSysPath</b>(<i>firstEntry</i>) -<p> - Private slot to calculate a path list including the PYTHONPATH - environment variable. -</p><dl> -<dt><i>firstEntry</i></dt> -<dd> -entry to be put first in sys.path (string) -</dd> -</dl><dl> -<dt>Returns:</dt> -<dd> -path list for use as sys.path (list of strings) -</dd> -</dl><a NAME="DebugClientBase.__interact" ID="DebugClientBase.__interact"></a> -<h4>DebugClientBase.__interact</h4> -<b>__interact</b>(<i></i>) -<p> - Private method to interact with the debugger. -</p><a NAME="DebugClientBase.__interceptSignals" ID="DebugClientBase.__interceptSignals"></a> -<h4>DebugClientBase.__interceptSignals</h4> -<b>__interceptSignals</b>(<i></i>) -<p> - Private method to intercept common signals. -</p><a NAME="DebugClientBase.__resolveHost" ID="DebugClientBase.__resolveHost"></a> -<h4>DebugClientBase.__resolveHost</h4> -<b>__resolveHost</b>(<i>host</i>) -<p> - Private method to resolve a hostname to an IP address. -</p><dl> -<dt><i>host</i></dt> -<dd> -hostname of the debug server (string) -</dd> -</dl><dl> -<dt>Returns:</dt> -<dd> -IP address (string) -</dd> -</dl><a NAME="DebugClientBase.__setCoding" ID="DebugClientBase.__setCoding"></a> -<h4>DebugClientBase.__setCoding</h4> -<b>__setCoding</b>(<i>filename</i>) -<p> - Private method to set the coding used by a python file. -</p><dl> -<dt><i>filename</i></dt> -<dd> -name of the file to inspect (string) -</dd> -</dl><a NAME="DebugClientBase.__signalHandler" ID="DebugClientBase.__signalHandler"></a> -<h4>DebugClientBase.__signalHandler</h4> -<b>__signalHandler</b>(<i>signalNumber, stackFrame</i>) -<p> - Private method to handle signals. -</p><dl> -<dt><i>signalNumber</i> (int)</dt> -<dd> -number of the signal to be handled -</dd><dt><i>stackFrame</i> (frame object)</dt> -<dd> -current stack frame -</dd> -</dl><a NAME="DebugClientBase.__unhandled_exception" ID="DebugClientBase.__unhandled_exception"></a> -<h4>DebugClientBase.__unhandled_exception</h4> -<b>__unhandled_exception</b>(<i>exctype, excval, exctb</i>) -<p> - Private method called to report an uncaught exception. -</p><dl> -<dt><i>exctype</i></dt> -<dd> -the type of the exception -</dd><dt><i>excval</i></dt> -<dd> -data about the exception -</dd><dt><i>exctb</i></dt> -<dd> -traceback for the exception -</dd> -</dl><a NAME="DebugClientBase.absPath" ID="DebugClientBase.absPath"></a> -<h4>DebugClientBase.absPath</h4> -<b>absPath</b>(<i>fn</i>) -<p> - Public method to convert a filename to an absolute name. -</p><p> - sys.path is used as a set of possible prefixes. The name stays - relative if a file could not be found. -</p><dl> -<dt><i>fn</i></dt> -<dd> -filename (string) -</dd> -</dl><dl> -<dt>Returns:</dt> -<dd> -the converted filename (string) -</dd> -</dl><a NAME="DebugClientBase.attachThread" ID="DebugClientBase.attachThread"></a> -<h4>DebugClientBase.attachThread</h4> -<b>attachThread</b>(<i>target=None, args=None, kwargs=None, mainThread=False</i>) -<p> - Public method to setup a thread for DebugClient to debug. -</p><p> - If mainThread is True, then we are attaching to the already - started mainthread of the app and the rest of the args are ignored. -</p><dl> -<dt><i>target</i></dt> -<dd> -the start function of the target thread (i.e. the - user code) -</dd><dt><i>args</i></dt> -<dd> -arguments to pass to target -</dd><dt><i>kwargs</i></dt> -<dd> -keyword arguments to pass to target -</dd><dt><i>mainThread</i></dt> -<dd> -True, if we are attaching to the already - started mainthread of the app -</dd> -</dl><a NAME="DebugClientBase.close" ID="DebugClientBase.close"></a> -<h4>DebugClientBase.close</h4> -<b>close</b>(<i>fd</i>) -<p> - Public method implementing a close method as a replacement for - os.close(). -</p><p> - It prevents the debugger connections from being closed. -</p><dl> -<dt><i>fd</i></dt> -<dd> -file descriptor to be closed (integer) -</dd> -</dl><a NAME="DebugClientBase.connectDebugger" ID="DebugClientBase.connectDebugger"></a> -<h4>DebugClientBase.connectDebugger</h4> -<b>connectDebugger</b>(<i>port, remoteAddress=None, redirect=True</i>) -<p> - Public method to establish a session with the debugger. -</p><p> - It opens a network connection to the debugger, connects it to stdin, - stdout and stderr and saves these file objects in case the application - being debugged redirects them itself. -</p><dl> -<dt><i>port</i></dt> -<dd> -the port number to connect to (int) -</dd><dt><i>remoteAddress</i></dt> -<dd> -the network address of the debug server host - (string) -</dd><dt><i>redirect</i></dt> -<dd> -flag indicating redirection of stdin, stdout and - stderr (boolean) -</dd> -</dl><a NAME="DebugClientBase.eventLoop" ID="DebugClientBase.eventLoop"></a> -<h4>DebugClientBase.eventLoop</h4> -<b>eventLoop</b>(<i>disablePolling=False</i>) -<p> - Public method implementing our event loop. -</p><dl> -<dt><i>disablePolling</i></dt> -<dd> -flag indicating to enter an event loop with - polling disabled (boolean) -</dd> -</dl><a NAME="DebugClientBase.eventPoll" ID="DebugClientBase.eventPoll"></a> -<h4>DebugClientBase.eventPoll</h4> -<b>eventPoll</b>(<i></i>) -<p> - Public method to poll for events like 'set break point'. -</p><a NAME="DebugClientBase.fork" ID="DebugClientBase.fork"></a> -<h4>DebugClientBase.fork</h4> -<b>fork</b>(<i></i>) -<p> - Public method implementing a fork routine deciding which branch - to follow. -</p><dl> -<dt>Returns:</dt> -<dd> -process ID (integer) -</dd> -</dl><a NAME="DebugClientBase.getCoding" ID="DebugClientBase.getCoding"></a> -<h4>DebugClientBase.getCoding</h4> -<b>getCoding</b>(<i></i>) -<p> - Public method to return the current coding. -</p><dl> -<dt>Returns:</dt> -<dd> -codec name (string) -</dd> -</dl><a NAME="DebugClientBase.getRunning" ID="DebugClientBase.getRunning"></a> -<h4>DebugClientBase.getRunning</h4> -<b>getRunning</b>(<i></i>) -<p> - Public method to return the main script we are currently running. -</p><dl> -<dt>Returns:</dt> -<dd> -flag indicating a running debug session (boolean) -</dd> -</dl><a NAME="DebugClientBase.handleJsonCommand" ID="DebugClientBase.handleJsonCommand"></a> -<h4>DebugClientBase.handleJsonCommand</h4> -<b>handleJsonCommand</b>(<i>jsonStr</i>) -<p> - Public method to handle a command serialized as a JSON string. -</p><dl> -<dt><i>jsonStr</i> (str)</dt> -<dd> -string containing the command received from the IDE -</dd> -</dl><a NAME="DebugClientBase.handleLine" ID="DebugClientBase.handleLine"></a> -<h4>DebugClientBase.handleLine</h4> -<b>handleLine</b>(<i>line</i>) -<p> - Public method to handle the receipt of a complete line. -</p><p> - It first looks for a valid protocol token at the start of the line. - Thereafter it trys to execute the lines accumulated so far. -</p><dl> -<dt><i>line</i></dt> -<dd> -the received line -</dd> -</dl><a NAME="DebugClientBase.input" ID="DebugClientBase.input"></a> -<h4>DebugClientBase.input</h4> -<b>input</b>(<i>prompt, echo=True</i>) -<p> - Public method to implement input() using the event loop. -</p><dl> -<dt><i>prompt</i></dt> -<dd> -the prompt to be shown (string) -</dd><dt><i>echo</i></dt> -<dd> -Flag indicating echoing of the input (boolean) -</dd> -</dl><dl> -<dt>Returns:</dt> -<dd> -the entered string -</dd> -</dl><a NAME="DebugClientBase.main" ID="DebugClientBase.main"></a> -<h4>DebugClientBase.main</h4> -<b>main</b>(<i></i>) -<p> - Public method implementing the main method. -</p><a NAME="DebugClientBase.progTerminated" ID="DebugClientBase.progTerminated"></a> -<h4>DebugClientBase.progTerminated</h4> -<b>progTerminated</b>(<i>status, message=""</i>) -<p> - Public method to tell the debugger that the program has terminated. -</p><dl> -<dt><i>status</i> (int)</dt> -<dd> -return status -</dd><dt><i>message</i> (str)</dt> -<dd> -status message -</dd> -</dl><a NAME="DebugClientBase.readReady" ID="DebugClientBase.readReady"></a> -<h4>DebugClientBase.readReady</h4> -<b>readReady</b>(<i>stream</i>) -<p> - Public method called when there is data ready to be read. -</p><dl> -<dt><i>stream</i></dt> -<dd> -file like object that has data to be written -</dd> -</dl><a NAME="DebugClientBase.run_call" ID="DebugClientBase.run_call"></a> -<h4>DebugClientBase.run_call</h4> -<b>run_call</b>(<i>scriptname, func, *args</i>) -<p> - Public method used to start the remote debugger and call a function. -</p><dl> -<dt><i>scriptname</i></dt> -<dd> -name of the script to be debugged (string) -</dd><dt><i>func</i></dt> -<dd> -function to be called -</dd><dt><i>*args</i></dt> -<dd> -arguments being passed to func -</dd> -</dl><dl> -<dt>Returns:</dt> -<dd> -result of the function call -</dd> -</dl><a NAME="DebugClientBase.sendCallTrace" ID="DebugClientBase.sendCallTrace"></a> -<h4>DebugClientBase.sendCallTrace</h4> -<b>sendCallTrace</b>(<i>event, fromInfo, toInfo</i>) -<p> - Public method to send a call trace entry. -</p><dl> -<dt><i>event</i> (str)</dt> -<dd> -trace event (call or return) -</dd><dt><i>fromInfo</i> (dict with 'filename', 'linenumber' and 'codename')</dt> -<dd> -dictionary containing the origin info - as keys -</dd><dt><i>toInfo</i> (dict with 'filename', 'linenumber' and 'codename')</dt> -<dd> -dictionary containing the target info - as keys -</dd> -</dl><a NAME="DebugClientBase.sendClearTemporaryBreakpoint" ID="DebugClientBase.sendClearTemporaryBreakpoint"></a> -<h4>DebugClientBase.sendClearTemporaryBreakpoint</h4> -<b>sendClearTemporaryBreakpoint</b>(<i>filename, lineno</i>) -<p> - Public method to signal the deletion of a temporary breakpoint. -</p><dl> -<dt><i>filename</i> (str)</dt> -<dd> -name of the file the bp belongs to -</dd><dt><i>lineno</i> (int)</dt> -<dd> -linenumber of the bp -</dd> -</dl><a NAME="DebugClientBase.sendClearTemporaryWatch" ID="DebugClientBase.sendClearTemporaryWatch"></a> -<h4>DebugClientBase.sendClearTemporaryWatch</h4> -<b>sendClearTemporaryWatch</b>(<i>condition</i>) -<p> - Public method to signal the deletion of a temporary watch expression. -</p><dl> -<dt><i>condition</i> (str)</dt> -<dd> -condition of the watch expression to be cleared -</dd> -</dl><a NAME="DebugClientBase.sendException" ID="DebugClientBase.sendException"></a> -<h4>DebugClientBase.sendException</h4> -<b>sendException</b>(<i>exceptionType, exceptionMessage, stack</i>) -<p> - Public method to send information for an exception. -</p><dl> -<dt><i>exceptionType</i> (str)</dt> -<dd> -type of exception raised -</dd><dt><i>exceptionMessage</i> (str)</dt> -<dd> -message of the exception -</dd><dt><i>stack</i> (list)</dt> -<dd> -stack trace information -</dd> -</dl><a NAME="DebugClientBase.sendJsonCommand" ID="DebugClientBase.sendJsonCommand"></a> -<h4>DebugClientBase.sendJsonCommand</h4> -<b>sendJsonCommand</b>(<i>method, params</i>) -<p> - Public method to send a single command or response to the IDE. -</p><dl> -<dt><i>method</i> (str)</dt> -<dd> -command or response command name to be sent -</dd><dt><i>params</i> (dict)</dt> -<dd> -dictionary of named parameters for the command or - response -</dd> -</dl><a NAME="DebugClientBase.sendPassiveStartup" ID="DebugClientBase.sendPassiveStartup"></a> -<h4>DebugClientBase.sendPassiveStartup</h4> -<b>sendPassiveStartup</b>(<i>filename, exceptions</i>) -<p> - Public method to send the passive start information. -</p><dl> -<dt><i>filename</i> (str)</dt> -<dd> -name of the script -</dd><dt><i>exceptions</i> (bool)</dt> -<dd> -flag to enable exception reporting of the IDE -</dd> -</dl><a NAME="DebugClientBase.sendResponseLine" ID="DebugClientBase.sendResponseLine"></a> -<h4>DebugClientBase.sendResponseLine</h4> -<b>sendResponseLine</b>(<i>stack</i>) -<p> - Public method to send the current call stack. -</p><dl> -<dt><i>stack</i> (list)</dt> -<dd> -call stack -</dd> -</dl><a NAME="DebugClientBase.sendSyntaxError" ID="DebugClientBase.sendSyntaxError"></a> -<h4>DebugClientBase.sendSyntaxError</h4> -<b>sendSyntaxError</b>(<i>message, filename, lineno, charno</i>) -<p> - Public method to send information for a syntax error. -</p><dl> -<dt><i>message</i> (str)</dt> -<dd> -syntax error message -</dd><dt><i>filename</i> (str)</dt> -<dd> -name of the faulty file -</dd><dt><i>lineno</i> (int)</dt> -<dd> -line number info -</dd><dt><i>charno</i> (int)</dt> -<dd> -character number info -</dd> -</dl><a NAME="DebugClientBase.sessionClose" ID="DebugClientBase.sessionClose"></a> -<h4>DebugClientBase.sessionClose</h4> -<b>sessionClose</b>(<i>exit=True</i>) -<p> - Public method to close the session with the debugger and optionally - terminate. -</p><dl> -<dt><i>exit</i></dt> -<dd> -flag indicating to terminate (boolean) -</dd> -</dl><a NAME="DebugClientBase.shouldSkip" ID="DebugClientBase.shouldSkip"></a> -<h4>DebugClientBase.shouldSkip</h4> -<b>shouldSkip</b>(<i>fn</i>) -<p> - Public method to check if a file should be skipped. -</p><dl> -<dt><i>fn</i></dt> -<dd> -filename to be checked -</dd> -</dl><dl> -<dt>Returns:</dt> -<dd> -non-zero if fn represents a file we are 'skipping', - zero otherwise. -</dd> -</dl><a NAME="DebugClientBase.startDebugger" ID="DebugClientBase.startDebugger"></a> -<h4>DebugClientBase.startDebugger</h4> -<b>startDebugger</b>(<i>filename=None, host=None, port=None, enableTrace=True, exceptions=True, tracePython=False, redirect=True</i>) -<p> - Public method used to start the remote debugger. -</p><dl> -<dt><i>filename</i></dt> -<dd> -the program to be debugged (string) -</dd><dt><i>host</i></dt> -<dd> -hostname of the debug server (string) -</dd><dt><i>port</i></dt> -<dd> -portnumber of the debug server (int) -</dd><dt><i>enableTrace</i></dt> -<dd> -flag to enable the tracing function (boolean) -</dd><dt><i>exceptions</i></dt> -<dd> -flag to enable exception reporting of the IDE - (boolean) -</dd><dt><i>tracePython</i></dt> -<dd> -flag to enable tracing into the Python library - (boolean) -</dd><dt><i>redirect</i></dt> -<dd> -flag indicating redirection of stdin, stdout and - stderr (boolean) -</dd> -</dl><a NAME="DebugClientBase.startProgInDebugger" ID="DebugClientBase.startProgInDebugger"></a> -<h4>DebugClientBase.startProgInDebugger</h4> -<b>startProgInDebugger</b>(<i>progargs, wd='', host=None, port=None, exceptions=True, tracePython=False, redirect=True</i>) -<p> - Public method used to start the remote debugger. -</p><dl> -<dt><i>progargs</i></dt> -<dd> -commandline for the program to be debugged - (list of strings) -</dd><dt><i>wd</i></dt> -<dd> -working directory for the program execution (string) -</dd><dt><i>host</i></dt> -<dd> -hostname of the debug server (string) -</dd><dt><i>port</i></dt> -<dd> -portnumber of the debug server (int) -</dd><dt><i>exceptions</i></dt> -<dd> -flag to enable exception reporting of the IDE - (boolean) -</dd><dt><i>tracePython</i></dt> -<dd> -flag to enable tracing into the Python library - (boolean) -</dd><dt><i>redirect</i></dt> -<dd> -flag indicating redirection of stdin, stdout and - stderr (boolean) -</dd> -</dl><a NAME="DebugClientBase.writeReady" ID="DebugClientBase.writeReady"></a> -<h4>DebugClientBase.writeReady</h4> -<b>writeReady</b>(<i>stream</i>) -<p> - Public method called when we are ready to write data. -</p><dl> -<dt><i>stream</i></dt> -<dd> -file like object that has data to be written -</dd> -</dl> -<div align="right"><a href="#top">Up</a></div> -<hr /><hr /> -<a NAME="DebugClientClose" ID="DebugClientClose"></a> -<h2>DebugClientClose</h2> -<b>DebugClientClose</b>(<i>fd</i>) -<p> - Replacement for the standard os.close(fd). -</p><dl> -<dt><i>fd</i></dt> -<dd> -open file descriptor to be closed (integer) -</dd> -</dl> -<div align="right"><a href="#top">Up</a></div> -<hr /><hr /> -<a NAME="DebugClientFork" ID="DebugClientFork"></a> -<h2>DebugClientFork</h2> -<b>DebugClientFork</b>(<i></i>) -<p> - Replacement for the standard os.fork(). -</p><dl> -<dt>Returns:</dt> -<dd> -result of the fork() call -</dd> -</dl> -<div align="right"><a href="#top">Up</a></div> -<hr /><hr /> -<a NAME="DebugClientInput" ID="DebugClientInput"></a> -<h2>DebugClientInput</h2> -<b>DebugClientInput</b>(<i>prompt="", echo=True</i>) -<p> - Replacement for the standard input builtin. -</p><p> - This function works with the split debugger. -</p><dl> -<dt><i>prompt</i></dt> -<dd> -prompt to be shown (string) -</dd><dt><i>echo</i></dt> -<dd> -flag indicating to echo the output (boolean) -</dd> -</dl><dl> -<dt>Returns:</dt> -<dd> -result of the input() call -</dd> -</dl> -<div align="right"><a href="#top">Up</a></div> -<hr /><hr /> -<a NAME="DebugClientSetRecursionLimit" ID="DebugClientSetRecursionLimit"></a> -<h2>DebugClientSetRecursionLimit</h2> -<b>DebugClientSetRecursionLimit</b>(<i>limit</i>) -<p> - Replacement for the standard sys.setrecursionlimit(limit). -</p><dl> -<dt><i>limit</i></dt> -<dd> -recursion limit (integer) -</dd> -</dl> -<div align="right"><a href="#top">Up</a></div> -<hr /> -</body></html> \ No newline at end of file
--- a/Documentation/Source/eric6.DebugClients.Python3.DebugClientCapabilities.html Sun Oct 16 14:43:18 2016 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,39 +0,0 @@ -<!DOCTYPE html> -<html><head> -<title>eric6.DebugClients.Python3.DebugClientCapabilities</title> -<meta charset="UTF-8"> -<style> -body { - background: #EDECE6; - margin: 0em 1em 10em 1em; - color: black; -} - -h1 { color: white; background: #85774A; } -h2 { color: white; background: #85774A; } -h3 { color: white; background: #9D936E; } -h4 { color: white; background: #9D936E; } - -a { color: #BA6D36; } - -</style> -</head> -<body><a NAME="top" ID="top"></a> -<h1>eric6.DebugClients.Python3.DebugClientCapabilities</h1> -<p> -Module defining the debug clients capabilities. -</p> -<h3>Global Attributes</h3> -<table> -<tr><td>HasAll</td></tr><tr><td>HasCompleter</td></tr><tr><td>HasCoverage</td></tr><tr><td>HasDebugger</td></tr><tr><td>HasInterpreter</td></tr><tr><td>HasProfiler</td></tr><tr><td>HasShell</td></tr><tr><td>HasUnittest</td></tr> -</table> -<h3>Classes</h3> -<table> -<tr><td>None</td></tr> -</table> -<h3>Functions</h3> -<table> -<tr><td>None</td></tr> -</table> -<hr /> -</body></html> \ No newline at end of file
--- a/Documentation/Source/eric6.DebugClients.Python3.DebugClientThreads.html Sun Oct 16 14:43:18 2016 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,227 +0,0 @@ -<!DOCTYPE html> -<html><head> -<title>eric6.DebugClients.Python3.DebugClientThreads</title> -<meta charset="UTF-8"> -<style> -body { - background: #EDECE6; - margin: 0em 1em 10em 1em; - color: black; -} - -h1 { color: white; background: #85774A; } -h2 { color: white; background: #85774A; } -h3 { color: white; background: #9D936E; } -h4 { color: white; background: #9D936E; } - -a { color: #BA6D36; } - -</style> -</head> -<body><a NAME="top" ID="top"></a> -<h1>eric6.DebugClients.Python3.DebugClientThreads</h1> -<p> -Module implementing the multithreaded version of the debug client. -</p> -<h3>Global Attributes</h3> -<table> -<tr><td>_original_start_thread</td></tr> -</table> -<h3>Classes</h3> -<table> -<tr> -<td><a href="#DebugClientThreads">DebugClientThreads</a></td> -<td>Class implementing the client side of the debugger.</td> -</tr> -</table> -<h3>Functions</h3> -<table> -<tr> -<td><a href="#_debugclient_start_new_thread">_debugclient_start_new_thread</a></td> -<td>Module function used to allow for debugging of multiple threads.</td> -</tr> -</table> -<hr /><hr /> -<a NAME="DebugClientThreads" ID="DebugClientThreads"></a> -<h2>DebugClientThreads</h2> -<p> - Class implementing the client side of the debugger. -</p><p> - This variant of the debugger implements a threaded debugger client - by subclassing all relevant base classes. -</p> -<h3>Derived from</h3> -DebugClientBase.DebugClientBase -<h3>Class Attributes</h3> -<table> -<tr><td>debugClient</td></tr> -</table> -<h3>Class Methods</h3> -<table> -<tr><td>None</td></tr> -</table> -<h3>Methods</h3> -<table> -<tr> -<td><a href="#DebugClientThreads.__init__">DebugClientThreads</a></td> -<td>Constructor</td> -</tr><tr> -<td><a href="#DebugClientThreads.attachThread">attachThread</a></td> -<td>Public method to setup a thread for DebugClient to debug.</td> -</tr><tr> -<td><a href="#DebugClientThreads.eventLoop">eventLoop</a></td> -<td>Public method implementing our event loop.</td> -</tr><tr> -<td><a href="#DebugClientThreads.lockClient">lockClient</a></td> -<td>Public method to acquire the lock for this client.</td> -</tr><tr> -<td><a href="#DebugClientThreads.setCurrentThread">setCurrentThread</a></td> -<td>Public method to set the current thread.</td> -</tr><tr> -<td><a href="#DebugClientThreads.set_quit">set_quit</a></td> -<td>Public method to do a 'set quit' on all threads.</td> -</tr><tr> -<td><a href="#DebugClientThreads.threadTerminated">threadTerminated</a></td> -<td>Public method called when a DebugThread has exited.</td> -</tr><tr> -<td><a href="#DebugClientThreads.unlockClient">unlockClient</a></td> -<td>Public method to release the lock for this client.</td> -</tr> -</table> -<h3>Static Methods</h3> -<table> -<tr><td>None</td></tr> -</table> -<a NAME="DebugClientThreads.__init__" ID="DebugClientThreads.__init__"></a> -<h4>DebugClientThreads (Constructor)</h4> -<b>DebugClientThreads</b>(<i></i>) -<p> - Constructor -</p><a NAME="DebugClientThreads.attachThread" ID="DebugClientThreads.attachThread"></a> -<h4>DebugClientThreads.attachThread</h4> -<b>attachThread</b>(<i>target=None, args=None, kwargs=None, mainThread=False</i>) -<p> - Public method to setup a thread for DebugClient to debug. -</p><p> - If mainThread is True, then we are attaching to the already - started mainthread of the app and the rest of the args are ignored. -</p><dl> -<dt><i>target</i></dt> -<dd> -the start function of the target thread (i.e. the - user code) -</dd><dt><i>args</i></dt> -<dd> -arguments to pass to target -</dd><dt><i>kwargs</i></dt> -<dd> -keyword arguments to pass to target -</dd><dt><i>mainThread</i></dt> -<dd> -True, if we are attaching to the already - started mainthread of the app -</dd> -</dl><dl> -<dt>Returns:</dt> -<dd> -identifier of the created thread -</dd> -</dl><a NAME="DebugClientThreads.eventLoop" ID="DebugClientThreads.eventLoop"></a> -<h4>DebugClientThreads.eventLoop</h4> -<b>eventLoop</b>(<i>disablePolling=False</i>) -<p> - Public method implementing our event loop. -</p><dl> -<dt><i>disablePolling</i></dt> -<dd> -flag indicating to enter an event loop with - polling disabled (boolean) -</dd> -</dl><a NAME="DebugClientThreads.lockClient" ID="DebugClientThreads.lockClient"></a> -<h4>DebugClientThreads.lockClient</h4> -<b>lockClient</b>(<i>blocking=True</i>) -<p> - Public method to acquire the lock for this client. -</p><dl> -<dt><i>blocking</i> (bool)</dt> -<dd> -flag to indicating a blocking lock -</dd> -</dl><dl> -<dt>Returns:</dt> -<dd> -flag indicating successful locking -</dd> -</dl><dl> -<dt>Return Type:</dt> -<dd> -bool -</dd> -</dl><a NAME="DebugClientThreads.setCurrentThread" ID="DebugClientThreads.setCurrentThread"></a> -<h4>DebugClientThreads.setCurrentThread</h4> -<b>setCurrentThread</b>(<i>id</i>) -<p> - Public method to set the current thread. -</p><dl> -<dt><i>id</i></dt> -<dd> -the id the current thread should be set to. -</dd> -</dl><a NAME="DebugClientThreads.set_quit" ID="DebugClientThreads.set_quit"></a> -<h4>DebugClientThreads.set_quit</h4> -<b>set_quit</b>(<i></i>) -<p> - Public method to do a 'set quit' on all threads. -</p><a NAME="DebugClientThreads.threadTerminated" ID="DebugClientThreads.threadTerminated"></a> -<h4>DebugClientThreads.threadTerminated</h4> -<b>threadTerminated</b>(<i>dbgThread</i>) -<p> - Public method called when a DebugThread has exited. -</p><dl> -<dt><i>dbgThread</i></dt> -<dd> -the DebugThread that has exited -</dd> -</dl><a NAME="DebugClientThreads.unlockClient" ID="DebugClientThreads.unlockClient"></a> -<h4>DebugClientThreads.unlockClient</h4> -<b>unlockClient</b>(<i></i>) -<p> - Public method to release the lock for this client. -</p> -<div align="right"><a href="#top">Up</a></div> -<hr /><hr /> -<a NAME="_debugclient_start_new_thread" ID="_debugclient_start_new_thread"></a> -<h2>_debugclient_start_new_thread</h2> -<b>_debugclient_start_new_thread</b>(<i>target, args, kwargs={}</i>) -<p> - Module function used to allow for debugging of multiple threads. -</p><p> - The way it works is that below, we reset _thread._start_new_thread to - this function object. Thus, providing a hook for us to see when - threads are started. From here we forward the request onto the - DebugClient which will create a DebugThread object to allow tracing - of the thread then start up the thread. These actions are always - performed in order to allow dropping into debug mode. -</p><p> - See DebugClientThreads.attachThread and DebugThread.DebugThread in - DebugThread.py -</p><dl> -<dt><i>target</i></dt> -<dd> -the start function of the target thread (i.e. the user code) -</dd><dt><i>args</i></dt> -<dd> -arguments to pass to target -</dd><dt><i>kwargs</i></dt> -<dd> -keyword arguments to pass to target -</dd> -</dl><dl> -<dt>Returns:</dt> -<dd> -The identifier of the created thread -</dd> -</dl> -<div align="right"><a href="#top">Up</a></div> -<hr /> -</body></html> \ No newline at end of file
--- a/Documentation/Source/eric6.DebugClients.Python3.DebugConfig.html Sun Oct 16 14:43:18 2016 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,39 +0,0 @@ -<!DOCTYPE html> -<html><head> -<title>eric6.DebugClients.Python3.DebugConfig</title> -<meta charset="UTF-8"> -<style> -body { - background: #EDECE6; - margin: 0em 1em 10em 1em; - color: black; -} - -h1 { color: white; background: #85774A; } -h2 { color: white; background: #85774A; } -h3 { color: white; background: #9D936E; } -h4 { color: white; background: #9D936E; } - -a { color: #BA6D36; } - -</style> -</head> -<body><a NAME="top" ID="top"></a> -<h1>eric6.DebugClients.Python3.DebugConfig</h1> -<p> -Module defining type strings for the different Python types. -</p> -<h3>Global Attributes</h3> -<table> -<tr><td>ConfigVarTypeStrings</td></tr> -</table> -<h3>Classes</h3> -<table> -<tr><td>None</td></tr> -</table> -<h3>Functions</h3> -<table> -<tr><td>None</td></tr> -</table> -<hr /> -</body></html> \ No newline at end of file
--- a/Documentation/Source/eric6.DebugClients.Python3.DebugThread.html Sun Oct 16 14:43:18 2016 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,184 +0,0 @@ -<!DOCTYPE html> -<html><head> -<title>eric6.DebugClients.Python3.DebugThread</title> -<meta charset="UTF-8"> -<style> -body { - background: #EDECE6; - margin: 0em 1em 10em 1em; - color: black; -} - -h1 { color: white; background: #85774A; } -h2 { color: white; background: #85774A; } -h3 { color: white; background: #9D936E; } -h4 { color: white; background: #9D936E; } - -a { color: #BA6D36; } - -</style> -</head> -<body><a NAME="top" ID="top"></a> -<h1>eric6.DebugClients.Python3.DebugThread</h1> -<p> -Module implementing the debug thread. -</p> -<h3>Global Attributes</h3> -<table> -<tr><td>None</td></tr> -</table> -<h3>Classes</h3> -<table> -<tr> -<td><a href="#DebugThread">DebugThread</a></td> -<td>Class implementing a debug thread.</td> -</tr> -</table> -<h3>Functions</h3> -<table> -<tr><td>None</td></tr> -</table> -<hr /><hr /> -<a NAME="DebugThread" ID="DebugThread"></a> -<h2>DebugThread</h2> -<p> - Class implementing a debug thread. -</p><p> - It represents a thread in the python interpreter that we are tracing. -</p><p> - Provides simple wrapper methods around bdb for the 'owning' client to - call to step etc. -</p> -<h3>Derived from</h3> -DebugBase -<h3>Class Attributes</h3> -<table> -<tr><td>None</td></tr> -</table> -<h3>Class Methods</h3> -<table> -<tr><td>None</td></tr> -</table> -<h3>Methods</h3> -<table> -<tr> -<td><a href="#DebugThread.__init__">DebugThread</a></td> -<td>Constructor</td> -</tr><tr> -<td><a href="#DebugThread.bootstrap">bootstrap</a></td> -<td>Public method to bootstrap the thread.</td> -</tr><tr> -<td><a href="#DebugThread.get_ident">get_ident</a></td> -<td>Public method to return the id of this thread.</td> -</tr><tr> -<td><a href="#DebugThread.get_name">get_name</a></td> -<td>Public method to return the name of this thread.</td> -</tr><tr> -<td><a href="#DebugThread.set_ident">set_ident</a></td> -<td>Public method to set the id for this thread.</td> -</tr><tr> -<td><a href="#DebugThread.traceThread">traceThread</a></td> -<td>Public method to setup tracing for this thread.</td> -</tr><tr> -<td><a href="#DebugThread.trace_dispatch">trace_dispatch</a></td> -<td>Public method wrapping the trace_dispatch of bdb.py.</td> -</tr> -</table> -<h3>Static Methods</h3> -<table> -<tr><td>None</td></tr> -</table> -<a NAME="DebugThread.__init__" ID="DebugThread.__init__"></a> -<h4>DebugThread (Constructor)</h4> -<b>DebugThread</b>(<i>dbgClient, targ=None, args=None, kwargs=None, mainThread=False</i>) -<p> - Constructor -</p><dl> -<dt><i>dbgClient</i></dt> -<dd> -the owning client -</dd><dt><i>targ</i></dt> -<dd> -the target method in the run thread -</dd><dt><i>args</i></dt> -<dd> -arguments to be passed to the thread -</dd><dt><i>kwargs</i></dt> -<dd> -arguments to be passed to the thread -</dd><dt><i>mainThread</i></dt> -<dd> -False if this thread is not the main script's thread -</dd> -</dl><a NAME="DebugThread.bootstrap" ID="DebugThread.bootstrap"></a> -<h4>DebugThread.bootstrap</h4> -<b>bootstrap</b>(<i></i>) -<p> - Public method to bootstrap the thread. -</p><p> - It wraps the call to the user function to enable tracing - before hand. -</p><a NAME="DebugThread.get_ident" ID="DebugThread.get_ident"></a> -<h4>DebugThread.get_ident</h4> -<b>get_ident</b>(<i></i>) -<p> - Public method to return the id of this thread. -</p><dl> -<dt>Returns:</dt> -<dd> -the id of this thread (int) -</dd> -</dl><a NAME="DebugThread.get_name" ID="DebugThread.get_name"></a> -<h4>DebugThread.get_name</h4> -<b>get_name</b>(<i></i>) -<p> - Public method to return the name of this thread. -</p><dl> -<dt>Returns:</dt> -<dd> -name of this thread (string) -</dd> -</dl><a NAME="DebugThread.set_ident" ID="DebugThread.set_ident"></a> -<h4>DebugThread.set_ident</h4> -<b>set_ident</b>(<i>id</i>) -<p> - Public method to set the id for this thread. -</p><dl> -<dt><i>id</i></dt> -<dd> -id for this thread (int) -</dd> -</dl><a NAME="DebugThread.traceThread" ID="DebugThread.traceThread"></a> -<h4>DebugThread.traceThread</h4> -<b>traceThread</b>(<i></i>) -<p> - Public method to setup tracing for this thread. -</p><a NAME="DebugThread.trace_dispatch" ID="DebugThread.trace_dispatch"></a> -<h4>DebugThread.trace_dispatch</h4> -<b>trace_dispatch</b>(<i>frame, event, arg</i>) -<p> - Public method wrapping the trace_dispatch of bdb.py. -</p><p> - It wraps the call to dispatch tracing into - bdb to make sure we have locked the client to prevent multiple - threads from entering the client event loop. -</p><dl> -<dt><i>frame</i></dt> -<dd> -The current stack frame. -</dd><dt><i>event</i></dt> -<dd> -The trace event (string) -</dd><dt><i>arg</i></dt> -<dd> -The arguments -</dd> -</dl><dl> -<dt>Returns:</dt> -<dd> -local trace function -</dd> -</dl> -<div align="right"><a href="#top">Up</a></div> -<hr /> -</body></html> \ No newline at end of file
--- a/Documentation/Source/eric6.DebugClients.Python3.DebugUtilities.html Sun Oct 16 14:43:18 2016 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,175 +0,0 @@ -<!DOCTYPE html> -<html><head> -<title>eric6.DebugClients.Python3.DebugUtilities</title> -<meta charset="UTF-8"> -<style> -body { - background: #EDECE6; - margin: 0em 1em 10em 1em; - color: black; -} - -h1 { color: white; background: #85774A; } -h2 { color: white; background: #85774A; } -h3 { color: white; background: #9D936E; } -h4 { color: white; background: #9D936E; } - -a { color: #BA6D36; } - -</style> -</head> -<body><a NAME="top" ID="top"></a> -<h1>eric6.DebugClients.Python3.DebugUtilities</h1> -<p> -Module implementing utilities functions for the debug client. -</p> -<h3>Global Attributes</h3> -<table> -<tr><td>ArgInfo</td></tr> -</table> -<h3>Classes</h3> -<table> -<tr><td>None</td></tr> -</table> -<h3>Functions</h3> -<table> -<tr> -<td><a href="#_getfullargs">_getfullargs</a></td> -<td>Protected function to get information about the arguments accepted by a code object.</td> -</tr><tr> -<td><a href="#formatargvalues">formatargvalues</a></td> -<td>Function to format an argument spec from the 4 values returned by getargvalues.</td> -</tr><tr> -<td><a href="#getargvalues">getargvalues</a></td> -<td>Function to get information about arguments passed into a particular frame.</td> -</tr><tr> -<td><a href="#prepareJsonCommand">prepareJsonCommand</a></td> -<td>Function to prepare a single command or response for transmission to the IDE.</td> -</tr> -</table> -<hr /><hr /> -<a NAME="_getfullargs" ID="_getfullargs"></a> -<h2>_getfullargs</h2> -<b>_getfullargs</b>(<i>co</i>) -<p> - Protected function to get information about the arguments accepted - by a code object. -</p><dl> -<dt><i>co</i> (code)</dt> -<dd> -reference to a code object to be processed -</dd> -</dl><dl> -<dt>Returns:</dt> -<dd> -tuple of four things, where 'args' and 'kwonlyargs' are lists of - argument names, and 'varargs' and 'varkw' are the names of the - * and ** arguments or None. -</dd> -</dl><dl> -<dt>Raises <b>TypeError</b>:</dt> -<dd> -raised if the input parameter is not a code object -</dd> -</dl> -<div align="right"><a href="#top">Up</a></div> -<hr /><hr /> -<a NAME="formatargvalues" ID="formatargvalues"></a> -<h2>formatargvalues</h2> -<b>formatargvalues</b>(<i>args, varargs, varkw, locals, formatarg=str, formatvarargs=lambda name: '*' + name, formatvarkw=lambda name: '**' + name, formatvalue=lambda value: '=' + repr(value)</i>) -<p> - Function to format an argument spec from the 4 values returned - by getargvalues. -</p><dl> -<dt><i>args</i> (list of str)</dt> -<dd> -list of argument names -</dd><dt><i>varargs</i> (str)</dt> -<dd> -name of the variable arguments -</dd><dt><i>varkw</i> (str)</dt> -<dd> -name of the keyword arguments -</dd><dt><i>locals</i> (dict)</dt> -<dd> -reference to the local variables dictionary -</dd><dt><i>formatarg=</i> (func)</dt> -<dd> -argument formatting function -</dd><dt><i>formatvarargs=</i> (func)</dt> -<dd> -variable arguments formatting function -</dd><dt><i>formatvarkw=</i> (func)</dt> -<dd> -keyword arguments formatting function -</dd><dt><i>formatvalue=</i> (func)</dt> -<dd> -value formating functtion -</dd> -</dl><dl> -<dt>Returns:</dt> -<dd> -formatted call signature -</dd> -</dl><dl> -<dt>Return Type:</dt> -<dd> -str -</dd> -</dl> -<div align="right"><a href="#top">Up</a></div> -<hr /><hr /> -<a NAME="getargvalues" ID="getargvalues"></a> -<h2>getargvalues</h2> -<b>getargvalues</b>(<i>frame</i>) -<p> - Function to get information about arguments passed into a - particular frame. -</p><dl> -<dt><i>frame</i> (frame)</dt> -<dd> -reference to a frame object to be processed -</dd> -</dl><dl> -<dt>Returns:</dt> -<dd> -tuple of four things, where 'args' is a list of the argument names, - 'varargs' and 'varkw' are the names of the * and ** arguments or None - and 'locals' is the locals dictionary of the given frame. -</dd> -</dl><dl> -<dt>Raises <b>TypeError</b>:</dt> -<dd> -raised if the input parameter is not a frame object -</dd> -</dl> -<div align="right"><a href="#top">Up</a></div> -<hr /><hr /> -<a NAME="prepareJsonCommand" ID="prepareJsonCommand"></a> -<h2>prepareJsonCommand</h2> -<b>prepareJsonCommand</b>(<i>method, params</i>) -<p> - Function to prepare a single command or response for transmission to - the IDE. -</p><dl> -<dt><i>method</i> (str)</dt> -<dd> -command or response name to be sent -</dd><dt><i>params</i> (dict)</dt> -<dd> -dictionary of named parameters for the command or response -</dd> -</dl><dl> -<dt>Returns:</dt> -<dd> -prepared JSON command or response string -</dd> -</dl><dl> -<dt>Return Type:</dt> -<dd> -str -</dd> -</dl> -<div align="right"><a href="#top">Up</a></div> -<hr /> -</body></html> \ No newline at end of file
--- a/Documentation/Source/eric6.DebugClients.Python3.DebugVariables.html Sun Oct 16 14:43:18 2016 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,816 +0,0 @@ -<!DOCTYPE html> -<html><head> -<title>eric6.DebugClients.Python3.DebugVariables</title> -<meta charset="UTF-8"> -<style> -body { - background: #EDECE6; - margin: 0em 1em 10em 1em; - color: black; -} - -h1 { color: white; background: #85774A; } -h2 { color: white; background: #85774A; } -h3 { color: white; background: #9D936E; } -h4 { color: white; background: #9D936E; } - -a { color: #BA6D36; } - -</style> -</head> -<body><a NAME="top" ID="top"></a> -<h1>eric6.DebugClients.Python3.DebugVariables</h1> -<p> -Module implementing classes and functions to dump variable contents. -</p> -<h3>Global Attributes</h3> -<table> -<tr><td>MaxItemsToHandle</td></tr><tr><td>TooLargeAttribute</td></tr><tr><td>TooLargeMessage</td></tr><tr><td>_TypeMap</td></tr><tr><td>arrayResolver</td></tr><tr><td>defaultResolver</td></tr><tr><td>dictResolver</td></tr><tr><td>listResolver</td></tr><tr><td>multiValueDictResolver</td></tr><tr><td>ndarrayResolver</td></tr><tr><td>setResolver</td></tr> -</table> -<h3>Classes</h3> -<table> -<tr> -<td><a href="#ArrayItemsContainer">ArrayItemsContainer</a></td> -<td>Class to store array.array items.</td> -</tr><tr> -<td><a href="#ArrayResolver">ArrayResolver</a></td> -<td>Class used to resolve from array.array including some meta data.</td> -</tr><tr> -<td><a href="#BaseResolver">BaseResolver</a></td> -<td>Base class of the resolver class tree.</td> -</tr><tr> -<td><a href="#DefaultResolver">DefaultResolver</a></td> -<td>Class used to resolve the default way.</td> -</tr><tr> -<td><a href="#DictResolver">DictResolver</a></td> -<td>Class used to resolve from a dictionary.</td> -</tr><tr> -<td><a href="#ListResolver">ListResolver</a></td> -<td>Class used to resolve from a tuple or list.</td> -</tr><tr> -<td><a href="#MultiValueDictResolver">MultiValueDictResolver</a></td> -<td>Class used to resolve from Django multi value dictionaries.</td> -</tr><tr> -<td><a href="#NdArrayItemsContainer">NdArrayItemsContainer</a></td> -<td>Class to store ndarray items.</td> -</tr><tr> -<td><a href="#NdArrayResolver">NdArrayResolver</a></td> -<td>Class used to resolve from numpy ndarray including some meta data.</td> -</tr><tr> -<td><a href="#SetResolver">SetResolver</a></td> -<td>Class used to resolve from a set or frozenset.</td> -</tr> -</table> -<h3>Functions</h3> -<table> -<tr> -<td><a href="#_initTypeMap">_initTypeMap</a></td> -<td>Protected function to initialize the type map.</td> -</tr><tr> -<td><a href="#getType">getType</a></td> -<td>Public method to get the type information for an object.</td> -</tr> -</table> -<hr /><hr /> -<a NAME="ArrayItemsContainer" ID="ArrayItemsContainer"></a> -<h2>ArrayItemsContainer</h2> -<p> - Class to store array.array items. -</p> -<h3>Derived from</h3> -None -<h3>Class Attributes</h3> -<table> -<tr><td>None</td></tr> -</table> -<h3>Class Methods</h3> -<table> -<tr><td>None</td></tr> -</table> -<h3>Methods</h3> -<table> -<tr><td>None</td></tr> -</table> -<h3>Static Methods</h3> -<table> -<tr><td>None</td></tr> -</table> - -<div align="right"><a href="#top">Up</a></div> -<hr /><hr /> -<a NAME="ArrayResolver" ID="ArrayResolver"></a> -<h2>ArrayResolver</h2> -<p> - Class used to resolve from array.array including some meta data. -</p> -<h3>Derived from</h3> -BaseResolver -<h3>Class Attributes</h3> -<table> -<tr><td>TypeCodeMap</td></tr> -</table> -<h3>Class Methods</h3> -<table> -<tr><td>None</td></tr> -</table> -<h3>Methods</h3> -<table> -<tr> -<td><a href="#ArrayResolver.getDictionary">getDictionary</a></td> -<td>Public method to get the attributes of a variable as a dictionary.</td> -</tr><tr> -<td><a href="#ArrayResolver.resolve">resolve</a></td> -<td>Public method to get an attribute from a variable.</td> -</tr> -</table> -<h3>Static Methods</h3> -<table> -<tr><td>None</td></tr> -</table> -<a NAME="ArrayResolver.getDictionary" ID="ArrayResolver.getDictionary"></a> -<h4>ArrayResolver.getDictionary</h4> -<b>getDictionary</b>(<i>var</i>) -<p> - Public method to get the attributes of a variable as a dictionary. -</p><dl> -<dt><i>var</i> (any)</dt> -<dd> -variable to be converted -</dd> -</dl><dl> -<dt>Returns:</dt> -<dd> -dictionary containing the variable attributes -</dd> -</dl><dl> -<dt>Return Type:</dt> -<dd> -dict -</dd> -</dl><a NAME="ArrayResolver.resolve" ID="ArrayResolver.resolve"></a> -<h4>ArrayResolver.resolve</h4> -<b>resolve</b>(<i>var, attribute</i>) -<p> - Public method to get an attribute from a variable. -</p><dl> -<dt><i>var</i> (tuple or list)</dt> -<dd> -variable to extract an attribute or value from -</dd><dt><i>attribute</i> (str)</dt> -<dd> -id of the value to extract -</dd> -</dl><dl> -<dt>Returns:</dt> -<dd> -value of the attribute -</dd> -</dl><dl> -<dt>Return Type:</dt> -<dd> -any -</dd> -</dl> -<div align="right"><a href="#top">Up</a></div> -<hr /><hr /> -<a NAME="BaseResolver" ID="BaseResolver"></a> -<h2>BaseResolver</h2> -<p> - Base class of the resolver class tree. -</p> -<h3>Derived from</h3> -object -<h3>Class Attributes</h3> -<table> -<tr><td>None</td></tr> -</table> -<h3>Class Methods</h3> -<table> -<tr><td>None</td></tr> -</table> -<h3>Methods</h3> -<table> -<tr> -<td><a href="#BaseResolver.getDictionary">getDictionary</a></td> -<td>Public method to get the attributes of a variable as a dictionary.</td> -</tr><tr> -<td><a href="#BaseResolver.resolve">resolve</a></td> -<td>Public method to get an attribute from a variable.</td> -</tr> -</table> -<h3>Static Methods</h3> -<table> -<tr><td>None</td></tr> -</table> -<a NAME="BaseResolver.getDictionary" ID="BaseResolver.getDictionary"></a> -<h4>BaseResolver.getDictionary</h4> -<b>getDictionary</b>(<i>var</i>) -<p> - Public method to get the attributes of a variable as a dictionary. -</p><dl> -<dt><i>var</i> (any)</dt> -<dd> -variable to be converted -</dd> -</dl><dl> -<dt>Returns:</dt> -<dd> -dictionary containing the variable attributes -</dd> -</dl><dl> -<dt>Return Type:</dt> -<dd> -dict -</dd> -</dl><dl> -<dt>Raises <b>NotImplementedError</b>:</dt> -<dd> -raised to indicate a missing - implementation -</dd> -</dl><a NAME="BaseResolver.resolve" ID="BaseResolver.resolve"></a> -<h4>BaseResolver.resolve</h4> -<b>resolve</b>(<i>var, attribute</i>) -<p> - Public method to get an attribute from a variable. -</p><dl> -<dt><i>var</i> (any)</dt> -<dd> -variable to extract an attribute or value from -</dd><dt><i>attribute</i> (str)</dt> -<dd> -name of the attribute to extract -</dd> -</dl><dl> -<dt>Returns:</dt> -<dd> -value of the attribute -</dd> -</dl><dl> -<dt>Return Type:</dt> -<dd> -any -</dd> -</dl><dl> -<dt>Raises <b>NotImplementedError</b>:</dt> -<dd> -raised to indicate a missing - implementation -</dd> -</dl> -<div align="right"><a href="#top">Up</a></div> -<hr /><hr /> -<a NAME="DefaultResolver" ID="DefaultResolver"></a> -<h2>DefaultResolver</h2> -<p> - Class used to resolve the default way. -</p> -<h3>Derived from</h3> -BaseResolver -<h3>Class Attributes</h3> -<table> -<tr><td>None</td></tr> -</table> -<h3>Class Methods</h3> -<table> -<tr><td>None</td></tr> -</table> -<h3>Methods</h3> -<table> -<tr> -<td><a href="#DefaultResolver.getDictionary">getDictionary</a></td> -<td>Public method to get the attributes of a variable as a dictionary.</td> -</tr><tr> -<td><a href="#DefaultResolver.resolve">resolve</a></td> -<td>Public method to get an attribute from a variable.</td> -</tr> -</table> -<h3>Static Methods</h3> -<table> -<tr><td>None</td></tr> -</table> -<a NAME="DefaultResolver.getDictionary" ID="DefaultResolver.getDictionary"></a> -<h4>DefaultResolver.getDictionary</h4> -<b>getDictionary</b>(<i>var</i>) -<p> - Public method to get the attributes of a variable as a dictionary. -</p><dl> -<dt><i>var</i> (any)</dt> -<dd> -variable to be converted -</dd> -</dl><dl> -<dt>Returns:</dt> -<dd> -dictionary containing the variable attributes -</dd> -</dl><dl> -<dt>Return Type:</dt> -<dd> -dict -</dd> -</dl><a NAME="DefaultResolver.resolve" ID="DefaultResolver.resolve"></a> -<h4>DefaultResolver.resolve</h4> -<b>resolve</b>(<i>var, attribute</i>) -<p> - Public method to get an attribute from a variable. -</p><dl> -<dt><i>var</i> (any)</dt> -<dd> -variable to extract an attribute or value from -</dd><dt><i>attribute</i> (str)</dt> -<dd> -name of the attribute to extract -</dd> -</dl><dl> -<dt>Returns:</dt> -<dd> -value of the attribute -</dd> -</dl><dl> -<dt>Return Type:</dt> -<dd> -any -</dd> -</dl> -<div align="right"><a href="#top">Up</a></div> -<hr /><hr /> -<a NAME="DictResolver" ID="DictResolver"></a> -<h2>DictResolver</h2> -<p> - Class used to resolve from a dictionary. -</p> -<h3>Derived from</h3> -BaseResolver -<h3>Class Attributes</h3> -<table> -<tr><td>None</td></tr> -</table> -<h3>Class Methods</h3> -<table> -<tr><td>None</td></tr> -</table> -<h3>Methods</h3> -<table> -<tr> -<td><a href="#DictResolver.getDictionary">getDictionary</a></td> -<td>Public method to get the attributes of a variable as a dictionary.</td> -</tr><tr> -<td><a href="#DictResolver.keyToStr">keyToStr</a></td> -<td>Public method to get a string representation for a key.</td> -</tr><tr> -<td><a href="#DictResolver.resolve">resolve</a></td> -<td>Public method to get an attribute from a variable.</td> -</tr> -</table> -<h3>Static Methods</h3> -<table> -<tr><td>None</td></tr> -</table> -<a NAME="DictResolver.getDictionary" ID="DictResolver.getDictionary"></a> -<h4>DictResolver.getDictionary</h4> -<b>getDictionary</b>(<i>var</i>) -<p> - Public method to get the attributes of a variable as a dictionary. -</p><dl> -<dt><i>var</i> (any)</dt> -<dd> -variable to be converted -</dd> -</dl><dl> -<dt>Returns:</dt> -<dd> -dictionary containing the variable attributes -</dd> -</dl><dl> -<dt>Return Type:</dt> -<dd> -dict -</dd> -</dl><a NAME="DictResolver.keyToStr" ID="DictResolver.keyToStr"></a> -<h4>DictResolver.keyToStr</h4> -<b>keyToStr</b>(<i>key</i>) -<p> - Public method to get a string representation for a key. -</p><dl> -<dt><i>key</i> (any)</dt> -<dd> -key to be converted -</dd> -</dl><dl> -<dt>Returns:</dt> -<dd> -string representation of the given key -</dd> -</dl><dl> -<dt>Return Type:</dt> -<dd> -str -</dd> -</dl><a NAME="DictResolver.resolve" ID="DictResolver.resolve"></a> -<h4>DictResolver.resolve</h4> -<b>resolve</b>(<i>var, attribute</i>) -<p> - Public method to get an attribute from a variable. -</p><dl> -<dt><i>var</i> (dict)</dt> -<dd> -variable to extract an attribute or value from -</dd><dt><i>attribute</i> (str)</dt> -<dd> -name of the attribute to extract -</dd> -</dl><dl> -<dt>Returns:</dt> -<dd> -value of the attribute -</dd> -</dl><dl> -<dt>Return Type:</dt> -<dd> -any -</dd> -</dl> -<div align="right"><a href="#top">Up</a></div> -<hr /><hr /> -<a NAME="ListResolver" ID="ListResolver"></a> -<h2>ListResolver</h2> -<p> - Class used to resolve from a tuple or list. -</p> -<h3>Derived from</h3> -BaseResolver -<h3>Class Attributes</h3> -<table> -<tr><td>None</td></tr> -</table> -<h3>Class Methods</h3> -<table> -<tr><td>None</td></tr> -</table> -<h3>Methods</h3> -<table> -<tr> -<td><a href="#ListResolver.getDictionary">getDictionary</a></td> -<td>Public method to get the attributes of a variable as a dictionary.</td> -</tr><tr> -<td><a href="#ListResolver.resolve">resolve</a></td> -<td>Public method to get an attribute from a variable.</td> -</tr> -</table> -<h3>Static Methods</h3> -<table> -<tr><td>None</td></tr> -</table> -<a NAME="ListResolver.getDictionary" ID="ListResolver.getDictionary"></a> -<h4>ListResolver.getDictionary</h4> -<b>getDictionary</b>(<i>var</i>) -<p> - Public method to get the attributes of a variable as a dictionary. -</p><dl> -<dt><i>var</i> (any)</dt> -<dd> -variable to be converted -</dd> -</dl><dl> -<dt>Returns:</dt> -<dd> -dictionary containing the variable attributes -</dd> -</dl><dl> -<dt>Return Type:</dt> -<dd> -dict -</dd> -</dl><a NAME="ListResolver.resolve" ID="ListResolver.resolve"></a> -<h4>ListResolver.resolve</h4> -<b>resolve</b>(<i>var, attribute</i>) -<p> - Public method to get an attribute from a variable. -</p><dl> -<dt><i>var</i> (tuple or list)</dt> -<dd> -variable to extract an attribute or value from -</dd><dt><i>attribute</i> (str)</dt> -<dd> -name of the attribute to extract -</dd> -</dl><dl> -<dt>Returns:</dt> -<dd> -value of the attribute -</dd> -</dl><dl> -<dt>Return Type:</dt> -<dd> -any -</dd> -</dl> -<div align="right"><a href="#top">Up</a></div> -<hr /><hr /> -<a NAME="MultiValueDictResolver" ID="MultiValueDictResolver"></a> -<h2>MultiValueDictResolver</h2> -<p> - Class used to resolve from Django multi value dictionaries. -</p> -<h3>Derived from</h3> -DictResolver -<h3>Class Attributes</h3> -<table> -<tr><td>None</td></tr> -</table> -<h3>Class Methods</h3> -<table> -<tr><td>None</td></tr> -</table> -<h3>Methods</h3> -<table> -<tr> -<td><a href="#MultiValueDictResolver.getDictionary">getDictionary</a></td> -<td>Public method to get the attributes of a variable as a dictionary.</td> -</tr><tr> -<td><a href="#MultiValueDictResolver.resolve">resolve</a></td> -<td>Public method to get an attribute from a variable.</td> -</tr> -</table> -<h3>Static Methods</h3> -<table> -<tr><td>None</td></tr> -</table> -<a NAME="MultiValueDictResolver.getDictionary" ID="MultiValueDictResolver.getDictionary"></a> -<h4>MultiValueDictResolver.getDictionary</h4> -<b>getDictionary</b>(<i>var</i>) -<p> - Public method to get the attributes of a variable as a dictionary. -</p><dl> -<dt><i>var</i> (any)</dt> -<dd> -variable to be converted -</dd> -</dl><dl> -<dt>Returns:</dt> -<dd> -dictionary containing the variable attributes -</dd> -</dl><dl> -<dt>Return Type:</dt> -<dd> -dict -</dd> -</dl><a NAME="MultiValueDictResolver.resolve" ID="MultiValueDictResolver.resolve"></a> -<h4>MultiValueDictResolver.resolve</h4> -<b>resolve</b>(<i>var, attribute</i>) -<p> - Public method to get an attribute from a variable. -</p><dl> -<dt><i>var</i> (dict)</dt> -<dd> -variable to extract an attribute or value from -</dd><dt><i>attribute</i> (str)</dt> -<dd> -name of the attribute to extract -</dd> -</dl><dl> -<dt>Returns:</dt> -<dd> -value of the attribute -</dd> -</dl><dl> -<dt>Return Type:</dt> -<dd> -any -</dd> -</dl> -<div align="right"><a href="#top">Up</a></div> -<hr /><hr /> -<a NAME="NdArrayItemsContainer" ID="NdArrayItemsContainer"></a> -<h2>NdArrayItemsContainer</h2> -<p> - Class to store ndarray items. -</p> -<h3>Derived from</h3> -None -<h3>Class Attributes</h3> -<table> -<tr><td>None</td></tr> -</table> -<h3>Class Methods</h3> -<table> -<tr><td>None</td></tr> -</table> -<h3>Methods</h3> -<table> -<tr><td>None</td></tr> -</table> -<h3>Static Methods</h3> -<table> -<tr><td>None</td></tr> -</table> - -<div align="right"><a href="#top">Up</a></div> -<hr /><hr /> -<a NAME="NdArrayResolver" ID="NdArrayResolver"></a> -<h2>NdArrayResolver</h2> -<p> - Class used to resolve from numpy ndarray including some meta data. -</p> -<h3>Derived from</h3> -BaseResolver -<h3>Class Attributes</h3> -<table> -<tr><td>None</td></tr> -</table> -<h3>Class Methods</h3> -<table> -<tr><td>None</td></tr> -</table> -<h3>Methods</h3> -<table> -<tr> -<td><a href="#NdArrayResolver.__isNumeric">__isNumeric</a></td> -<td>Private method to check, if an array is of a numeric type.</td> -</tr><tr> -<td><a href="#NdArrayResolver.getDictionary">getDictionary</a></td> -<td>Public method to get the attributes of a variable as a dictionary.</td> -</tr><tr> -<td><a href="#NdArrayResolver.resolve">resolve</a></td> -<td>Public method to get an attribute from a variable.</td> -</tr> -</table> -<h3>Static Methods</h3> -<table> -<tr><td>None</td></tr> -</table> -<a NAME="NdArrayResolver.__isNumeric" ID="NdArrayResolver.__isNumeric"></a> -<h4>NdArrayResolver.__isNumeric</h4> -<b>__isNumeric</b>(<i>arr</i>) -<p> - Private method to check, if an array is of a numeric type. -</p><dl> -<dt><i>arr</i> (ndarray)</dt> -<dd> -array to check -</dd> -</dl><dl> -<dt>Returns:</dt> -<dd> -flag indicating a numeric array -</dd> -</dl><dl> -<dt>Return Type:</dt> -<dd> -bool -</dd> -</dl><a NAME="NdArrayResolver.getDictionary" ID="NdArrayResolver.getDictionary"></a> -<h4>NdArrayResolver.getDictionary</h4> -<b>getDictionary</b>(<i>var</i>) -<p> - Public method to get the attributes of a variable as a dictionary. -</p><dl> -<dt><i>var</i> (any)</dt> -<dd> -variable to be converted -</dd> -</dl><dl> -<dt>Returns:</dt> -<dd> -dictionary containing the variable attributes -</dd> -</dl><dl> -<dt>Return Type:</dt> -<dd> -dict -</dd> -</dl><a NAME="NdArrayResolver.resolve" ID="NdArrayResolver.resolve"></a> -<h4>NdArrayResolver.resolve</h4> -<b>resolve</b>(<i>var, attribute</i>) -<p> - Public method to get an attribute from a variable. -</p><dl> -<dt><i>var</i> (tuple or list)</dt> -<dd> -variable to extract an attribute or value from -</dd><dt><i>attribute</i> (str)</dt> -<dd> -id of the value to extract -</dd> -</dl><dl> -<dt>Returns:</dt> -<dd> -value of the attribute -</dd> -</dl><dl> -<dt>Return Type:</dt> -<dd> -any -</dd> -</dl> -<div align="right"><a href="#top">Up</a></div> -<hr /><hr /> -<a NAME="SetResolver" ID="SetResolver"></a> -<h2>SetResolver</h2> -<p> - Class used to resolve from a set or frozenset. -</p> -<h3>Derived from</h3> -BaseResolver -<h3>Class Attributes</h3> -<table> -<tr><td>None</td></tr> -</table> -<h3>Class Methods</h3> -<table> -<tr><td>None</td></tr> -</table> -<h3>Methods</h3> -<table> -<tr> -<td><a href="#SetResolver.getDictionary">getDictionary</a></td> -<td>Public method to get the attributes of a variable as a dictionary.</td> -</tr><tr> -<td><a href="#SetResolver.resolve">resolve</a></td> -<td>Public method to get an attribute from a variable.</td> -</tr> -</table> -<h3>Static Methods</h3> -<table> -<tr><td>None</td></tr> -</table> -<a NAME="SetResolver.getDictionary" ID="SetResolver.getDictionary"></a> -<h4>SetResolver.getDictionary</h4> -<b>getDictionary</b>(<i>var</i>) -<p> - Public method to get the attributes of a variable as a dictionary. -</p><dl> -<dt><i>var</i> (any)</dt> -<dd> -variable to be converted -</dd> -</dl><dl> -<dt>Returns:</dt> -<dd> -dictionary containing the variable attributes -</dd> -</dl><dl> -<dt>Return Type:</dt> -<dd> -dict -</dd> -</dl><a NAME="SetResolver.resolve" ID="SetResolver.resolve"></a> -<h4>SetResolver.resolve</h4> -<b>resolve</b>(<i>var, attribute</i>) -<p> - Public method to get an attribute from a variable. -</p><dl> -<dt><i>var</i> (tuple or list)</dt> -<dd> -variable to extract an attribute or value from -</dd><dt><i>attribute</i> (str)</dt> -<dd> -id of the value to extract -</dd> -</dl><dl> -<dt>Returns:</dt> -<dd> -value of the attribute -</dd> -</dl><dl> -<dt>Return Type:</dt> -<dd> -any -</dd> -</dl> -<div align="right"><a href="#top">Up</a></div> -<hr /><hr /> -<a NAME="_initTypeMap" ID="_initTypeMap"></a> -<h2>_initTypeMap</h2> -<b>_initTypeMap</b>(<i></i>) -<p> - Protected function to initialize the type map. -</p> -<div align="right"><a href="#top">Up</a></div> -<hr /><hr /> -<a NAME="getType" ID="getType"></a> -<h2>getType</h2> -<b>getType</b>(<i>obj</i>) -<p> - Public method to get the type information for an object. -</p><dl> -<dt><i>obj</i> (any)</dt> -<dd> -object to get type information for -</dd> -</dl><dl> -<dt>Returns:</dt> -<dd> -tuple containing the type, type name, type string and resolver -</dd> -</dl><dl> -<dt>Return Type:</dt> -<dd> -tuple of type, str, str, BaseResolver -</dd> -</dl> -<div align="right"><a href="#top">Up</a></div> -<hr /> -</body></html> \ No newline at end of file
--- a/Documentation/Source/eric6.DebugClients.Python3.FlexCompleter.html Sun Oct 16 14:43:18 2016 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,253 +0,0 @@ -<!DOCTYPE html> -<html><head> -<title>eric6.DebugClients.Python3.FlexCompleter</title> -<meta charset="UTF-8"> -<style> -body { - background: #EDECE6; - margin: 0em 1em 10em 1em; - color: black; -} - -h1 { color: white; background: #85774A; } -h2 { color: white; background: #85774A; } -h3 { color: white; background: #9D936E; } -h4 { color: white; background: #9D936E; } - -a { color: #BA6D36; } - -</style> -</head> -<body><a NAME="top" ID="top"></a> -<h1>eric6.DebugClients.Python3.FlexCompleter</h1> -<p> -Word completion for the eric6 shell. -</p><p> -<h4>NOTE for eric6 variant</h4> -</p><p> - This version is a re-implementation of rlcompleter - as found in the Python3 library. It is modified to work with the eric6 - debug clients. -</p><p> -<h4>Original rlcompleter documentation</h4> -</p><p> - This requires the latest extension to the readline module. The completer - completes keywords, built-ins and globals in a selectable namespace (which - defaults to __main__); when completing NAME.NAME..., it evaluates (!) the - expression up to the last dot and completes its attributes. -</p><p> - It's very cool to do "import sys" type "sys.", hit the - completion key (twice), and see the list of names defined by the - sys module! -</p><p> - Tip: to use the tab key as the completion key, call -</p><p> - readline.parse_and_bind("tab: complete") -</p><p> - <b>Notes</b>: - <ul> - <li> - Exceptions raised by the completer function are *ignored* (and - generally cause the completion to fail). This is a feature -- since - readline sets the tty device in raw (or cbreak) mode, printing a - traceback wouldn't work well without some complicated hoopla to save, - reset and restore the tty state. - </li> - <li> - The evaluation of the NAME.NAME... form may cause arbitrary - application defined code to be executed if an object with a - __getattr__ hook is found. Since it is the responsibility of the - application (or the user) to enable this feature, I consider this an - acceptable risk. More complicated expressions (e.g. function calls or - indexing operations) are *not* evaluated. - </li> - <li> - When the original stdin is not a tty device, GNU readline is never - used, and this module (and the readline module) are silently inactive. - </li> - </ul> -</p> -<h3>Global Attributes</h3> -<table> -<tr><td>__all__</td></tr> -</table> -<h3>Classes</h3> -<table> -<tr> -<td><a href="#Completer">Completer</a></td> -<td>Class implementing the command line completer object.</td> -</tr> -</table> -<h3>Functions</h3> -<table> -<tr> -<td><a href="#get_class_members">get_class_members</a></td> -<td>Module function to retrieve the class members.</td> -</tr> -</table> -<hr /><hr /> -<a NAME="Completer" ID="Completer"></a> -<h2>Completer</h2> -<p> - Class implementing the command line completer object. -</p> -<h3>Derived from</h3> -object -<h3>Class Attributes</h3> -<table> -<tr><td>None</td></tr> -</table> -<h3>Class Methods</h3> -<table> -<tr><td>None</td></tr> -</table> -<h3>Methods</h3> -<table> -<tr> -<td><a href="#Completer.__init__">Completer</a></td> -<td>Constructor</td> -</tr><tr> -<td><a href="#Completer._callable_postfix">_callable_postfix</a></td> -<td>Protected method to check for a callable.</td> -</tr><tr> -<td><a href="#Completer.attr_matches">attr_matches</a></td> -<td>Public method to compute matches when text contains a dot.</td> -</tr><tr> -<td><a href="#Completer.complete">complete</a></td> -<td>Public method to return the next possible completion for 'text'.</td> -</tr><tr> -<td><a href="#Completer.global_matches">global_matches</a></td> -<td>Public method to compute matches when text is a simple name.</td> -</tr> -</table> -<h3>Static Methods</h3> -<table> -<tr><td>None</td></tr> -</table> -<a NAME="Completer.__init__" ID="Completer.__init__"></a> -<h4>Completer (Constructor)</h4> -<b>Completer</b>(<i>namespace=None</i>) -<p> - Constructor -</p><p> - Completer([namespace]) -> completer instance. -</p><p> - If unspecified, the default namespace where completions are performed - is __main__ (technically, __main__.__dict__). Namespaces should be - given as dictionaries. -</p><p> - Completer instances should be used as the completion mechanism of - readline via the set_completer() call: -</p><p> - readline.set_completer(Completer(my_namespace).complete) -</p><dl> -<dt><i>namespace</i></dt> -<dd> -The namespace for the completer. -</dd> -</dl><dl> -<dt>Raises <b>TypeError</b>:</dt> -<dd> -raised to indicate a wrong data structure of - the namespace object -</dd> -</dl><a NAME="Completer._callable_postfix" ID="Completer._callable_postfix"></a> -<h4>Completer._callable_postfix</h4> -<b>_callable_postfix</b>(<i>val, word</i>) -<p> - Protected method to check for a callable. -</p><dl> -<dt><i>val</i></dt> -<dd> -value to check (object) -</dd><dt><i>word</i></dt> -<dd> -word to ammend (string) -</dd> -</dl><dl> -<dt>Returns:</dt> -<dd> -ammended word (string) -</dd> -</dl><a NAME="Completer.attr_matches" ID="Completer.attr_matches"></a> -<h4>Completer.attr_matches</h4> -<b>attr_matches</b>(<i>text</i>) -<p> - Public method to compute matches when text contains a dot. -</p><p> - Assuming the text is of the form NAME.NAME....[NAME], and is - evaluatable in self.namespace, it will be evaluated and its attributes - (as revealed by dir()) are used as possible completions. (For class - instances, class members are are also considered.) -</p><p> - <b>WARNING</b>: this can still invoke arbitrary C code, if an object - with a __getattr__ hook is evaluated. -</p><dl> -<dt><i>text</i></dt> -<dd> -The text to be completed. (string) -</dd> -</dl><dl> -<dt>Returns:</dt> -<dd> -A list of all matches. -</dd> -</dl><a NAME="Completer.complete" ID="Completer.complete"></a> -<h4>Completer.complete</h4> -<b>complete</b>(<i>text, state</i>) -<p> - Public method to return the next possible completion for 'text'. -</p><p> - This is called successively with state == 0, 1, 2, ... until it - returns None. The completion should begin with 'text'. -</p><dl> -<dt><i>text</i></dt> -<dd> -The text to be completed. (string) -</dd><dt><i>state</i></dt> -<dd> -The state of the completion. (integer) -</dd> -</dl><dl> -<dt>Returns:</dt> -<dd> -The possible completions as a list of strings. -</dd> -</dl><a NAME="Completer.global_matches" ID="Completer.global_matches"></a> -<h4>Completer.global_matches</h4> -<b>global_matches</b>(<i>text</i>) -<p> - Public method to compute matches when text is a simple name. -</p><dl> -<dt><i>text</i></dt> -<dd> -The text to be completed. (string) -</dd> -</dl><dl> -<dt>Returns:</dt> -<dd> -A list of all keywords, built-in functions and names currently - defined in self.namespace that match. -</dd> -</dl> -<div align="right"><a href="#top">Up</a></div> -<hr /><hr /> -<a NAME="get_class_members" ID="get_class_members"></a> -<h2>get_class_members</h2> -<b>get_class_members</b>(<i>klass</i>) -<p> - Module function to retrieve the class members. -</p><dl> -<dt><i>klass</i></dt> -<dd> -The class object to be analysed. -</dd> -</dl><dl> -<dt>Returns:</dt> -<dd> -A list of all names defined in the class. -</dd> -</dl> -<div align="right"><a href="#top">Up</a></div> -<hr /> -</body></html> \ No newline at end of file
--- a/Documentation/Source/eric6.DebugClients.Python3.PyProfile.html Sun Oct 16 14:43:18 2016 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,182 +0,0 @@ -<!DOCTYPE html> -<html><head> -<title>eric6.DebugClients.Python3.PyProfile</title> -<meta charset="UTF-8"> -<style> -body { - background: #EDECE6; - margin: 0em 1em 10em 1em; - color: black; -} - -h1 { color: white; background: #85774A; } -h2 { color: white; background: #85774A; } -h3 { color: white; background: #9D936E; } -h4 { color: white; background: #9D936E; } - -a { color: #BA6D36; } - -</style> -</head> -<body><a NAME="top" ID="top"></a> -<h1>eric6.DebugClients.Python3.PyProfile</h1> -<p> -Module defining additions to the standard Python profile.py. -</p> -<h3>Global Attributes</h3> -<table> -<tr><td>None</td></tr> -</table> -<h3>Classes</h3> -<table> -<tr> -<td><a href="#PyProfile">PyProfile</a></td> -<td>Class extending the standard Python profiler with additional methods.</td> -</tr> -</table> -<h3>Functions</h3> -<table> -<tr><td>None</td></tr> -</table> -<hr /><hr /> -<a NAME="PyProfile" ID="PyProfile"></a> -<h2>PyProfile</h2> -<p> - Class extending the standard Python profiler with additional methods. -</p><p> - This class extends the standard Python profiler by the functionality to - save the collected timing data in a timing cache, to restore these data - on subsequent calls, to store a profile dump to a standard filename and - to erase these caches. -</p> -<h3>Derived from</h3> -profile.Profile -<h3>Class Attributes</h3> -<table> -<tr><td>dispatch</td></tr> -</table> -<h3>Class Methods</h3> -<table> -<tr><td>None</td></tr> -</table> -<h3>Methods</h3> -<table> -<tr> -<td><a href="#PyProfile.__init__">PyProfile</a></td> -<td>Constructor</td> -</tr><tr> -<td><a href="#PyProfile.__restore">__restore</a></td> -<td>Private method to restore the timing data from the timing cache.</td> -</tr><tr> -<td><a href="#PyProfile.dump_stats">dump_stats</a></td> -<td>Public method to dump the statistics data.</td> -</tr><tr> -<td><a href="#PyProfile.erase">erase</a></td> -<td>Public method to erase the collected timing data.</td> -</tr><tr> -<td><a href="#PyProfile.fix_frame_filename">fix_frame_filename</a></td> -<td>Public method used to fixup the filename for a given frame.</td> -</tr><tr> -<td><a href="#PyProfile.save">save</a></td> -<td>Public method to store the collected profile data.</td> -</tr><tr> -<td><a href="#PyProfile.trace_dispatch_call">trace_dispatch_call</a></td> -<td>Public method used to trace functions calls.</td> -</tr> -</table> -<h3>Static Methods</h3> -<table> -<tr><td>None</td></tr> -</table> -<a NAME="PyProfile.__init__" ID="PyProfile.__init__"></a> -<h4>PyProfile (Constructor)</h4> -<b>PyProfile</b>(<i>basename, timer=None, bias=None</i>) -<p> - Constructor -</p><dl> -<dt><i>basename</i></dt> -<dd> -name of the script to be profiled (string) -</dd><dt><i>timer</i></dt> -<dd> -function defining the timing calculation -</dd><dt><i>bias</i></dt> -<dd> -calibration value (float) -</dd> -</dl><a NAME="PyProfile.__restore" ID="PyProfile.__restore"></a> -<h4>PyProfile.__restore</h4> -<b>__restore</b>(<i></i>) -<p> - Private method to restore the timing data from the timing cache. -</p><a NAME="PyProfile.dump_stats" ID="PyProfile.dump_stats"></a> -<h4>PyProfile.dump_stats</h4> -<b>dump_stats</b>(<i>file</i>) -<p> - Public method to dump the statistics data. -</p><dl> -<dt><i>file</i></dt> -<dd> -name of the file to write to (string) -</dd> -</dl><a NAME="PyProfile.erase" ID="PyProfile.erase"></a> -<h4>PyProfile.erase</h4> -<b>erase</b>(<i></i>) -<p> - Public method to erase the collected timing data. -</p><a NAME="PyProfile.fix_frame_filename" ID="PyProfile.fix_frame_filename"></a> -<h4>PyProfile.fix_frame_filename</h4> -<b>fix_frame_filename</b>(<i>frame</i>) -<p> - Public method used to fixup the filename for a given frame. -</p><p> - The logic employed here is that if a module was loaded - from a .pyc file, then the correct .py to operate with - should be in the same path as the .pyc. The reason this - logic is needed is that when a .pyc file is generated, the - filename embedded and thus what is readable in the code object - of the frame object is the fully qualified filepath when the - pyc is generated. If files are moved from machine to machine - this can break debugging as the .pyc will refer to the .py - on the original machine. Another case might be sharing - code over a network... This logic deals with that. -</p><dl> -<dt><i>frame</i></dt> -<dd> -the frame object -</dd> -</dl><dl> -<dt>Returns:</dt> -<dd> -fixed up file name (string) -</dd> -</dl><a NAME="PyProfile.save" ID="PyProfile.save"></a> -<h4>PyProfile.save</h4> -<b>save</b>(<i></i>) -<p> - Public method to store the collected profile data. -</p><a NAME="PyProfile.trace_dispatch_call" ID="PyProfile.trace_dispatch_call"></a> -<h4>PyProfile.trace_dispatch_call</h4> -<b>trace_dispatch_call</b>(<i>frame, t</i>) -<p> - Public method used to trace functions calls. -</p><p> - This is a variant of the one found in the standard Python - profile.py calling fix_frame_filename above. -</p><dl> -<dt><i>frame</i></dt> -<dd> -reference to the call frame -</dd><dt><i>t</i></dt> -<dd> -arguments -</dd> -</dl><dl> -<dt>Returns:</dt> -<dd> -flag indicating a successful handling (boolean) -</dd> -</dl> -<div align="right"><a href="#top">Up</a></div> -<hr /> -</body></html> \ No newline at end of file
--- a/Documentation/Source/eric6.DebugClients.Python3.eric6dbgstub.html Sun Oct 16 14:43:18 2016 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,133 +0,0 @@ -<!DOCTYPE html> -<html><head> -<title>eric6.DebugClients.Python3.eric6dbgstub</title> -<meta charset="UTF-8"> -<style> -body { - background: #EDECE6; - margin: 0em 1em 10em 1em; - color: black; -} - -h1 { color: white; background: #85774A; } -h2 { color: white; background: #85774A; } -h3 { color: white; background: #9D936E; } -h4 { color: white; background: #9D936E; } - -a { color: #BA6D36; } - -</style> -</head> -<body><a NAME="top" ID="top"></a> -<h1>eric6.DebugClients.Python3.eric6dbgstub</h1> -<p> -Module implementing a debugger stub for remote debugging. -</p> -<h3>Global Attributes</h3> -<table> -<tr><td>__scriptname</td></tr><tr><td>debugger</td></tr><tr><td>ericpath</td></tr><tr><td>modDir</td></tr> -</table> -<h3>Classes</h3> -<table> -<tr><td>None</td></tr> -</table> -<h3>Functions</h3> -<table> -<tr> -<td><a href="#initDebugger">initDebugger</a></td> -<td>Module function to initialize a debugger for remote debugging.</td> -</tr><tr> -<td><a href="#runcall">runcall</a></td> -<td>Module function mimicing the Pdb interface.</td> -</tr><tr> -<td><a href="#setScriptname">setScriptname</a></td> -<td>Module function to set the scriptname to be reported back to the IDE.</td> -</tr><tr> -<td><a href="#startDebugger">startDebugger</a></td> -<td>Module function used to start the remote debugger.</td> -</tr> -</table> -<hr /><hr /> -<a NAME="initDebugger" ID="initDebugger"></a> -<h2>initDebugger</h2> -<b>initDebugger</b>(<i>kind="standard"</i>) -<p> - Module function to initialize a debugger for remote debugging. -</p><dl> -<dt><i>kind</i></dt> -<dd> -type of debugger ("standard" or "threads") -</dd> -</dl><dl> -<dt>Returns:</dt> -<dd> -flag indicating success (boolean) -</dd> -</dl><dl> -<dt>Raises <b>ValueError</b>:</dt> -<dd> -raised to indicate a wrong debugger kind -</dd> -</dl> -<div align="right"><a href="#top">Up</a></div> -<hr /><hr /> -<a NAME="runcall" ID="runcall"></a> -<h2>runcall</h2> -<b>runcall</b>(<i>func, *args</i>) -<p> - Module function mimicing the Pdb interface. -</p><dl> -<dt><i>func</i></dt> -<dd> -function to be called (function object) -</dd><dt><i>*args</i></dt> -<dd> -arguments being passed to func -</dd> -</dl><dl> -<dt>Returns:</dt> -<dd> -the function result -</dd> -</dl> -<div align="right"><a href="#top">Up</a></div> -<hr /><hr /> -<a NAME="setScriptname" ID="setScriptname"></a> -<h2>setScriptname</h2> -<b>setScriptname</b>(<i>name</i>) -<p> - Module function to set the scriptname to be reported back to the IDE. -</p><dl> -<dt><i>name</i></dt> -<dd> -absolute pathname of the script (string) -</dd> -</dl> -<div align="right"><a href="#top">Up</a></div> -<hr /><hr /> -<a NAME="startDebugger" ID="startDebugger"></a> -<h2>startDebugger</h2> -<b>startDebugger</b>(<i>enableTrace=True, exceptions=True, tracePython=False, redirect=True</i>) -<p> - Module function used to start the remote debugger. -</p><dl> -<dt><i>enableTrace=</i></dt> -<dd> -flag to enable the tracing function (boolean) -</dd><dt><i>exceptions=</i></dt> -<dd> -flag to enable exception reporting of the IDE - (boolean) -</dd><dt><i>tracePython=</i></dt> -<dd> -flag to enable tracing into the Python library - (boolean) -</dd><dt><i>redirect=</i></dt> -<dd> -flag indicating redirection of stdin, stdout and - stderr (boolean) -</dd> -</dl> -<div align="right"><a href="#top">Up</a></div> -<hr /> -</body></html> \ No newline at end of file
--- a/Documentation/Source/eric6.DebugClients.Python3.getpass.html Sun Oct 16 14:43:18 2016 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,85 +0,0 @@ -<!DOCTYPE html> -<html><head> -<title>eric6.DebugClients.Python3.getpass</title> -<meta charset="UTF-8"> -<style> -body { - background: #EDECE6; - margin: 0em 1em 10em 1em; - color: black; -} - -h1 { color: white; background: #85774A; } -h2 { color: white; background: #85774A; } -h3 { color: white; background: #9D936E; } -h4 { color: white; background: #9D936E; } - -a { color: #BA6D36; } - -</style> -</head> -<body><a NAME="top" ID="top"></a> -<h1>eric6.DebugClients.Python3.getpass</h1> -<p> -Module implementing utilities to get a password and/or the current user name. -</p><p> -getpass(prompt) - prompt for a password, with echo turned off -getuser() - get the user name from the environment or password database -</p><p> -This module is a replacement for the one found in the Python distribution. It -is to provide a debugger compatible variant of the a.m. functions. -</p> -<h3>Global Attributes</h3> -<table> -<tr><td>__all__</td></tr><tr><td>default_getpass</td></tr><tr><td>unix_getpass</td></tr><tr><td>win_getpass</td></tr> -</table> -<h3>Classes</h3> -<table> -<tr><td>None</td></tr> -</table> -<h3>Functions</h3> -<table> -<tr> -<td><a href="#getpass">getpass</a></td> -<td>Function to prompt for a password, with echo turned off.</td> -</tr><tr> -<td><a href="#getuser">getuser</a></td> -<td>Function to get the username from the environment or password database.</td> -</tr> -</table> -<hr /><hr /> -<a NAME="getpass" ID="getpass"></a> -<h2>getpass</h2> -<b>getpass</b>(<i>prompt='Password: '</i>) -<p> - Function to prompt for a password, with echo turned off. -</p><dl> -<dt><i>prompt</i></dt> -<dd> -Prompt to be shown to the user (string) -</dd> -</dl><dl> -<dt>Returns:</dt> -<dd> -Password entered by the user (string) -</dd> -</dl> -<div align="right"><a href="#top">Up</a></div> -<hr /><hr /> -<a NAME="getuser" ID="getuser"></a> -<h2>getuser</h2> -<b>getuser</b>(<i></i>) -<p> - Function to get the username from the environment or password database. -</p><p> - First try various environment variables, then the password - database. This works on Windows as long as USERNAME is set. -</p><dl> -<dt>Returns:</dt> -<dd> -username (string) -</dd> -</dl> -<div align="right"><a href="#top">Up</a></div> -<hr /> -</body></html> \ No newline at end of file
--- a/Documentation/Source/index-eric6.DebugClients.Python2.html Sun Oct 16 14:43:18 2016 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,79 +0,0 @@ -<!DOCTYPE html> -<html><head> -<title>eric6.DebugClients.Python2</title> -<meta charset="UTF-8"> -<style> -body { - background: #EDECE6; - margin: 0em 1em 10em 1em; - color: black; -} - -h1 { color: white; background: #85774A; } -h2 { color: white; background: #85774A; } -h3 { color: white; background: #9D936E; } -h4 { color: white; background: #9D936E; } - -a { color: #BA6D36; } - -</style> -</head> -<body> -<h1>eric6.DebugClients.Python2</h1> -<p> -Package implementing the Python debugger. -</p><p> -It consists of different kinds of debug clients. -</p> - - -<h3>Modules</h3> -<table> -<tr> -<td><a href="eric6.DebugClients.Python2.AsyncFile.html">AsyncFile</a></td> -<td>Module implementing an asynchronous file like socket interface for the debugger.</td> -</tr><tr> -<td><a href="eric6.DebugClients.Python2.DCTestResult.html">DCTestResult</a></td> -<td>Module implementing a TestResult derivative for the eric6 debugger.</td> -</tr><tr> -<td><a href="eric6.DebugClients.Python2.DebugBase.html">DebugBase</a></td> -<td>Module implementing the debug base class.</td> -</tr><tr> -<td><a href="eric6.DebugClients.Python2.DebugClient.html">DebugClient</a></td> -<td>Module implementing a non-threaded variant of the debug client.</td> -</tr><tr> -<td><a href="eric6.DebugClients.Python2.DebugClientBase.html">DebugClientBase</a></td> -<td>Module implementing a debug client base class.</td> -</tr><tr> -<td><a href="eric6.DebugClients.Python2.DebugClientCapabilities.html">DebugClientCapabilities</a></td> -<td>Module defining the debug clients capabilities.</td> -</tr><tr> -<td><a href="eric6.DebugClients.Python2.DebugClientThreads.html">DebugClientThreads</a></td>