Perl Debugger Pocket Reference (Paperback)

Richard Foley

  • 出版商: O'Reilly
  • 出版日期: 2004-03-02
  • 售價: $630
  • 貴賓價: 9.5$599
  • 語言: 英文
  • 頁數: 144
  • 裝訂: Paperback
  • ISBN: 0596005032
  • ISBN-13: 9780596005030
  • 相關分類: Perl 程式語言
  • 海外代購書籍(需單獨結帳)

買這商品的人也買了...

商品描述

Most Perl programmers know about the Perl debugger--the nifty little built-in utility that you can use to fully debug any programs that you write. Inside the interactive debugger environment, you're prompted for commands that let you examine your source code, set breakpoints, dump out function call stacks, change values of variables, and much more. It's so convenient that some programmers run it just to test out Perl constructs as they create a program. But although it's on their radar, not many Perl programmers take the time to master the debugger. That's where the Perl Debugger Pocket Reference comes in.

This little book provides a quick and convenient path to mastery of the Perl debugger and its commands. Written by a core member of the Perl debugger development team, it's an ideal quick reference to debugger commands, as well as a detailed tutorial on how to get started. The Perl Debugger Pocket Reference provides complete coverage in a conveniently small package.

Maybe you write code so clean you never have to look at it twice. Or perhaps you'd rather focus your energies on writing clean code, rather than learning about the debugger. But if you need to learn about the Perl debugger in a hurry, the Perl Debugger Pocket Reference is the book you'll want to have close by. And you can always keep a copy on hand to share with programmers who need it more than you do.

O'Reilly's Pocket References have become a favorite among programmers everywhere. By providing a wealth of important details in a concise, well-organized format, these handy books deliver just what you need to complete the task at hand. When you've reached a sticking point in your work and need to get to a solution quickly, the new Perl Debugger Pocket Reference will get you back on the right track.

Table of Contents


     What Is the Perl Debugger?
     Why Use the Debugger?
     Unfamiliar Territory
     About This Book
            The linecounter.pl Script
            Shell
            Truncated Output
            Versions of Perl
            Delving Deeper
            Conventions
            Acknowledgments and Disclaimers
     Before You Debug
            Check Your Syntax
            Use strict
            Warnings
            Diagnostics
            Taint Mode
     A Debugger Tutorial
            Starting a Session
            A Simple CGI Debugger Session
     Debugger Commands
            Help and Quitting
            Examining Data
            Listing Code and Searching
            Motion
            Actions, Breakpoints, and Watchpoints
            Perl, Pre-Prompt, and Post-Prompt Commands
            Shell and Debugger Commands
            Setting Options
     Debugger Variables
            $DB::* Variables
            Environment Variables
     Debugging Options
     DB and Devel Namespaces
            Runtime Sequence
            DB::DB()
            DB::sub ()
            Devel Namespace (-d)
            Useful Modules
            -DDEBUGGING
     References
            perldoc
            Books
            URLs
            Online Articles
            History
            GUIs-Graphical User Interfaces
            Debuggers
            Text Editors
     Quick Reference
     Index

商品描述(中文翻譯)

大多數Perl程式設計師都知道Perl調試器,這是一個方便的內建工具,可以用來完全調試你編寫的任何程式。在交互式調試器環境中,你會被提示輸入命令,這些命令可以讓你檢查源代碼、設置斷點、輸出函數調用堆棧、更改變量值等等。它非常方便,一些程式設計師甚至在創建程式時就運行它來測試Perl結構。但儘管Perl調試器在他們的視線範圍內,但並不是很多Perl程式設計師花時間去掌握調試器。這就是《Perl調試器口袋參考》的用處所在。

這本小書提供了一條快速便捷的路徑,讓你掌握Perl調試器及其命令。由Perl調試器開發團隊的核心成員撰寫,它是一本理想的快速參考調試器命令的書籍,同時也是一本詳細的入門教程。《Perl調試器口袋參考》在一個方便的小包裝中提供了完整的覆蓋範圍。

也許你寫的程式碼如此乾淨,你從不需要再看第二遍。或者你更願意將精力集中在編寫乾淨的程式碼上,而不是學習調試器。但如果你需要迅速學習Perl調試器,那麼《Perl調試器口袋參考》就是你需要隨手攜帶的書籍。你也可以隨時準備一本給那些比你更需要的程式設計師。

O'Reilly的口袋參考書籍已經成為程式設計師們的最愛。這些方便的書籍以簡潔、井井有條的格式提供了豐富的重要細節,正好能夠滿足你完成手頭任務所需的一切。當你在工作中遇到困難並需要快速找到解決方案時,《Perl調試器口袋參考》將幫助你重新上軌道。

目錄:

什麼是Perl調試器?
為什麼使用調試器?
陌生的領域
關於本書
- linecounter.pl腳本
- Shell
- 截斷輸出
- Perl版本
- 深入探索
- 慣例
- 致謝和免責聲明

在調試之前
- 檢查語法
- 使用strict
- 警告
- 診斷
- Taint模式

調試器教程
- 開始一個會話
- 簡單的CGI調試器會話

調試器命令
- 幫助和退出
- 檢查數據
- 列出代碼和搜索
- 移動
- 操作、斷點和監視點
- Perl、提示前和提示後命令
- Shell和調試器命令
- 設置選項

調試器變量
- $DB::*變量