The logic of Message internals

前端 未结 2 707
無奈伤痛
無奈伤痛 2021-01-20 01:23

I am trying to figure out the logic of Message behavior.

Consider evaluation of the following:

On[]
Sin[1,1]

After eva

2条回答
  •  心在旅途
    2021-01-20 02:00

    I am not understanding why it is necessary to turn on all the messages with On. Can you not only activate the subset you need. The reference page of On in "More Information" section lists various categories which you might find useful. In case you choose to proceed as stated, you can suppress trace messages by explicitly turning them off right after On[]:

    On[]; Off[General::trace];
    Sin[1, 1]
    

    This outputs only two messages. Hence 830 of the messages you see are ::trace messages and originate from execution of some top-level code which is not necessarily message related, might be typesetting...

提交回复
热议问题