Is it possible to disable the debugger?
古いコメントを表示
pcode is a method to obscure an m-file's code such that a user cannot easily read the file. However, when executed within Matlab, the variable names appear to be maintained and viewable through the debugger and the function can be easily stepped through line by line. The line text is still not accessible, however you can monitor how the variables change.
Is there a way to disable the debugger before the code execution so there is no way for the debugger to step into nor through the pcode function?
採用された回答
その他の回答 (1 件)
Daniel Shub
2012 年 11 月 9 日
0 投票
5 件のコメント
Sean de Wolski
2012 年 11 月 9 日
One thing you can do is put all of the commands on one line so that only the first line is visible.
a = pi;b=17;c=a*b;
Adam
2012 年 11 月 9 日
Jan
2012 年 11 月 9 日
@Sean: You can overload subsasgn and insert a breakpoint in the new code. Then you still cannot observe the left hand side of the assignment, but you can a kind of step through the code and let the workspace browser show, what happens in the previous step.
Daniel Shub
2012 年 11 月 12 日
@Adam I would think that a post processor could transform multiline code into single line code prior to p-coding. A "clearvars -except" could help with clearing the intermediate values.
カテゴリ
ヘルプ センター および File Exchange で Variables についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!