Specifications
VMware, Inc. 21
Chapter 3 Remote Debugging in the C and C++ Environment
Running and Debugging Applications in Virtual Machines
YoucanusetheIntegratedVirtualDebuggerto:
Startanapplicationdebuggingsessioninavirtualmachine.
Startanapplicationinavirtualmachinewithoutdebugging.
Start an Application Debugging Session in a Virtual Machine
DonotsuspendavirtualmachinewhiletheIntegratedVirtualDebuggerisconnectedtoanapplication.Ifyou
do,theIntegratedVirtualDebuggerdisconnectsfromtheapplication.
To start an application debugging session in a virtual machine
1Youcanstartdebugginginthefollowingways:
ClickRun>DebugConfigurationsandunderC/C++AttachtoVirtualMachine,choosethe
configuration.
ClicktheDebugbuttonandchoosetheconfigurationeitherfromthedrop‐downmenu(ifpreviously
debugged)orclicktheDebugbuttonandclickDebugconfiguration.
2Performdebuggingtasksasyouwouldinalocaldebuggingenvironment.
Start an Application in a Virtual Machine Without Debugging
Youcanstartanapplicationwithoutdebugginginanyconfiguredvirtualmachine.
To start an application in a virtual machine without debugging
Beginthesessioninoneofthefollowingways:
Clickthedrop‐downarrow ontheRunbuttonandchoosetheconfigurationfortheapplicationthatyou
wanttostart.(TheRunmenudoesnotprovideawaytochoosetheconfiguration.)
IntheRunpage,selecttheconfigurationunderC/C++AttachtoVirtualMachineintheleftpaneandclick
Runintherightpane.
Troubleshooting the C and C++ Environment
BeforeyoutroubleshootanerrormakesurethatyouhavecorrectlyinstalledandconfiguredtheIntegrated
VirtualDebugger.Youmustpoweronavirtualmachinebeforeyoucandebugit.
Debugging Session Fails to Start
Problem
Adebuggingsessionfailstostart.
Causes
Thisproblemhasseveralcauses:
Thefirewallisturnedonintheguest.
Thenetworkadapterisdisabled,ornetworkingfunctionalityisnotreadyintheguest.
Thevirtualmachineispoweredoff.
TheUbuntu8hostiscausingthedebuggingsessiontofail.