Red Hat ENTERPRISE LINUX 4 - DEBUGGING WITH GDB Specifiche Pagina 21

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 26
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 20
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.
ClicktheDebugbuttonandchoosetheconfigurationeitherfromthedropdownmenu(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:
Clickthedropdownarrow 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.
Vedere la pagina 20
1 2 ... 16 17 18 19 20 21 22 23 24 25 26

Commenti su questo manuale

Nessun commento