Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

debugging C# plugins on v6.9.2 not working #1964

Closed
kbilsted opened this issue Jun 14, 2016 · 10 comments
Closed

debugging C# plugins on v6.9.2 not working #1964

kbilsted opened this issue Jun 14, 2016 · 10 comments

Comments

@kbilsted
Copy link

Im experiencing that I cannot in visual studio 2015 "debug -> attach to process" (notepad++.exe) anymore. My breakpoints are never hit so I cannot debug my plugins

Works fine on v6.9 + v6.9.1 - just downloaded and checked.

@dail8859
Copy link
Contributor

I know it's not quite the same but I can at least confirm debugging C++ plugins work for VS2013 and VS2015 for v6.9.2

@dail8859
Copy link
Contributor

Also tried VS2015 with a C# plugin and it did not work for me. FYI I'm no debugging expert so I probably can't be of much more help ;)

@kbilsted
Copy link
Author

kbilsted commented Jun 15, 2016

@dail8859 Well, debug -> attach to process -> notepad++.exe - should hit your breakpoints... ;)

I'm also experiencing problems when launching notepad++ from within visual studio with "F5"

@kbilsted
Copy link
Author

@dail8859 please fix as fast as you did with the crashing plugins :-P

@dail8859
Copy link
Contributor

Tried to look into this more but oddly enough it is working fine for me now.

  1. Cloned NppPluginGuidHelper
  2. Built the Debug configuration
  3. Manually copied the DLL to the plugin directory of N++ v6.9.2 (setting a post build event to copy $(TargetPath) "C:\Program Files (x86)\Notepad++\plugins\" also worked)
  4. Set the N++ exe as the external program to launch for debugging
  5. Set a breakpoint
  6. Pressed F5
  7. It worked

@kbilsted
Copy link
Author

@dail8859 which windows? are you executing as administrator?

@dail8859
Copy link
Contributor

dail8859 commented Jun 22, 2016

Win7, yes (at least I'm pretty sure)

@kbilsted kbilsted changed the title ebugging C# plugins on v6.9.2 not working debugging C# plugins on v6.9.2 not working Jun 23, 2016
@sanastasiou
Copy link
Contributor

@kbilsted I'll try this today and give u feedback.

@sanastasiou
Copy link
Contributor

I can debug just fine..

@sanastasiou
Copy link
Contributor

Put this in your commandMenuInit subroutine:

Debugger.Launch();

It will launch the debugger every time you start your plugin. If you don't come this far, there's something else crashing the system before you get there, in which case, I suggest you build Npp yourself and start debugging that .. helped me in the past..

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

5 participants