dbloop.m: Dynamically enter debug mode during a loop

버전 1.0.0.1 (2.97 KB) 작성자: Greg Aloe
While executing code in a loop, this tool allows you to enter debug mode at the press of a button.
다운로드 수: 3.8K
업데이트 날짜: 2016/9/1

라이선스 보기

편집자 메모: This file was a File Exchange Pick of the Week

Have you ever executed a FOR or WHILE loop and wished you could pause and resume it to examine the status in the debugger?
To use the tool, code the "dbloop" command into your M-code loop at the location that you intend to pause the loop. While the loop is executing, press the "k" key on your keyboard to stop in the debugger at the next iteration. When you are done examining or debugging, Use the "return" or "dbcont" command to resume execution of the loop.

Read the M-file help for more details, including how to configure a different key than "k", and how to use multiple breakpoints. There is also an important disclaimer about using this tool for loops that involve graphics.

인용 양식

Greg Aloe (2024). dbloop.m: Dynamically enter debug mode during a loop (https://www.mathworks.com/matlabcentral/fileexchange/9736-dbloop-m-dynamically-enter-debug-mode-during-a-loop), MATLAB Central File Exchange. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R12
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Loops and Conditional Statements에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!
버전 게시됨 릴리스 정보
1.0.0.1

Updated license

1.0.0.0

Added "dbloop any" option.
Added "dbloop close" feature.
Forced handlevisibility/off for easier use.