I am using Version 13I also posted this question on Stack Overflow a few days ago (
http://stackoverflow.com/q/43848720/5784265).
I am trying to record in my java application. To do this I imported the code (which generated a class diagram).
I then added a new Script in the Execution Analyzer. I left everything empty except the content of
Debug -> Platform:
Debugger:
JavaDefault Directory:
\\chca6021.eur.beluni.net\a469627$\Documents\workspace\HelloWorld (Root folder of my eclipse project)
Application Class:
com.creditsuisse.main.Main (Class with the main function)
Command Line Arguments: (left it empty)
Java Virtual Machine Options:
jre=C:\Program Files\Java\jdk1.8.0_112\jre\bin\server,-Djava.class.path=\\chca6021.eur.beluni.net\a469627$\Documents\workspace\HelloWorld\src;\\chca6021.eur.beluni.net\a469627$\Documents\workspace\HelloWorld\binI ticked "
x64", "
Show console" and "
Show diagnostic messages" and chose the radio button "
RunNext, I opened the Main.java file (Select Class Diagram -> F12) and set the following break points:
public static void main(String[] args) {
System.out.println("Starting");
Start Recording Marker System.out.println(new HelloWorld("test"));
System.out.println("Finished");
End Recording Marker}
When i now run it using the start button in the Record & Analyze Window, it will run successfully and print the following text is printed to the Debug Window:
... (Things like looking for...)
[25974654] Loaded class successfully com/creditsuisse/main/Main
[25974655] Failed to locate source file for class Lcom/creditsuisse/main/Main;
[25974655] Class Loader is Lsun/misc/Launcher$AppClassLoader;
[25974667] Starting
[25974743] Looking for class com.creditsuisse.main.HelloWorld source in path chca6021.eur.beluni.net\a469627$\Documents\workspace\HelloWorld\src\com\creditsuisse\main
[25974753] Looking for class com.creditsuisse.main.HelloWorld source in path chca6021.eur.beluni.net\a469627$\Documents\workspace\HelloWorld\bin\com\creditsuisse\main
[25974761] Looking for class com.creditsuisse.main.HelloWorld source in path chca6021.eur.beluni.net\a469627$\Documents\workspace\HelloWorld\com\creditsuisse\main
[25974766] End of recording
[25974767] Hello World: test
[25974767] Finished
[25982857] Debug Session Ended
The Record & Analyze Window still says "There are no items to show in this view", how can I get the recorded history to appear there? (I need the history to generate a sequence diagram)
And what does the error "Failed to locate source file for class Lcom/creditsuisse/main/Main;" mean?
Thanks in advance
Edit: I also noticed that the application won't stop at normal breakpoints.