how to get debugging output?

2011-03-19
2012-11-14
  • 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
    nofun
    2011-03-20

    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  'console.show()'.
    Run 'help(console)' from console's command line to see all Console' methods.