I shared the project folder using SMB from Windows and mounted it in the Ubuntu image using the following commands:
sudo apt-get install smbfs
sudo mount -t cifs //(hostcomputer)/(share) /media/project-share \
-o username=(username),password=(password),iocharset=utf8,file_mode=0777,dir_mode=0777
Fill in the words in brackets with the appropriate values.
Additionally, I made a softlink in order to access the share more easily. That's just for convenience.
At this point, you should have everything you need, provided that you have Eclipse installed on your host system. There is a nice page on how remote debugging works with Eclipse. I have adapted the jtt.sh script for remote debugging and called it debug-jtt.sh. It waits for connections on port 55555 and does not start until you have connected to the VM from within Eclipse.
The Eclipse configuration is not hard to accomplish. Once you have done this, set a breakpoint in the main method in
iaik.tc.apps.JTpmTools, start the debug script (it will tell you that it listens to the remote port) and your remote debugging in Eclipse.
That's it. Have fun debugging remotely!
No comments:
Post a Comment