Specifications
Integrated Virtual Debugger for Eclipse Developer’s Guide
20 VMware, Inc.
Managing Virtual Machine Launch Configurations
YoucanmanagetheDebugconfigurationsettingstodeterminewhichvirtualmachinerunstheapplication
andhowtheapplicationisrun.Theconfigurationalsoallowsyoutoruncommand‐linescriptsbeforeandafter
thedebuggingsessionandenablespecifiedsharedfoldersduringthedebuggingsession.Afteryouconfigure
thedebugger,yo
ucanstartapplicationsinvirtualmachinesfromtheEclipseDebugandRunmenus.
Set Debug Configuration Settings to Start Applications in a Virtual Machine
Youcancreate,manage,orrunalaunchconfigurationtostartanapplicationinavirtualmachine.Beforeyou
begin,makesurethevirtualmachineispoweredon.
To set debug configuration settings to start applications in a virtual machine
1 ChooseRun>DebugConfiguration.
2IntheVirtualMachineOptionssection,selecttheMaintabtocreateoredittheVirtualMachinePath,
GdbserverPat
h,orStartFromSnapshottextbox.
TosetaVirtualMachinePath,clickBrowseandselectarecentlyusedvirtualmachines.
TosetaGdbserverpath,clickBrowseandselectpathtothegdbserverexecutablefile.
(Optional)Toreverttothemostrecentsnapshotbeforetheapplicationislaunched,clicktheStart
FromSnapshotcheckboxandenteryourlogincredentialsintheAuthenticationdialogbox.
ClickRefreshtorefreshthecurrentsnapshotlist.
3 (Optional)IntheVirtualMachineOptionssection,selecttheSharedFolderstabtoadd,ed
it,orremove
sharedfoldersbetweenthehostandtheguestsystems.Foreachfolder,enterthefoldernameandthehost
pathlocationonthehostsystem.Bydefault,theprojectfolderisshared.
4 (Optional)IntheVirtualMachineOptionssection,selecttheScriptstabtorunscriptbeforelaunchingand
aft
erterminatingtheapplication.
IntheBeforeLaunch,Runscripttextbox,enteroneormoreshellcommandstorunintheguest
operatingsystembeforetheapplicationislaunched.
SelectAfterTermination,Runscripttextbox,enteroneormoreshellcommandstorunintheguest
operatingsystemaftertheapplicationhasterminated.
Nosyntaxcheckingisperformed.Eitherenteronecommandperline,orentermultiplecommands
onthesamelineusingasemicolonasaseparator.
5TomaketheEc
lipsedebugginguserinterfaceavailablefordebugging,selecttheDebuggertabandsetthe
GDBdebuggerpath.
IntheMaintab,tocompletetheGDBdebuggertextboxclickBrowseandselectpathtothegdb
executablefile.
IntheMaintab,acceptthedefaultvalueintheGDBcommandfiletextbox.
6ClickApply.
Afteryoucreatealaunchconfiguration,itappearsintheleftpane.
Delete a Configuration
Ifyoudonotneedaconfigurationorwanttoclearmemoryspace,youcandeletetheconfiguration.
To remove a configuration
1 ChooseRun>DebugConfiguration.
2Intheleftpane,selecttheconfigurationsthatyouwanttodeleteandclicktheDeleteselectedlaunch
configuration(s)iconatthetopofthepane.