Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

InDesign SDK Compile issue on Visual Studio 2015

Explorer ,
Oct 09, 2018 Oct 09, 2018

Dear All,

I have open the sample InDesign plug-in SDK file in Visual studio 2015. I have generate the build it was created successfully.

But When I tried to Debug the source file (Local Windows Debugger) I got the following alert from the Visual Studio 2015.

vs4.png

InDesign : CC 2018

Visual Studio : 2015 Professional

Source Name: BasicDialog.sdk.vcxproj

I can't figure out this issue. What is the solution o fix this?

Regards,

Prakash C

TOPICS
SDK
713
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Oct 09, 2018 Oct 09, 2018

Plugin is not an executable so you can't launch it via the debugger to debug it. What you need to do is launch InDesign from the debugger, InDesign would in turn load your plugin and also the debugging symbols for your plugin would be loaded in the process and then you would be able to debug your plugin code.

Now this can be done in two ways.

  1. Just launch InDesign by double clicking it, with your plugin in the correct path for it to be loaded as well. Then once InDesign is launched, use the "Attach To Process" option in the Debug menu of Visual Studio and attach to InDesign.exe. If your plugin is loaded and is built with proper debugging symbols, VS will attach to InDesign.exe and you would be able to debug your code.
  2. Another way is to set the Debugger Application path in Visual Studio before starting the debug session. Look in the Debugging section of your project properties and set Command to the path of your InDesign.exe. Once this is set you can launch InDesign straight from VS and should be able to debug your plugin code.

-Manan

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Oct 09, 2018 Oct 09, 2018

Dear Manan,

I tried what you mentioned, but I get same messages what i was got previous.

Regards,

Prakash C 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Oct 09, 2018 Oct 09, 2018
LATEST

How can that be possible, i doubt there has been some miscommunication here. What happens when you follow method mentioned in step 1? This does not even use VS to launch InDesign then how are you getting any messages could you please elaborate on this.

For the method mentioned on point 2, can you share the screenshot of how does the debugging property window look in your project settings after the change done as suggested.

-Manan

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines