View Single Post
Old 11-23-2014, 05:01 AM   #4
ShellShock
Wizard
ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.
 
ShellShock's Avatar
 
Posts: 1,176
Karma: 2431850
Join Date: Sep 2008
Device: IPad Mini 2 Retina
It is also possible to debug plugins using the Visual Studio environment I described in the first post.
  1. In your GitHub root, create a plugins sub-directory.
  2. Put the plugin source code into a sub-directory of plugins, e.g., C:\Users\user\Documents\GitHub\plugins\iOS reader applications.
  3. In Visual Studio, with the Calibre solution open, right click the Calibre solution in Solution Explorer, and select Add, New Project.
  4. Add new Python project, From Existing Python Code. Enter the location as e.g., C:\Users\user\Documents\GitHub\plugins\iOS reader applications.
  5. "Enter or browse to the folder..." should be set to the plugin source code folder, e.g., C:\Users\user\Documents\GitHub\plugins\iOS reader applications. Click finish.

This will create a new solution with the new Python project in it. This seems to be a bug in the wizard - I was expecting it to add the new project to the existing Calibre solution. Not to worry.
  1. Close the new solution and open the Calibre solution.
  2. Click the Calibre solution in Solution Explorer, and choose Add, Existing Project.
  3. Navigate to the new pyproj file, e.g., iosra.pyproj and select it.
  4. You can delete the redundant *.sln and v12.suo solution files that were generated for the new project, unless you want to debug the plugin without the rest of Calibre.

Last edited by ShellShock; 01-01-2015 at 06:07 AM.
ShellShock is offline   Reply With Quote