Quitter
  • Communauté internationale
    • Langue:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티

Debugging my Plugin

Débutant dans la communauté ,
Jul 02, 2006 Jul 02, 2006
Hi -

I'm trying to write my first AE7 plugin and I'm at a point where it would be REALLY handy to step through my code in the debugger to see exactly why it isn't doing what I want. But whether I start AE from MSVC (2003) by setting the executable name in the 'Command' section of my Debug solution configuration and hit 'Start', or just start AE like normal and attach to the process with the MSVC debugger I get a 'Debugger Detected! - please close it down and restart!' dialog and AE closes immediately.

I certainly can appreciate the anti-hacker sentiment, I don't want anyone reverse engineering my code either. But I do have to make it work before anyone would ever want to do that :)

How do I get around this (only for my own plugin is fine of course)?

Thanks.

--
Shaun McIntyre
shaun@newfind.net
SUJETS
SDK
2.3K
Traduire
Signaler
Directives de la communauté
Restez bienveillant et courtois, ne vous attribuez pas la paternité des créations d’autrui et assurez-vous de l’absence de doublons avant de poster du contenu. En savoir plus
community guidelines
Employé Adobe ,
Jul 06, 2006 Jul 06, 2006
That's pretty odd; I can debug just fine using AE7.0 release.

So, you build your plug-in into the \Plug-ins directory, launch AE from the Start menu, then try to attach to process from within .NET?
Traduire
Signaler
Directives de la communauté
Restez bienveillant et courtois, ne vous attribuez pas la paternité des créations d’autrui et assurez-vous de l’absence de doublons avant de poster du contenu. En savoir plus
community guidelines
Débutant dans la communauté ,
Jul 07, 2006 Jul 07, 2006
Hi - thanks for the response.

Yes, that's one way I've been doing it.

What is even more odd is that it is inconsistant about when it decides to display the dialog and dump AE. Sometimes I can debug for a while (like 10 or 15 minutes) and then the dialog will begin to show. Other times the instant that both AE has finished loading and MSVC is running on the same machine, the dialog appears. I haven't been able to identify what I'm doing (if anything) differently between these cases that cause that change in behavior.

Have you never seen that 'Debugger Detected! - please close it down and restart!' dialog box before?

I'm wondering if there is a pragma or some function I can call into to stop AE from caring if I have a debugger on my own plugin. Of course I wouldn't ship with that enabled, but then at least I could be much more efficient getting my work done.

--
Shaun
Traduire
Signaler
Directives de la communauté
Restez bienveillant et courtois, ne vous attribuez pas la paternité des créations d’autrui et assurez-vous de l’absence de doublons avant de poster du contenu. En savoir plus
community guidelines
Employé Adobe ,
Jul 07, 2006 Jul 07, 2006
I haven't seen it. I doubt the #pragma; you're running into our activation protection, but I've never seen attaching to the process NOT work. Perhaps conflicting Microsoft run-times?

Do you the 7.0r2 SDK samples debug correctly, when you attach?
Traduire
Signaler
Directives de la communauté
Restez bienveillant et courtois, ne vous attribuez pas la paternité des créations d’autrui et assurez-vous de l’absence de doublons avant de poster du contenu. En savoir plus
community guidelines
Débutant dans la communauté ,
Jul 10, 2006 Jul 10, 2006
Hi Bruce -

Are you the Bruce Bullis responsible for the SDK docs? I have to say - easily the most entertaining technical docs I've ever read. Tech with a sense of humor. Awesome. :)

Conflicting run-times sounds interesting, but I have MSVC 2003 and if I understood the 'Changes' mentioned online, the difference between 7.0 and 7.0r2 was an upgrade in compiler which I don't have. So I'm thinking we have the same runtime while I'm using 7.0. Please let me know if I misunderstood that.

But the activation protection sounds promising. My client has not yet supplied me with our official copy of AE7. I'm very adamant about owning everything we have to own for a professional software development effort, but in the meantime, I wanted to get started. Are you saying that after official activation the problem will go away?

Thanks again.

--
Shaun
Traduire
Signaler
Directives de la communauté
Restez bienveillant et courtois, ne vous attribuez pas la paternité des créations d’autrui et assurez-vous de l’absence de doublons avant de poster du contenu. En savoir plus
community guidelines
Employé Adobe ,
Jul 13, 2006 Jul 13, 2006
LA PLUS RÉCENTE
Yes, I'm that bbb; glad you like the docs!

You've understood the changes; .NET 2003 --> .NET 2005 shouldn't have broken you.

I'd like to think official activation should make the problem go away, but I doubt it. Effect debugging should work within the trial version. Care to send me your built plug-in? I'll try to load it in a debug and a release version.
Traduire
Signaler
Directives de la communauté
Restez bienveillant et courtois, ne vous attribuez pas la paternité des créations d’autrui et assurez-vous de l’absence de doublons avant de poster du contenu. En savoir plus
community guidelines