Error after build AIR for desktop - actionscript-3

Is there a way to debug a application after it´s build?
It works perfectly in the IDE (Flash), when I build and execute, it just stop during the execution.

If you check the Permit Debugging option in the Publish Settings then you should be able to connect to the Flash debugger while running the app.
When you start the app you should see a message that it's trying to connect to the debugger in Flash go to Debug > Begin Remote Debug Session and it should connect to the app.

Related

Database issues with deploying ASP.NET MVC web app in Azure

I have a web app published to Azure built in Visual Studio MVC. Many times after publishing updated files the app will fail when querying the database so it seems. For instance the home page will load fine but the app will crash when a link is selected that connects to my database. It is a MySQL database hosted remotely.
Here's the error for the deployed version:
I'm not sure how to interpret the error either and I've looked into enabling development mode in my app but as far as I can tell it is enabled.
Occasionally after a few restarts through Azure the app will start working fine and the app consistently works when I build and launch through Visual Studio. It leads me to believe this is an Azure issue conflicting with my data base setup.
It's making testing a real hassle and I don't have confidence the app/database will be up when I need it to.
Thank you for your help!
I think that you need to get the detailed error message to interpret the error.
To get the error message in azure, we can watch the diagnostic logs, about how to do this, we can refer to: Enable diagnostics logging for web apps in Azure App Service
We can also display the error message directly on browser. For example, if you are using ASP.NET core MVC, we can do as below:
Replace the below code of Startup class:
if (env.IsDevelopment())
{
app.UseBrowserLink();
app.UseDeveloperExceptionPage();
}
else
{
app.UseExceptionHandler("/Home/Error");
}
With:
app.UseBrowserLink();
app.UseDeveloperExceptionPage();
When the error occurs again, we can see the error message at browser directly

Flash Debugger in IDEA

When I try to use Flash Player debugger in IDEA I get such message
Waiting for Player to connect
Failed to connect; session timed out.
Ensure that:
1. you compiled your Flash movie with debugging on, and
2. you are running the Debugger version of the Flash Player.
Although I managed path to the debugger in Remote Configuration. What is wrong?
I have found the answer.
Right click on Flash Player -> Debug -> localhost option is enabled.
The problem was I had specified a certain port. But IDEA uses its own default port only so you don't need to manage it.
If you use Remote debug then you need to ensure that your browser has Flash Player Debugger installed and enabled.

Remote Debugging won't connect

I sort of make shift followed this guide on how to setup remote debugging. Since I am using Adobe Animate to compile my app I assume it has done the majority of the build steps already as I get a similar screen described.
I don't understand though. Here I have port forwarding up on my router so that it goes to my PC. I have TCP port 7935 up and open. Windows firewall on or off doesn't seem to make difference. Windows firewall even prompted me to allow or deny fdb after I ran it. I can't get my phone to connect via remote debugging. I want to be able to send this to my client who is having issue with the app so I can see what's going on under the hood instead of relying on a giant sum of try/catch statements and screenshots. Any help?
I tried a dummy domain and it seems to know that it can't connect to it. When I try mine or my IPv4 it doesn't let me connect. It just freezes up the app.
I don't know whether it works or not in Animate CC, but it works via Flash Builder. I'm using Android real device and I have Android SDK tools installed on my PC
Yes, I have followed that tuts from official Adobe docs, but that doesn't work
First: Simply connect your device to your PC
Actually , you can debug your app remotely as long as your device has been connected with your PC. This step, doesn't necessarily requires FDB.
In my case , all I need was things like
adb connect 192.168.xx.xx:port
this will connect your Android device with your PC on your default network .
Second, set debug setting over network
You've done it in Animate CC, with addition you might want to check "install application on the connected device'
Third, just debug as usual
You can get all those debugging stuff including traces

Flash Builder debugger failed to connect to the running application with tomcat

I had look into similar question in the stack overflow and tried all the solutions given there, but nothing works for me.
I have a Flex Web application running in localhost with tomcat, i have used Mongrel plugin in Flash Builder to run tomcat.
I am using Firefox browser.
When I try to debug my application it is throwing below error :
The Flash Builder debugger failed to connect to the running
application.
Ensure that:
For in-browser applications, you are running the debugger version of Flash Player.
For network debugging on a mobile device, you have a reliable network connection to the device, and port 7935 is open on your
machine's firewall.
Device connection help
link : error screenshot
I did check with netstat for port 7935 and there is no service running on this port.
I also added the solutions in catalina.properties file as suggested by others in related question but it did not worked out.
kindly help me fix this problem.
Thanks in advance!
The tomcat application is probably not serving the debuggable swf from flashbuilder project. What I have in a (I believe) similar setup is: also change the output directory from your flex project to the webcontent folder of the tomcat application.
Flashbuilder generally doesn't create index.html from the template but ${project.name}.html instead. Make sure you use that when trying to debug.
{workspace}/flexapp/src/MyApplication.mxml
{workspace}/webapp/WebContent/bin-debug <-- oupput folder of flexapp
If you start the tomcat application from Flashbuilder now it will include the debuggable SWF from the flex project.
The flex output URL should then point to http://localhost:8080/myapplication/bind-debug/MyApplication.html?Authorised=true&debug=true

Integration of Selenium Webdriver with Hudson - Unable to open the browser

I have integrated my selenium Webdriver scripts (using TestNG) with Hudson. i invoked my job through ant . My problem is my scripts are not running successfully also the IE browser is not getting opened However Build is creating successfully.
Note -
1) I am triggering build on Hudson from different machine on the same network with administrative access.
2) I have used excel 2007 for developing the script ( data driven framework) however on Hudson server its open office.could that be the issue?
At this moment i am not using selenium grid .please provide any suggestion
The reason for this is because Hudson/Jenkins is running as a Windows service. Recently, Microsoft changed services so that they run on their own invisible desktop. This didn't used to be the case until a few years ago. For this reason, even if you check "interact with desktop" , the desktop that is being referred to is invisble .
So, what you have to do is run Jenkins (not Hudson) as a service only for the master server. For the Selenium tests, you need to run another slave Jenkins server as a foreground shell process and the selenium tests need to be launched from that Jenkins instance instead.
If you think the instructions for setting up a slave are too hard, then you should know that it isn't required that you run as an official configured slave. You can run as a separate slave (make sure port number is different).
Also, if you are running Grids and Nodes on Windows, you might like these scripts I made.