MATLAB调试器不再显示行号 [英] MATLAB Debugger no longer showing line numbers

查看:2499
本文介绍了MATLAB调试器不再显示行号的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不完全确定,但是我的MATLAB R2013b的副本已经停止显示我的错误发生在哪一行。



我会得到如下错误:


下标的分配维度不匹配。


但是没有行号可以跟随,所以我不知道我的代码的哪一部分导致了这个问题!



我在某个地方搞砸了一个设置? p>

解决方案

使用首选项 - >编辑器/调试器 - >显示 - >显示行号

$ b在编辑器中启用行号
$ b

运行代码段(例如,使用Ctrl + Enter与Windows默认键绑定)时,行号不会显示。您可以看到直接运行脚本或调用其发生的函数导致错误的行。


I'm not entirely sure how, but my copy of MATLAB R2013b has stopped showing which line my errors occur at.

I'll just get errors like:

Subscripted assignment dimension mismatch.

But no line number to go along with it, so I have no idea which part of my code is causing the problem!

Did I mess up a setting somewhere?

解决方案

Enable line numbering in the editor with Preferences -> Editor/Debugger -> Display -> Show line numbers

When running code segments (for example, using Ctrl+Enter with the Windows default key bindings), line numbers will not be displayed. You can see the line on which the error is caused by directly running the script or calling the function in which it occurs.

这篇关于MATLAB调试器不再显示行号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆