Groetker - The Developer's Guide to Debugging (Springer, 2008).pdf

(3258 KB) Pobierz
The Developer’s Guide to Debugging
654239869.001.png
The Developer’s Guide to Debugging
Thorsten Grotker
·
Ulrich Holtmann
Holger Keding
·
Markus Wloka
The Developer’s Guide
to Debugging
123
Ulrich Holtmann
Markus Wloka
Internet: http://www.debugging-guide.com
Email: authors@debugging-guide.com
ISBN: 978-1-4020-5539-3
e-ISBN: 978-1-4020-5540-9
Library of Congress Control Number: 2008929566
2008 Springer Science+Business Media B.V.
No part of this work may be reproduced, stored in a retrieval system, or transmitted
in any form or by any means, electronic, mechanical, photocopying, microfilming, recording
or otherwise, without written permission from the Publisher, with the exception
of any material supplied specifically for the purpose of being entered
and executed on a computer system, for exclusive use by the purchaser of the work.
Printed on acid-free paper
987654321
springer.com
Thorsten Gr otker
Holger Keding
c
Foreword
Ofallactivitiesinsoftwaredevelopment,debuggingisprobablytheonethatis
hatedmost.Itisguilt-riddenbecauseatechnicalfailuresuggestspersonalfail-
ure;becauseitpointsthefingeratusshowingusthatwehavebeenwrong.Itis
time-consumingbecausewehavetorethinkeverysingleassumption,everysingle
stepfromrequirementstoimplementation.Itsworstfeaturethoughmaybethatit
isunpredictable:Youneverknowhowmuchtimeitwilltakeyoutofixabug-and
whetheryou’llbeabletofixitatall.
Askadeveloperfortheworstmomentsinlife,andmanyofthemwillberelated
todebugging.Itmaybe11pm,you’restillworkingonit,youarejuststepping
throughtheprogram,andthat’swhenyourspousecallsyouandasksyouwhen
you’llfinally,finallygethome,andyoutrytoendthecallassoonaspossibleas
you’relosinggriponthecarefullymemorizedobservationsanddeductions.Insuch
moments,youmayeventuallybechoosingbetweenrestartingyourdebuggingtask
orrestartingyourrelationship.Mypersonalestimateisthatdebuggingisthenumber
onecauseforprogrammer’sdivorces.
Andyet,debuggingcanbeajoy,asmuchthrillassolvingpuzzles,riddles,or
murdermysteries–ifyouproceedinasystematicwayandifyouareequippedwith
therighttoolsforthejob.ThisiswhereTheDeveloper’sGuidetoDebuggingcomes
intoplay.ThorstenGr¨otker,UlrichHoltmann,HolgerKeding,andMarkusWloka
speakdirectlytotheentrencheddeveloper,givestraight-forwardadviceonsolving
debuggingproblemsandcomeupwithsolutionsrealfast.Whetheritissolving
memoryproblems,debuggingparallelprograms,ordealingwithproblemsinduced
byyourverytoolchain-thisbookoffersfirstaidthatistriedandproven.
Iwouldhavelovedtohavesuchabookatthebeginningofmydebuggingcareer
–Iwouldhavegazedatitinamazementofwhatthesedebuggingtoolscando
forme,andbyfollowingitsadvice,Icouldhavesavedcountlesshoursofmanual
debugging–timeIcouldhavespentonotheractivities.Forinstance,Icouldhave
mademycodemorereliablesuchthatintheend,Iwouldnothavehadtodoany
debuggingatall.
v
Zgłoś jeśli naruszono regulamin