how to get debugging output?

  • I created the following 2-line Notepad++ Python script:

    selection= editor.getUserLineSelection()
    print("selection=%s" % selection)

    When I run it, nothing is displayed.  (I'm not sure where the print output goes).  Without the ability to get output via `print`, debugging a Notepad++ Python script seems like an impossibility.

  • nofun

    Output goes to PythonScript console, which you can open from menu: Plugins >> PythonScript >> Show Console.
    Or you can tell you script to open it, adding  ''.
    Run 'help(console)' from console's command line to see all Console' methods.