How to debug in IDE for Site Architect in FS_Version:5.2.230510
Author: sivaprasad9394
Publication Date: 5/17/2023 12:44
HI Team,
How can any one start the debug of IDE(Eclipse or Intellij) in FS_Version: 5.2.230510 for site architect?
Also fs-client.jar does not have the below class(CMSExplorer .java). There is no java main method to start the debug.?
If some one know the information's please add in.
Missing Class in FS_Version ,
package de.espirit.firstspirit.client;
public class CMSExplorer {
public static void main(String[] argv) {
JavaClient.main(argv);
}
}
Documentation:
http://www.e-spirit.de/download/firstspirit/2023.5/Releasenotes_2023.5_EN_combined.pdf
Thank you,
Regards,
Siva
-
Author: Windmüller - 5/17/2023 18:28
The most simple way to debug the SiteArchitect is by enabling the debug configuration of the launcher. After that you can use any IDE to connect to the debug port. Please find the details in the release notes for FirstSpirit 2022.13.
Also please note that both the fs-client.jar as well as the CMSExplorer class refer to a legacy server and should not be used anymore.
0 -
Author: sivaprasad9394 - 5/18/2023 6:19
Hello Windmüller,
Thank you for your reply and time.
we have configured in the FSLauncher.vmoptions,
-DclientDebugging=true
-DpreferredClientDebugPort=5005https://docs.e-spirit.com/odfs/releasenotes/2022.13/FirstSpirit_Releasenotes_EN.pdf
Index: 2.1
How to start or configuration in the Eclipse or IntelliJ IDE? How that specific module.fsm is called in the IDE directly? Without java Main class method how we can start the debug? Which option need to be selected?
Thank you,
Siva
0 -
Author: Windmüller - 5/18/2023 9:13
You do not need to "run" anything in the IDE. Instead, the SiteArchitect will open a local debug port which is displayed in the launcher. Then use a remote debug configuration in IntelliJ IDEA to connect to this port.
0 -
Author: sivaprasad9394 - 5/19/2023 9:39
Hi Windmüller,
As you have mentioned i have done the below things But still i could not start up the debug mode in my local eclipse.
1) FSLauncher.vmoptions file,
-DclientDebugging=true
-DpreferredClientDebugPort=50052) Opened the specific project via Site Architect - project is opened.
3) Opened the IDE- Eclipse and configured the below,
4) where can i give the below parameters in eclipse?,
-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:5005Thank you,
Siva
0 -
Author: Windmüller - 5/19/2023 10:17
Did you restart the launcher after changing the settings? Please post a screenshot of the launcher window after the SiteArchitect has been started.
0 -
Author: sivaprasad9394 - 5/19/2023 11:24
Hi Windmüller,
I have attached the FS Log and Site-architect window for your reference.
Restarted my eclipse and and logged out and logged in - site architect and restarted my PC too 1 time.
Thank you.
0 -
Author: Windmüller - 5/19/2023 13:54
Those screenshots show the SiteArchitect, not the launcher. Usually you can find the launcher in the system tray.
0 -
Author: sivaprasad9394 - 5/22/2023 8:14
Hi Windmüller,
Attached the launcher window for your reference from system tray,
Thank you,
Siva
0 -
Author: Windmüller - 5/22/2023 9:39
The About dialog does not contain the necessary information. You have to open the launcher to view the assigned debug port.
0 -
Author: sivaprasad9394 - 5/22/2023 18:37
Hi Windmüller,
Thank you for your reply and time.
1) Configured the below things in FSLauncher.vmoptions,
-DclientDebugging=true
-DpreferredClientDebugPort=50052) Opened the Specific project via Site architect and launcher is showing the random port number only,
Debug Port: 58314
3) Opened my IDE(Eclipse) installation location and eclipse.ini file add the Command line Argument for remote JVM as below,
-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=58314
4) Now opened the IDE(Eclipse) and selected the project and in menu clicked Debug configuration and configured the host and port as mentioned in the image above,
-- Still same error occurs
Also verified the port is listening or not,
-- Eclipse (and every other IDE) always uses a socket to connect to a JVM to debug. It doesn't matter whether the JVM is on the same computer or not.
-- My IDE(Eclipse) Network Connections have Office proxy settings configured.
My Question is :
Do we need to do any thing with Fire wall or Network configuration ??
If yes, for random port generation how we can go for firewall settings in office network with proxy ?
Thank you,
Siva
0 -
Author: Windmüller - 5/22/2023 20:57
3) Opened my IDE(Eclipse) installation location and eclipse.ini file add the Command line Argument for remote JVM as below,-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=58314
Please revert this step. It tells Eclipse to open a debug port, but you want to debug SiteArchitect, not Eclipse.
Do we need to do any thing with Fire wall or Network configuration ??
Normally, connections to localhost should not be blocked. The debug port is open and ready for connection. Please ask your system administrator if something blocks the connection.
0
Please sign in to leave a comment.
Comments
11 comments