--- a/src/eric7/DebugClients/Python/eric7dbgstub.py Sun Dec 03 14:54:00 2023 +0100 +++ b/src/eric7/DebugClients/Python/eric7dbgstub.py Mon Jan 01 11:10:45 2024 +0100 @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- -# Copyright (c) 2002 - 2023 Detlev Offenbach <detlev@die-offenbachs.de> +# Copyright (c) 2002 - 2024 Detlev Offenbach <detlev@die-offenbachs.de> # """ @@ -26,10 +26,13 @@ Module function to initialize a debugger for remote debugging. @param kind type of debugger ("standard" or "threads") - @return flag indicating success (boolean) + @type str + @return flag indicating success + @rtype bool @exception ValueError raised to indicate a wrong debugger kind """ global debugger + res = True try: if kind == "standard": @@ -49,9 +52,12 @@ """ Module function mimicing the Pdb interface. - @param func function to be called (function object) + @param func function to be called + @type function @param *args arguments being passed to func + @type list of Any @return the function result + @rtype Any """ global debugger, __scriptname return debugger.run_call(__scriptname, func, *args) @@ -59,9 +65,10 @@ def setScriptname(name): """ - Module function to set the scriptname to be reported back to the IDE. + Module function to set the script name to be reported back to the IDE. - @param name absolute pathname of the script (string) + @param name absolute path name of the script + @type str """ global __scriptname __scriptname = name @@ -71,13 +78,14 @@ """ Module function used to start the remote debugger. - @param enableTrace flag to enable the tracing function (boolean) + @param enableTrace flag to enable the tracing function + @type bool @param exceptions flag to enable exception reporting of the IDE - (boolean) + @type bool @param tracePython flag to enable tracing into the Python library - (boolean) - @param redirect flag indicating redirection of stdin, stdout and - stderr (boolean) + @type bool + @param redirect flag indicating redirection of stdin, stdout and stderr + @type bool """ global debugger if debugger: