How do you write and debug server-side actions?

What is the best way to write and debug a script server side action on a Flash Media server?

I use Flash Builder to highlight syntax, but that’s it.

I want to debug, create breakpoints and server server code.

Any ideas?

EDIT1: I know about the administration console to view trace messages, but this is not a real debugging for me.

+3
source share
3 answers

Although I don’t know an easy way to execute the code, there are some interesting things you can do there.

  • SSAS , , . . , , .
  • SSAS , , eval. .
+1

Adobe:

http://www.adobe.com/livedocs/flashmediaserver/3.0/hpdocs/help.html?content=Book_Part_34_ss_asd_1.html

, , .. , .

ActionScript 3 :

application.onConnect = function( client ) {
    client.serverHelloMsg = function( helloStr ) {
        return "Hello, " + helloStr + "!";
    }
    application.acceptConnection( client );
}
+1

AMS (/FMS):

Client.prototype.foo = function (){
    return this;
}

:

netConn.call('foo', new Responder(_debug, _debug));

:

function _debug(... rest):void{
}

:

  • we must restart the server every time the file changes main.asc
  • we must use rsync to upload the file to the machine for deletion if you cannot get a local development environment (which I could not - after a day of futile attempts, and this message was 4 years old).

Seriously, this is fun, try it!

+1
source

Source: https://habr.com/ru/post/1771084/


All Articles