Is it possible to debug plugin in flex builder for example?
Debugging plugin
-
-
It's possible to "profil" the swf, I tried it yesterday.
But the thing is : it crash my firefox after 30sec ...
-
Are you talking about flex profiling?
It's really difficult to develop plugin without instruments to debug it in krpano.
-
Hi,
You can trace variable (with trace and flash debug / flash tracer or krpano.trace), I debug things with it.
And basically, the plugin I've made until now are just add basic MouseEvent and display stuff, it's not so complicated
-
If you install the debug version of the flash plugin for use by your browsers, you can attach the fdb cli debugger to your plugin while running it in krpano in your browser. Steps:
1. Get flash debug plugin from adobe and install system-wide.
2. Generate debug .swf plugin by compiling with debug=true.
3. Create test html page and krpano xml file that loads your debug .swf into krpano.
4. Start command line debugger:
a. Type fdb at command-line
b. Then type run. Debugger will wait for connection from flash player when you open test page in browser.
5. Open test page in browser. Flash player will halt when it loads your plugin.
6. Set breakpoints in fdb, then type continue to run the plugin in flash player. Debug as normal.Note: I'm using flex sdk mxmlc compiler. If you are using Flash authoring tool or FlexBuilder, some steps may be different
-
interesting, it doesn't make your navigator crash ?
With my experience with Flash Builder and the native debugging tool ( = Flex Builder 4 ), it does
-
The browser would become unresponsive until I typed continue at the fdb prompt as the flash player was blocking until it received a signal from the debugger, but it still worked. I could step through the program line-by-line. I'm using Safari on a Mac and running Flash 10 debugger.
Also, I'm not sure how the FlexBuilder environment differs from the flex sdk command line tools, but perhaps it does not install the debugger version of the Flash Player system-wide. I had to do that manually by downloading it from adobe. Just scroll down on the flash player downloads page until you find the debug versions.
But I agree with nelk. Tracing works very well in many situations.
-
The url for debugger versions is:
http://www.adobe.com/support/flashplayer/downloads.html
Participate now!
Don’t have an account yet? Register yourself now and be a part of our community!