当前位置:网站首页>awk从入门到入土(21)awk脚本调试
awk从入门到入土(21)awk脚本调试
2022-07-25 14:28:00 【奇妙之二进制】
awk支持调试模式,像gdb一样设置断点、单步调试awk脚本。
cmake commands Desktop Downloads etc FlameGraph g.h k.cc l lib main.cc Music perf.data.old pol script.awk snap test2 Videos
[email protected]:~$ cat script.awk
#!/usr/bin/awk -f
BEGIN {
for (i = 1; i <= 5; ++i)
print i
}
[email protected]:~$ awk --debug -f script.awk
gawk> h
backtrace:
backtrace [N] - print trace of all or N innermost (outermost if N < 0) frames
break:
break [[filename:]N|function] - set breakpoint at the specified location
clear:
clear [[filename:]N|function] - delete breakpoints previously set
commands:
commands [num] - starts a list of commands to be executed at a breakpoint(watchpoint) hit
condition:
condition num [expr] - set or clear breakpoint or watchpoint condition
continue:
continue [COUNT] - continue program being debugged
delete:
delete [breakpoints] [ran边栏推荐
- maya建模练习
- 应用实践:Paddle分类模型大集成者[PaddleHub、Finetune、prompt]
- ~5 new solution of CCF 2021-12-2 sequence query
- 如何让一套代码完美适配各种屏幕?
- pt100测温电路图(ad590典型的测温电路)
- C language and SQL Server database technology
- 为什么中建、中铁都需要这本证书?究竟是什么原因?
- PS making and loading GIF pictures tutorial
- sudo rosdep init Error ROS安装问题解决方案
- Ten common application scenarios of redis
猜你喜欢

Realize a family security and environmental monitoring system (II)

Okaleido ecological core equity Oka, all in fusion mining mode

Doris learning notes integration with other systems

关于ROS2安装connext RMW的进度条卡在13%问题的解决办法

Mysql表的操作

~4.2 CCF 2021-12-1 sequence query

PHP website design ideas

Hyperautomation for the enhancement of automation in industries

IDEA设置提交SVN时忽略文件配置

~4.1 sword finger offer 05. replace spaces
随机推荐
BIO、NIO、AIO示例
Products on Apple's official website can save 600 yuan by buying iPhone 13 Pro max at a discount
为什么中建、中铁都需要这本证书?究竟是什么原因?
Software testing -- 1. Outline of software testing knowledge
QObject源码剖析-d指针和q指针
Goldfish rhca memoirs: cl210 managing storage -- managing shared file systems
pytorch训练代码编写技巧、DataLoader、爱因斯坦标示
~4.2 CCF 2021-12-1 sequence query
AI model risk assessment Part 1: motivation
轻松入门自然语言处理系列 12 隐马尔可夫模型
如何让一套代码完美适配各种屏幕?
Goldfish rhca memoirs: cl210 management storage -- object storage
Paddlenlp's UIE relationship extraction model [executive relationship extraction as an example]
Gateway 网关报错 SERVICE_UNAVAILABLE
CTS测试介绍(面试怎么介绍接口测试)
Oka pass rights and interests analysis is the best choice to participate in okaleido ecological construction
快速搭建Dobbo小Demo
sqli-labs Basic Challenges Less11-22
That day, I installed a database for my sister... Just help her sort out another shortcut
Gameframework making games (I)