In this article, we’re going to identify some of the possible causes that can cause Eclipse Flex to debug, and then I’ll show you various ways to fix this problem.
Approved: Fortect
First, you need to download Eclipse for Java EE * Developers and install Flash Builder based on a plug-in that points to an existing Eclipse during installation. Sometimes this should allow you to create a Flex project
File -> New -> Other -> Flex Builder -> Flex Project
Here you must set application server type
to J2EE and indicate that you have closely followed the Create Java / Flex Combination ...
option. I usually do not select the Use Remote Object Finder
checkbox because I am using GraniteDS. So it’s up to you whether you need it or not.
On the next screen, you need to configure your application server. Here are the steps for Tomcat:
-
Target Read -> Build -> Apache -> << your best Tomcat (change version >>
change server name and run whatever name suits you best or – my favorite 🙂 – get out of the situation as it is) - Directory installed Tomcat must match where you installed Tomcat – by default it is
C: Programs Apache Software Foundation Tomcat 6.0
. If you have not installed Tomcat, you can do so using theDownload and Install
- On the next screen of the phone, we’re going to add some web applications that everyone wants to host on a web server, but since you probably don’t have a lot of them now, just hit
Finish
. - Select the Tomcat device you just created in May (you want to play with the rest of the settings right away like context root, etc.)
- Go ahead and show me the other settings that I used to leave at default 🙂
- Done
wizard.
Window -> Show View -> Other -> Server -> Server -> OK
opens the server scene where you can manage your Tomcat node. Use RMB for your server name, in this step Add, Remove
and select your application, drag Add
and Done
.
Well, the 3 icons above usually correspond to the server name and are suitable for starting the server starting from the left in debug mode ki, normal mode and therefore profiling. Click Debug One and the server might want to start – you now have Java code that you will no doubt put on the server.
The final step is to start the Flex application in debug mode. Below the menu bar, you can see icons similar to those used to start the server. Tap the general down arrow next to debug a specific debug configuration and
. Double click on Flex Application
, edit the name of the newly created design and correct the debug url in the Connect server settings (leave it unchanged if you kept everything as default to help you up to now). Press Apply
and Debug
and you will start debugging 🙂 Use F5 to start, F6 to continue, and at least F8 to continue. p>
Approved: Fortect
Fortect is the world's most popular and effective PC repair tool. It is trusted by millions of people to keep their systems running fast, smooth, and error-free. With its simple user interface and powerful scanning engine, Fortect quickly finds and fixes a broad range of Windows problems - from system instability and security issues to memory management and performance bottlenecks.
ps: you can change the default browser your application is running in (I think the default is the built-in Eclipse browser). To do this, go to the -> Preferences -> General -> Web Browser
window.
* Unfortunately, I am using the more mature The IDE version, so the details above may be slightly different from what is in your Eclipse, but you need to get the big picture. Flex Builder 3 also seems to be incompatible with the latest versions of Eclipse (Flex projects are not often created in Helios versions)
Speed up your computer's performance now with this simple download.
Set breakpoints in your code, or view them in the breakpoint explorer.In general, when debugging, go line by line.Display the actualwhat are the values of the variables.Check the values of the variables.Check the value of the exceptional expression.For hanging wires, see Stacking frame.
You can debug a Java program simply by right-clicking on the Java editor class file in the package explorer. Choose Debug As → Java Application, or use the keyboard shortcut Alt + Shift + D, J instead. Each of the steps above creates a new debug launch configuration and uses it to launch a Java application.
Debugging allows owners to run a program interactively by examining the source code and variables at runtime. A breakpoint in form code indicates where program execution should stop during debugging. After stopping the program, you can explore the functions, change their content, and more.