• Login
Community
  • Login

best way to get debug output while developing plugins?

Scheduled Pinned Locked Moved Notepad++ & Plugin Development
globalextended charsdifference
5 Posts 4 Posters 1.3k Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D
    Dimple sharma
    last edited by dail Feb 16, 2019, 1:01 PM Feb 16, 2019, 12:48 PM

    What is the best way to get debug output while developing plugins?

    I am new to Notepad++ plugin development, and can’t seem to find any good way to debug my plugin.

    A E 2 Replies Last reply Feb 16, 2019, 1:12 PM Reply Quote 0
    • A
      Alan Kilborn @Dimple sharma
      last edited by Feb 16, 2019, 1:12 PM

      @Dimple-sharma

      Well, running under a IDE capable of single-step debugging would be best. Depending upon what exactly your need is, perhaps OutputDebugString would work? https://msdn.microsoft.com/en-us/library/windows/desktop/aa363362(v=vs.85).aspx

      1 Reply Last reply Reply Quote 1
      • E
        Eko palypse @Dimple sharma
        last edited by Eko palypse Feb 16, 2019, 2:43 PM Feb 16, 2019, 2:42 PM

        @Dimple-sharma

        The most comfortable way would be to build a project with npp, scilexer and your plugin in VS2017.
        Configure your output paths accordingly - done.
        Note, only debug builds allow to use unsigned SciLexer dll.
        If you want to test a release build you need to copy over an official SciLexer dll or modify
        the necessary code in npp.

        D 1 Reply Last reply Feb 16, 2019, 3:03 PM Reply Quote 3
        • D
          dail @Eko palypse
          last edited by Feb 16, 2019, 3:03 PM

          @Eko-palypse

          I always debug mine by setting VS to copy the built DLL file to Notepad++'s plugin directory, then set the notepad++.exe as the application to start debugging (no need to build N++ or SciLexer). You cant step through Notepad++ but you can step through the plugin code (which has always been sufficient for what I need).

          E 1 Reply Last reply Feb 16, 2019, 3:09 PM Reply Quote 4
          • E
            Eko palypse @dail
            last edited by Feb 16, 2019, 3:09 PM

            @dail

            Thank you, very much appreciated - yes, that might be the easiest way to debug plugins.

            1 Reply Last reply Reply Quote 0
            4 out of 5
            • First post
              4/5
              Last post
            The Community of users of the Notepad++ text editor.
            Powered by NodeBB | Contributors