Documentation
¶
Index ¶
- func Break(cmd string) (shortCmd string, cmdArgs []string, err error)
- func Extract(cmdFromUI string) (DBGpCmdName string, err error)
- func Prepare(shortCmd string, cmdArgs []string) (DBGpCmd string, err error)
- func PrepareDBGpCmd(cmd string, args []string) (DBGpCmd string, err error)
- func Validate(cmd string, args []string) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Break ¶
*
- Breaks a given string into a command and its arguments. *
- Example:
- Input: foo bar qux *
- Output:
- Command: foo
- args:
- - bar
- - qux
func Extract ¶
*
- Given a DBGp command, extract the command name. *
- For example, if the UI has received "b foo.php 2", which is a shorthand for
- "breakpoint_set foo.php 2", return "breakpoint_set".
func Prepare ¶
*
- Turns short commands into full blown DBGp commands. *
- Example of short command: r
- Example of corresponding DBGp command: run -i 59
func PrepareDBGpCmd ¶
*
- Prepare DBGp command from the given values. *
- The arguments for this function can be considered a short form of the DBGp
- commands. Here the short forms are expanded to their full forms. *
- Example: "b /home/foo/php/bar.php 9" becomes
- "breakpoint_set -i 1 -t line -f /home/foo/php/bar.php -n 9"
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.