Documentation

Trace:

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
visionx:eclipse_debug [2023/04/04 11:03]
robot created
visionx:eclipse_debug [2023/04/11 11:34] (current)
robot
Line 2: Line 2:
  
 ~~Title: Debug with Eclipse~~ ~~Title: Debug with Eclipse~~
-Version: 1.0 / 2023-04-04+Version: 1.0 / 2023-04-11
  
 ====== Introduction ====== ====== Introduction ======
Line 10: Line 10:
 ====== Attach Source for libraries ====== ====== Attach Source for libraries ======
  
-To be able to debug used application libraries, it's required to attach the source code of libaries. The source files are located in folder ​<​html>​<VisionX></​html>/​enterprise/​debug.+To be able to debug used application libraries, it's required to attach the source code of libaries. The source files are located in folder <​VisionX>/​enterprise/​debug.
  
 You have 2 options for attaching source to libraries. The first one is used, if the "Class File Viewer"​ shows "​Source not found",​ and the second option will attach the source files proactive in project properties. You have 2 options for attaching source to libraries. The first one is used, if the "Class File Viewer"​ shows "​Source not found",​ and the second option will attach the source files proactive in project properties.
Line 16: Line 16:
 ===== Source not found ===== ===== Source not found =====
  
-Click on class or method while pressing ​<​html>​<CTRL></​html> key.+Click on class or method while pressing <​CTRL>​ key.
  
-{{:​visionx:​eclipse_debug:​attach/method1_clickonclassofinterest.png?​nolink|}}+{{:​visionx:​eclipse_debug:​method1_clickonclassofinterest.png?​nolink|}}
  
 The Class file viewer will be shown for the desired class with the information,​ that the Source was not found. Press the "​Attach Source..."​ button. The Class file viewer will be shown for the desired class with the information,​ that the Source was not found. Press the "​Attach Source..."​ button.
  
-{{:​visionx:​eclipse_debug:​attach/method1_clickonattachsource.png?​nolink|}}+{{:​visionx:​eclipse_debug:​method1_clickonattachsource.png?​nolink|}}
  
 The Source Attachment Configuration Dialog is opened, and shows the library, for which the source file has to be attached (in this case jvx.jar). The Source Attachment Configuration Dialog is opened, and shows the library, for which the source file has to be attached (in this case jvx.jar).
  
-{{:​visionx:​eclipse_debug:​attach/attachsource_externalfile.png?​nolink|}}+{{:​visionx:​eclipse_debug:​attachsource_externalfile.png?​nolink|}}
  
-Press "​External File..."​ button, and choose the corresponding source file, in folder ​<​html>​<VisionX></​html>/​enterprise/​debug (eg. for jvx.jar the file jvx_src.zip is needed).+Press "​External File..."​ button, and choose the corresponding source file, in folder <​VisionX>/​enterprise/​debug (eg. for jvx.jar the file jvx_src.zip is needed).
  
-{{:​visionx:​eclipse_debug:​attach/attachsource_sourcezip.png?​nolink|}}+{{:​visionx:​eclipse_debug:​attachsource_sourcezip.png?​nolink|}}
  
 After attaching the file, the source is shown in Class file viewer. After attaching the file, the source is shown in Class file viewer.
  
-{{:​visionx:​eclipse_debug:​attach/classfile_with_attachedsource.png?​nolink|}}+{{:​visionx:​eclipse_debug:​classfile_with_attachedsource.png?​nolink|}}
  
 ===== Project properties ===== ===== Project properties =====
Line 40: Line 40:
 Open the project properties. Open the project properties.
  
-{{:​visionx:​eclipse_debug:​attach/method2_projectproperties.png?​nolink|}}+{{:​visionx:​eclipse_debug:​method2_projectproperties.png?​nolink|}}
  
 Select "Java Build Path" in left navigation tree, and select the "​Libraries"​ tab. Select "Java Build Path" in left navigation tree, and select the "​Libraries"​ tab.
  
-{{:​visionx:​eclipse_debug:​attach/method2_javabuildpath_sourceattachment.png?​nolink|}}+{{:​visionx:​eclipse_debug:​method2_javabuildpath_sourceattachment.png?​nolink|}}
  
-Open the node of the desired library and select "​Source attachment: (None)"​. Then press on "​Edit"​ button on right side, and the Source Attachment Configuration Dialog will be opened like in Method 1, and shows the library, for which the source file has to be attached (in this case jvx.jar). Press "​External File…"​ button, and choose the corresponding source file, in folder ​<​html>​<VisionX></​html>/​enterprise/​debug (eg. for jvx.jar the file jvx_src.zip is needed).+Open the node of the desired library and select "​Source attachment: (None)"​. Then press on "​Edit"​ button on right side, and the Source Attachment Configuration Dialog will be opened like in Method 1, and shows the library, for which the source file has to be attached (in this case jvx.jar). Press "​External File…"​ button, and choose the corresponding source file, in folder <​VisionX>/​enterprise/​debug (eg. for jvx.jar the file jvx_src.zip is needed).
  
 ====== Install and configure Decompiler ====== ====== Install and configure Decompiler ======
Line 54: Line 54:
 Open "​Eclipse Marketplace"​ under "​Help"​ menu. Open "​Eclipse Marketplace"​ under "​Help"​ menu.
  
-{{:​visionx:​eclipse_debug:​decompiler/installdecompiler_frommarketplace.png?​nolink|}}+{{:​visionx:​eclipse_debug:​installdecompiler_frommarketplace.png?​nolink|}}
  
-Search for decompiler, and press on "​Install"​ button of Enhanced Class Decompiler ​<​html>​<Version></​html>.+Search for decompiler, and press on "​Install"​ button of Enhanced Class Decompiler <​Version>​.
  
-{{:​visionx:​eclipse_debug:​decompiler/installenhanceddecompiler.png?​nolink|}}+{{:​visionx:​eclipse_debug:​installenhanceddecompiler.png?​nolink|}}
  
 Confirm all Packages and trust the certificate. Confirm all Packages and trust the certificate.
  
-{{:​visionx:​eclipse_debug:​decompiler/installenhanceddecompiler_confirm.png?​nolink|}}+{{:​visionx:​eclipse_debug:​installenhanceddecompiler_confirm.png?​nolink|}}
  
 After restart of Eclipse, the correct view has to be configured. Therefore open "​Preferences"​ under "​Window"​ menu. After restart of Eclipse, the correct view has to be configured. Therefore open "​Preferences"​ under "​Window"​ menu.
  
-{{:​visionx:​eclipse_debug:​decompiler/setupenhanceddecompiler_windowpreferences.png?​nolink|}}+{{:​visionx:​eclipse_debug:​setupenhanceddecompiler_windowpreferences.png?​nolink|}}
  
 In the Preferences select the node "​General"​ - "​Editors"​ - "File Associations"​ in the navigation tree on left side. In the Preferences select the node "​General"​ - "​Editors"​ - "File Associations"​ in the navigation tree on left side.
  
-{{:​visionx:​eclipse_debug:​decompiler/setupenhanceddecompiler_fileassociationsclass_defaultclassfileviewer.png?​nolink|}}+{{:​visionx:​eclipse_debug:​setupenhanceddecompiler_fileassociationsclass_defaultclassfileviewer.png?​nolink|}}
  
 Select the File Type "​*.class",​ and the Associated editor "Class File Viewer (locked by 'Java Class File' content type)" and press the "​Default"​ button. Select the File Type "​*.class",​ and the Associated editor "Class File Viewer (locked by 'Java Class File' content type)" and press the "​Default"​ button.
Line 76: Line 76:
 Then select File Type "​*.class without source"​. Then select File Type "​*.class without source"​.
  
-{{:​visionx:​eclipse_debug:​decompiler/setupenhanceddecompiler_fileassociationsclasswithoutsource_removeclassfileviewer.png?​nolink|}}+{{:​visionx:​eclipse_debug:​setupenhanceddecompiler_fileassociationsclasswithoutsource_removeclassfileviewer.png?​nolink|}}
  
 Select the "Class File Viewer"​ that is not locked, and press "​Remove"​. Select the "Class File Viewer"​ that is not locked, and press "​Remove"​.
  
-{{:​visionx:​eclipse_debug:​decompiler/setupenhanceddecompiler_fileassociationsclasswithoutsource_defaultclassdecompilerviewer.png?​nolink|}}+{{:​visionx:​eclipse_debug:​setupenhanceddecompiler_fileassociationsclasswithoutsource_defaultclassdecompilerviewer.png?​nolink|}}
  
 Then select the "Class Decompiler Viewer (locked by 'Java Class File' content type)" and press the "​Default"​ button, if it is not marked as (default). Then select the "Class Decompiler Viewer (locked by 'Java Class File' content type)" and press the "​Default"​ button, if it is not marked as (default).
Line 86: Line 86:
 After pressing "Apply and Close" the decompiled source will be shown, if no source is attached to the library. After pressing "Apply and Close" the decompiled source will be shown, if no source is attached to the library.
  
-{{:​visionx:​eclipse_debug:​decompiler/setupenhanceddecompiler_decompiledclass.png?​nolink|}}+{{:​visionx:​eclipse_debug:​setupenhanceddecompiler_decompiledclass.png?​nolink|}}
  
  
This website uses cookies for visitor traffic analysis. By using the website, you agree with storing the cookies on your computer.More information