Red Hat ENTERPRISE LINUX 4 - DEBUGGING WITH GDB Specifikace Strana 21

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 26
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 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.
Zobrazit stránku 20
1 2 ... 16 17 18 19 20 21 22 23 24 25 26

Komentáře k této Příručce

Žádné komentáře