Code Trace for MATLAB

版本 2.0.0 (457.5 KB) 作者: Steve Eddins
Code traces for exploring and troubleshooting executing code
58.0 次下载
更新时间 2022/10/26

Code Trace for MATLAB®

View Code Trace for MATLAB on File Exchange

Code Trace for MATLAB is a collection of functions for creating and manipulating code traces, which can be used to help understand what is happening in code as it executes. A code trace prints a brief note to the MATLAB Command Window whenever a specific line of code is executed. A code trace might just print the function name and line number, or it might also print a label and the value of variable or expression.

screen shot of displaying a function name and line number

screen shot of displaying a the value of variable

Basic Usage

Call addCodeTrace with the name of a MATLAB function or script file and the line number that you want to trace:

addCodeTrace("myfunc",10)

Then, call your function as your normally would:

out = myfunc(input1,input2);

See the script GettingStarted.mlx, in the doc folder, for examples.

Installation

Code Trace for MATLAB requires MATLAB release R2019b or newer.

Download the files to a folder on your computer, and place that folder on the MATLAB Search Path.

License

The license is available in the License file within this repository.

Community Support

MATLAB Central

Copyright 2022 The MathWorks, Inc.

引用格式

Steve Eddins (2024). Code Trace for MATLAB (https://github.com/mathworks/MATLAB-code-trace/releases/tag/v2.0.0), GitHub. 检索来源 .

MATLAB 版本兼容性
创建方式 R2022b
与 R2019b 及更高版本兼容
平台兼容性
Windows macOS Linux
标签 添加标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
版本 已发布 发行说明
2.0.0

See release notes for this release on GitHub: https://github.com/mathworks/MATLAB-code-trace/releases/tag/v2.0.0

1.0.0

要查看或报告此来自 GitHub 的附加功能中的问题,请访问其 GitHub 仓库
要查看或报告此来自 GitHub 的附加功能中的问题,请访问其 GitHub 仓库